|
| | DecorativeLine (const Vec3 &p1=Vec3(0), const Vec3 &p2=Vec3(1)) |
| |
| DecorativeLine & | setPoint1 (const Vec3 &p1) |
| |
| DecorativeLine & | setPoint2 (const Vec3 &p2) |
| |
| DecorativeLine & | setEndpoints (const Vec3 &p1, const Vec3 &p2) |
| |
| DecorativeLine & | setBodyId (int b) |
| |
| DecorativeLine & | setIndexOnBody (int x) |
| |
| DecorativeLine & | setUserRef (void *p) |
| |
| DecorativeLine & | setTransform (const Transform &X_BD) |
| |
| DecorativeLine & | setResolution (Real r) |
| |
| DecorativeLine & | setScaleFactors (const Vec3 &s) |
| |
| DecorativeLine & | setColor (const Vec3 &rgb) |
| |
| DecorativeLine & | setOpacity (Real o) |
| |
| DecorativeLine & | setLineThickness (Real t) |
| |
| DecorativeLine & | setRepresentation (const Representation &r) |
| |
| const Vec3 & | getPoint1 () const |
| |
| const Vec3 & | getPoint2 () const |
| |
| | SimTK_PIMPL_DOWNCAST (DecorativeLine, DecorativeGeometry) |
| |
| | DecorativeGeometry () |
| | Default constructor creates an empty handle. More...
|
| |
| | ~DecorativeGeometry () |
| |
| | DecorativeGeometry (const DecorativeGeometry &source) |
| | Copy construction is deep; the source object will be cloned to create an independent copy. More...
|
| |
| DecorativeGeometry & | operator= (const DecorativeGeometry &source) |
| | Copy assignment is deep; the handle will be cleared if necessary and then the source object will be cloned to create an independent copy. More...
|
| |
| DecorativeGeometry & | setBodyId (int bodyId) |
| | By default the geometry should be placed relative to the Ground frame. More...
|
| |
| DecorativeGeometry & | setIndexOnBody (int index) |
| | For selection or other purposes, you may want to use this method to store an index that can identify this particular piece of geometry. More...
|
| |
| DecorativeGeometry & | setUserRef (void *userRef) |
| | Use this method to store an arbitrary reference pointer with this DecorativeGeometry object. 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 bodyId that was supplied to the most recent setBodyId() call for this DecorativeGeometry object, or zero if that method has not been called. More...
|
| |
| int | getIndexOnBody () const |
| | Return the index that was supplied to the most recent setIndexOnBody() call for this DecorativeGeometry object, or -1 if that method has not been called. More...
|
| |
| void * | getUserRef () const |
| | Return the pointer value that was supplied to the most recent setUserRef() call for this DecorativeGeometry object, or zero (nullptr) if that method has not been called. 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 () |
| |
A line between two points.
Note that the actual placement can be changed by the parent class transform & scale; here we are just generating the initial line in the geometry object's local frame.
There is a default constructor for this object but it is not much use unless followed by endpoint specifications. By default we produce a line going from (0,0,0) to (1,1,1) just so it will show up if you forget to set it to something meaningful. Having a default constructor allows us to have arrays of these objects.