Simbody
3.3
|
A point of interest. More...
#include <DecorativeGeometry.h>
Public Member Functions | |
DecorativePoint (const Vec3 &p=Vec3(0)) | |
DecorativePoint & | setPoint (const Vec3 &p) |
const Vec3 & | getPoint () const |
DecorativePoint & | setBodyId (int b) |
DecorativePoint & | setTransform (const Transform &X_BD) |
DecorativePoint & | setResolution (Real r) |
DecorativePoint & | setScaleFactors (const Vec3 &s) |
DecorativePoint & | setColor (const Vec3 &rgb) |
DecorativePoint & | setOpacity (Real o) |
DecorativePoint & | setLineThickness (Real t) |
DecorativePoint & | setRepresentation (const Representation &r) |
SimTK_PIMPL_DOWNCAST (DecorativePoint, DecorativeGeometry) | |
Public Member Functions inherited from SimTK::DecorativeGeometry | |
DecorativeGeometry () | |
~DecorativeGeometry () | |
DecorativeGeometry (const DecorativeGeometry &) | |
DecorativeGeometry & | operator= (const DecorativeGeometry &) |
DecorativeGeometry & | setBodyId (int) |
By default the geometry will be placed on ground. More... | |
DecorativeGeometry & | setTransform (const Transform &X_BG) |
This transform shifts the generated polygons with respect to this object's local frame. More... | |
DecorativeGeometry & | setResolution (Real) |
Each concrete DecorativeGeometry object is expected to have a default resolution that gets the point across but is cheap to draw and hence probably somewhat "chunky". More... | |
DecorativeGeometry & | setScaleFactors (const Vec3 &scale) |
Each concrete DecorativeGeometry object is expected to have a default size around "1", whatever that means for a particular object, and most objects also allow a user-specified size on construction. More... | |
DecorativeGeometry & | setScale (Real scale) |
Convenience method to set all three scale factors to the same value. More... | |
int | getBodyId () const |
Return the body to which this geometry is attached. More... | |
Real | getResolution () const |
Return the current setting of the "resolution" factor. More... | |
const Transform & | getTransform () const |
Return the current value of the object's transform. More... | |
const Vec3 & | getScaleFactors () const |
Return the current setting of the "scale" factors. More... | |
DecorativeGeometry & | setColor (const Vec3 &rgb) |
Request a specific color for this DecorativeGeometry object. More... | |
DecorativeGeometry & | setOpacity (Real) |
Request a level of transparency for this DecorativeGeometry. More... | |
DecorativeGeometry & | setLineThickness (Real) |
Request an adjustment to the default rendering of lines and curves. More... | |
const Vec3 & | getColor () const |
Return the color specified for this object, if any, otherwise Vec3(-1) indicating that the default color will be used. More... | |
Real | getOpacity () const |
Return the opacity specified for this object. More... | |
Real | getLineThickness () const |
Return the line thickness specified for this object, if any, otherwise return -1 to indicate that the default line thickness should be used. More... | |
DecorativeGeometry & | setFaceCamera (int shouldFace) |
Set whether the geometry acts as a billboard, always rotating to face the camera. More... | |
int | getFaceCamera () const |
Get whether the geometry acts as a billboard, always rotating to face the camera. More... | |
DecorativeGeometry & | setRepresentation (const Representation &) |
Request a particular rendering representation of this DecorativeGeometry object. More... | |
Representation | getRepresentation () const |
Returns drawing mode: -1 means "use default"; see above for others. More... | |
void | implementGeometry (DecorativeGeometryImplementation &) const |
bool | isOwnerHandle () const |
bool | isEmptyHandle () const |
DecorativeGeometry (class DecorativeGeometryRep *r) | |
bool | hasRep () const |
const DecorativeGeometryRep & | getRep () const |
DecorativeGeometryRep & | updRep () |
Additional Inherited Members | |
Public Types inherited from SimTK::DecorativeGeometry | |
enum | Representation { DrawPoints = 1, DrawWireframe = 2, DrawSurface = 3, DrawDefault = -1 } |
Protected Attributes inherited from SimTK::DecorativeGeometry | |
DecorativeGeometryRep * | rep |
A point of interest.
Note that the point's location is given relative to the DecorativeGeometry frame so it will move if the geometry is transformed when attached somewhere or displayed. The default constructor will put the point at (0,0,0).
DecorativePoint& SimTK::DecorativePoint::setPoint | ( | const Vec3 & | p | ) |
const Vec3& SimTK::DecorativePoint::getPoint | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
SimTK::DecorativePoint::SimTK_PIMPL_DOWNCAST | ( | DecorativePoint | , |
DecorativeGeometry | |||
) |