Panda3D
odeCylinderGeom.cxx
1 // Filename: odeCylinderGeom.cxx
2 // Created by: joswilso (27Dec06)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #include "config_ode.h"
16 #include "odeCylinderGeom.h"
17 
18 TypeHandle OdeCylinderGeom::_type_handle;
19 
20 OdeCylinderGeom::
21 OdeCylinderGeom(dGeomID id) :
22  OdeGeom(id) {
23 }
24 
25 OdeCylinderGeom::
26 OdeCylinderGeom(dReal radius, dReal length) :
27  OdeGeom(dCreateCylinder(0, radius, length)) {
28 }
29 
30 OdeCylinderGeom::
31 OdeCylinderGeom(OdeSpace &space, dReal radius, dReal length) :
32  OdeGeom(dCreateCylinder(space.get_id(), radius, length)) {
33 }
34 
35 OdeCylinderGeom::
36 ~OdeCylinderGeom() {
37 }
dGeomID get_id() const
Returns the underlying dGeomID.
Definition: odeGeom.I:34
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:85