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

Public Methods | |
| Cone (const double h, const double r, const Xform &inFrameTransform) | |
| Cone (const Cone &arg) | |
| Cone () | |
| virtual Cone * | Clone () const |
| const vector< Vector3 > & | GetPoints (ReferenceFrame globalOrLocal=Global) const |
| bool | SetProperties (const double h, const double r, const Xform &inFrameTransform) |
| bool | SetHeight (const double h) |
| bool | SetRadius (const double r) |
| double | GetHeight () const |
| double | GetRadius () const |
| bool | SetLocalTransform (const Xform &inFrameTransform) |
| const Xform & | GetLocalTransform () const |
| virtual bool | Update (const Xform &transform) |
| Cone & | operator= (const Cone &rhs) |
Protected Methods | |
| bool | populatePoints () |
| bool | TransformInternalToLocal () |
| virtual bool | createSolid () |
Protected Attributes | |
| double | height |
| double | radius |
| Xform | localTransform |
| std::vector< Vector3 > | internalPoint |
| std::vector< Vector3 > | point [2] |
|
||||||||||||||||
|
Constructor Constructs a Cone from a height, a base radius, and an inFrameTransform. This transform specifies the transformation of the cone away from it's default position (0,0,0) to it's correct position w.r.t. the local frame. All global information is automatically populated using an identity transformation matrix.
|
|
|
Copy Constructor.
|
|
|
Constructor Use to make arrays of Cone objects. Note: SetProperties(...) must be called before any other function, and that the local transform defaults to the identity matrix.
|
|
|
Clone this object.
Implements OSCAR::Primitive. |
|
|
Reimplemented from OSCAR::Primitive. |
|
|
Get the height of the cone.
|
|
|
Get the local frame transformation for the cone. Update() is automatically called using the last Xform Update() was called with (idenity if Update() has not been called).
|
|
|
GetPoints Gives the tip point and the center of the base point of the cone w.r.t. either the local frame of the global frame.
|
|
|
Get the radius of the cone.
|
|
|
|
|
|
|
|
|
Update the height of the cone.
|
|
|
Update the local frame transform of the cone.
|
|
||||||||||||||||
|
Update the height and radius of the cone, and it's position in the local frame. Update() is automatically called using the last Xform it was called with (identity if Update() has not been called).
|
|
|
Update the radius of the cone.
|
|
|
|
|
|
Transform the points from the local frame to the global frame.
Reimplemented from OSCAR::Primitive. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| RRG Homepage | OSCAR Overview | OSCAR Tutorials | Simulations |