#include <SkeletalPrimitive.hpp>
Inheritance diagram for OSCAR::SkeletalPrimitive:

Public Methods | |
| SkeletalPrimitive (double rad=0.0) | |
| bool | SetProperties (const vector< Vector3 > &pts, double rd) |
| virtual | ~SkeletalPrimitive () |
| virtual SkeletalPrimitive * | Clone () const=0 |
| double | GetRadius () const |
| bool | SetRadius (double rd) |
| unsigned int | Size () const |
| SkeletalPrimitive (const SkeletalPrimitive &arg) | |
| SkeletalPrimitive & | operator= (const SkeletalPrimitive &rhs) |
| virtual bool | SetPoint (unsigned int index, const Vector3 &pt) |
| bool | SetPoints (const vector< Vector3 > pts) |
| const Vector3 * | GetPoint (unsigned int index, ReferenceFrame globalOrLocal=Global) const |
| virtual bool | Update (const Xform &transform) |
| const vector< Vector3 > & | GetPoints (ReferenceFrame globalOrLocal=Global) const |
| unsigned int | AddPoint (const Vector3 &newPt) |
| bool | Clear () |
Protected Methods | |
| virtual bool | updateInternalParameters () |
Protected Attributes | |
| double | radius |
| vector< Vector3 > | point [2] |
|
|
Constructor Used to create arrays of SkeletalPrimitive objects. Note: SetProperties(...) must be called before any other function.
|
|
|
Destructor.
|
|
|
|
|
|
Used to add a point to the skeletal primtive. This function is legacy code, contained only currently in the in the old non-xml parser, and should not under normal circumstances be used.
|
|
|
Resizes the primitive to size zero (no internal points) and sets the radius to zero. This function is legacy code, contained only in the non-xml parser, and should not under normal circumstances be used.
|
|
|
Clone this object. Every derived class must implement this method.
Implements OSCAR::Primitive. Implemented in OSCAR::Cylisphere, OSCAR::Plane, and OSCAR::Sphere. |
|
||||||||||||
|
Get the location of a single point in the skeletal primitive.
|
|
|
Get the set of points that make up the skeleton of the primitive.
|
|
|
Get the skeletal radius.
|
|
|
|
|
||||||||||||
|
Update location (w.r.t. the local reference frame) of one point of the primtive. Update() is automatically called with the last Xform Update() was called with (identity if the function hasn't been called).
|
|
|
Update the location (w.r.t. the local reference frame) of all points in the primitive. Update() is automatically called with the last Xform Update() was called with (identitify if the function hasn't been called).
|
|
||||||||||||
|
Update private members of the primitive (position of points in the local reference frame, radius). Automatically calls the Update() function with the Xform which was last used (identity matrix if Update() has not been called).
|
|
|
Change skeletal radius.
|
|
|
Gives the length of the vector containing the points which represent the skeletal primitive (IE 1 for sphere, 2 for cylisphere, 4 for plane).
|
|
|
Transform the local points to the global points using a user specified Xform.
Reimplemented from OSCAR::Primitive. |
|
|
Reimplemented in OSCAR::Plane. |
|
|
|
|
|
|
| RRG Homepage | OSCAR Overview | OSCAR Tutorials | Simulations |