OdeMass

Inheritance:

Methods of OdeMass:

Methods of TypedReferenceCount:

Methods of TypedObject:

Methods of ReferenceCount:

OdeMass
OdeMass::OdeMass(void);

Undocumented function.

add
void OdeMass::add(OdeMass &other);

Undocumented function.

adjust
void OdeMass::adjust(float newmass);

Undocumented function.

check
int OdeMass::check(void);

Undocumented function.

getCenter
LPoint3f OdeMass::get_center(void) const;

Undocumented function.

getClassType
static TypeHandle OdeMass::get_class_type(void);

Undocumented function.

getInertialTensor
LMatrix3f OdeMass::get_inertial_tensor(void) const;

Undocumented function.

getMagnitude
float OdeMass::get_magnitude(void) const;

Undocumented function.

rotate
void OdeMass::rotate(LMatrix3f const &r);

Undocumented function.

setBox
void OdeMass::set_box(float density, float lx, float ly, float lz);

Undocumented function.

setBoxTotal
void OdeMass::set_box_total(float total_mass, float lx, float ly, float lz);

Undocumented function.

setCapsule
void OdeMass::set_capsule(float density, int direction, float radius, float length);

Undocumented function.

setCapsuleTotal
void OdeMass::set_capsule_total(float total_mass, int direction, float radius, float length);

Undocumented function.

setCylinder
void OdeMass::set_cylinder(float density, int direction, float radius, float length);

Undocumented function.

setCylinderTotal
void OdeMass::set_cylinder_total(float total_mass, int direction, float radius, float length);

Undocumented function.

setParameters
void OdeMass::set_parameters(float themass, float cgx, float cgy, float cgz, float I11, float I22, float I33, float I12, float I13, float I23);

Undocumented function.

setSphere
void OdeMass::set_sphere(float density, float radius);

Undocumented function.

setSphereTotal
void OdeMass::set_sphere_total(float total_mass, float radius);

Undocumented function.

setZero
void OdeMass::set_zero(void);

Undocumented function.

translate
void OdeMass::translate(float x, float y, float z);

Undocumented function.

write
virtual void OdeMass::write(ostream &out = (cout), unsigned int indent = (0)) const;

Undocumented function.

getClassType
static TypeHandle TypedReferenceCount::get_class_type(void);

Undocumented function.

getClassType
static TypeHandle TypedObject::get_class_type(void);

Undocumented function.

getType
virtual TypeHandle TypedObject::get_type(void) const = 0;

Derived classes should override this function to return get_class_type().

getTypeIndex
int TypedObject::get_type_index(void) const;

Description: Returns the internal index number associated with this object's TypeHandle, a unique number for each different type. This is equivalent to get_type().get_index().

isExactType
bool TypedObject::is_exact_type(TypeHandle handle) const;

Description: Returns true if the current object is the indicated type exactly.

isOfType
bool TypedObject::is_of_type(TypeHandle handle) const;

Description: Returns true if the current object is or derives from the indicated type.

getClassType
static TypeHandle ReferenceCount::get_class_type(void);

Undocumented function.

getRefCount
int ReferenceCount::get_ref_count(void) const;

Description: Returns the current reference count.

ref
void ReferenceCount::ref(void) const;

Description: Explicitly increments the reference count. User code should avoid using ref() and unref() directly, which can result in missed reference counts. Instead, let a PointerTo object manage the reference counting automatically.
This function is const, even though it changes the object, because generally fiddling with an object's reference count isn't considered part of fiddling with the object. An object might be const in other ways, but we still need to accurately count the number of references to it.

testRefCountIntegrity
bool ReferenceCount::test_ref_count_integrity(void) const;

Description: Does some easy checks to make sure that the reference count isn't completely bogus. Returns true if ok, false otherwise.

testRefCountNonzero
bool ReferenceCount::test_ref_count_nonzero(void) const;

Description: Does some easy checks to make sure that the reference count isn't zero, or completely bogus. Returns true if ok, false otherwise.

unref
bool ReferenceCount::unref(void) const;

Description: Explicitly decrements the reference count. Note that the object will not be implicitly deleted by unref() simply because the reference count drops to zero. (Having a member function delete itself is problematic; plus, we don't have a virtual destructor anyway.) However, see the helper function unref_delete().
User code should avoid using ref() and unref() directly, which can result in missed reference counts. Instead, let a PointerTo object manage the reference counting automatically.
This function is const, even though it changes the object, because generally fiddling with an object's reference count isn't considered part of fiddling with the object. An object might be const in other ways, but we still need to accurately count the number of references to it.
The return value is true if the new reference count is nonzero, false if it is zero.