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

Public Methods | |
| Box (const double xDimen, const double yDimen, const double zDimen, const Xform &pose) | |
| Box (const Box &arg) | |
| Box () | |
| virtual Box * | Clone () const |
| const vector< Plane > & | GetPlanes () const |
| const vector< unsigned int > & | GetAdjacentVertices (unsigned int index) const |
| const vector< unsigned int > & | GetAdjacentPlanes (unsigned int index) const |
| const vector< Vector3 > & | GetPoints (ReferenceFrame globalOrLocal=Global) const |
| bool | SetProperties (const double xDimen, const double yDimen, const double zDimen, const Xform &pose) |
| bool | SetXDim (const double xDimen) |
| bool | SetYDim (const double yDimen) |
| bool | SetZDim (const double zDimen) |
| bool | SetLocalTransform (const Xform &inFrameTransform) |
| double | GetXDim () const |
| double | GetYDim () const |
| double | GetZDim () const |
| const Xform & | GetLocalTransform () const |
| virtual bool | Update (const Xform &transform) |
| Box & | operator= (const Box &rhs) |
| Xform & | GetCompleteXform () |
Protected Methods | |
| bool | populatePoints () |
| bool | updatePlanes () |
| bool | populateMaps () |
| bool | TransformInternalToLocal () |
| virtual bool | createSolid () |
Protected Attributes | |
| double | xDim |
| double | yDim |
| double | zDim |
| Xform | localTransform |
| Xform | fullTransform |
| std::vector< Plane > | planes |
| std::vector< Vector3 > | internalPoint |
| std::vector< Vector3 > | point [2] |
| unsigned int | vertexMap [8][3] |
| unsigned int | planeMap [8][3] |
|
||||||||||||||||||||
|
Constructor Constructs a Box from the 3 dimensions of the box and an inFrameTransformation Xform. This Xform positions the box from it's default position (with a center at (0,0,0)) to it's actual position w.r.t. the local frame. This local frame can then be moved around using the Update() function. All global positions and points for the box are automatically populated using an identity transformation.
|
|
|
Copy Constructor.
|
|
|
Constructor Use to make arrays of Box 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. |
|
|
Gives the plane adjacency information for the Box. Given the index (from the vector of Vector3s returned by GetPoints()) of a vertex of the box, this function will return the indices (from the vector of Planes returned by the GetPlanes() function) of the three planes which contain the vertex specified by the inputted index.
|
|
|
Gives the edge adjacency information for the Box. Given the index (from the vector of Vector3s returned by GetPoints()) of a vertex of the box, this function will return the indices of the three points which form edges with the point corresponding to the given index.
|
|
|
|
|
|
Get the local frame transformation for the box.
|
|
|
Get a reference to the vector that holds the six planes that make up the box. How these planes relate to the 8 points obtained from the GetPoints() function (IE which planes contain which points) can be obtained through the GetPlaneMap() function.
|
|
|
Get the eight corner points of the box, in either the local or the global frame. The relationship of these eight points (IE which points are directly connected by edges) can be obtained by using the "GetVertexMap()" function.
|
|
|
Get the x dimension of the box.
|
|
|
Get the y dimension of the box.
|
|
|
Get the z dimension of the box.
|
|
|
|
|
|
|
|
|
|
|
|
Set the local frame transform of the box. Update() is automatically called using the last Xform Update() was called with (Identity if Update() has not been called).
|
|
||||||||||||||||||||
|
Update location and size of the box. Update() is automatically called using the last Xform Update() was called with (an Xform of identity is used if Update() has not been called).
|
|
|
Update the x dimension of the box.
|
|
|
Update the y dimension of the box.
|
|
|
Update the z dimension of the box.
|
|
|
|
|
|
Transform the points from the local frame to the global frame.
Reimplemented from OSCAR::Primitive. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| RRG Homepage | OSCAR Overview | OSCAR Tutorials | Simulations |