![]() |
VR-Forces 5.0.2 Developer's Guide
|
Distributed model for drawing polygons with attached vertices.

Public Member Functions | |
| DtPolygonModel (DtDe &de, DtUniqueID id) | |
| virtual | ~DtPolygonModel () |
| virtual void | addPoint (const DtVector &point, int index)=0 |
| virtual void | setPickable (bool enabled)=0 |
| virtual void | removePoint (int index)=0 |
| virtual int | pointCount () const =0 |
| virtual DtVector | point (int) const =0 |
| virtual void | setPoint (int index, const DtVector &)=0 |
| virtual void | setOrigin (const DtVector &)=0 |
| virtual void | setStipplePattern (unsigned int stipplePattern)=0 |
| virtual void | setWidth (float width)=0 |
| virtual void | setTexturePath (const std::string &texturePath)=0 |
| virtual void | setNumTextureTiles (double numTiles)=0 |
| virtual void | setColor (float r, float g, float b, float a)=0 |
| virtual void | setUseDynamicOrigin (bool)=0 |
| virtual void | setFill (bool) |
| virtual const std::vector < DtVector > & | points () const =0 |
Public Member Functions inherited from makVrv::DtModel | |
| DtModel (DtDe &de, DtUniqueID id) | |
| virtual | ~DtModel () |
| DtModelInstance * | createModelInstance (const std::string &modelDefName, bool realize=true) |
| virtual void | setModelDefinition (const std::string &str) |
| virtual const std::string & | modelDefinitionName () |
| virtual void | saveModelToFile (const std::string &filename) |
| virtual const std::string & | className () const |
| unsigned int | transformSize () const |
| virtual void | setPosition (int vtx, const DtVector &position) |
| virtual const DtVector & | position (int vtx=0) const |
| virtual void | removePosition (int vtx) |
| virtual void | setPositionOffset (const DtVector &positionOffset) |
| virtual const DtVector & | positionOffset () const |
| virtual void | setOrientation (int vtx, const DtTaitBryan &orientation) |
| virtual void | setPositionAndOrientation (int vtx, const DtVector &positionOffset, const DtTaitBryan &orientation) |
| virtual const DtTaitBryan & | orientation (int vtx=0) const |
| virtual void | setOrientationOffset (const DtTaitBryan &orientationOffset) |
| virtual const DtTaitBryan & | orientationOffset () const |
| virtual void | enableColorBlending (bool b) |
| virtual void | setBlendColor (float r, float g, float b, float a) |
| virtual void | getBlendColor (float &r, float &g, float &b, float &a) |
| virtual bool | colorBlendingEnabled () const |
| virtual void | enableLighting (bool l) |
| virtual int | modelSet () const |
| const DtVector & | boundingBoxExtents () const |
| void | getBoundingBoxExtents (double &x, double &y, double &z) const |
| const DtVector & | boundingBoxCenter () const |
| virtual void | getBoundingBoxCenter (double &x, double &y, double &z) const |
| virtual void | getBoundingBoxComponents (DtVector &minimum, DtVector &maximum) |
| void | setContributesToBound (bool trueOrFalse) |
| bool | contributesToBound () const |
| DtDe & | de () |
| virtual void | setModelInstance (DtModelInstance *modelInstance) |
| virtual void | promoteBackgroundModelInstance (DtModelDefinition &defintion) |
| virtual void | setVisible (bool isVisible) |
| virtual bool | visible () const |
| DtUniqueID | parentSceneObjectID () const |
| virtual void | addedToSceneObjectAsProp (const DtUniqueID &sceneObj) |
| virtual void | addedToSceneObject (const DtUniqueID &sceneObj, int modelSet, int visualizerType) |
| virtual void | setElementId (DtUniqueID id) |
| virtual void | removedFromSceneObject () |
| virtual void | setIsSupportModel (bool isSupport)=0 |
| virtual void | setSolid (bool isSolid) |
| virtual bool | isProp () |
| virtual void | updateMinLastFrameDistance (float distance) |
| virtual void | resetLastFrameDistance () |
| virtual float | minLastFrameDistance () const |
| virtual DtModelInstance * | modelInstance () |
| virtual const DtModelInstance * | modelInstance () const |
| int | visualizerType () const |
| virtual bool | supportsMultithreadedLoad () |
| virtual void | backgroundLoad () |
| virtual void | foregroundLoad () |
| virtual bool | isActivelyBackgroundLoading () |
| virtual DtLoaderHandle * | getLoadQueueHandle () |
| makVrv::DtPolygonModel::DtPolygonModel | ( | DtDe & | de, |
| DtUniqueID | id | ||
| ) |
CTOR.
|
virtual |
DTOR.
Add a new point to the line at the specified index, or, at the end if index is -1.
Implemented in makVrv::DtOsgOverlayPolygonModel, makVrv::DtOsgPolygonModel, makVrv::DtOverlayRectangleModel, makVrv::DtOsgExtrudedEllipseModel, and makVrv::DtOsgExtrudedPolygonModel.
|
pure virtual |
Sets whether or not the line is pickable.
Implemented in makVrv::DtOsgOverlayPolygonModel, makVrv::DtOsgExtrudedPolygonModel, makVrv::DtOsgPolygonModel, makVrv::DtOsgExtrudedEllipseModel, and makVrv::DtOsgOverlayRectangleModel.
|
pure virtual |
Removes the point from the specified index.
Implemented in makVrv::DtOsgOverlayPolygonModel, makVrv::DtOsgPolygonModel, makVrv::DtOsgExtrudedEllipseModel, makVrv::DtOsgExtrudedPolygonModel, and makVrv::DtOverlayRectangleModel.
|
pure virtual |
Retrieves the number of points in the model.
Implemented in makVrv::DtOsgExtrudedEllipseModel, makVrv::DtOsgOverlayPolygonModel, makVrv::DtOsgOverlayRectangleModel, makVrv::DtExtrudedPolygonModel, makVrv::DtOsgPolygonModel, and makVrv::DtOsgExtrudedPolygonModel.
Retrieves the point (inclusive of the origin)
Implemented in makVrv::DtOsgExtrudedEllipseModel, makVrv::DtOsgOverlayPolygonModel, makVrv::DtOsgOverlayRectangleModel, makVrv::DtExtrudedPolygonModel, makVrv::DtOsgPolygonModel, and makVrv::DtOsgExtrudedPolygonModel.
Sets point at the specified index. When setting the point, if the origin is set, the vector will need to be offset from the origin as models will account for the origin set.
Implemented in makVrv::DtOsgOverlayPolygonModel, makVrv::DtOsgPolygonModel, makVrv::DtOsgOverlayRectangleModel, makVrv::DtOsgExtrudedEllipseModel, and makVrv::DtOsgExtrudedPolygonModel.
|
pure virtual |
Sets the origin. Will offset points.
Implemented in makVrv::DtOsgOverlayRectangleModel, makVrv::DtOsgPolygonModel, makVrv::DtOsgExtrudedPolygonModel, makVrv::DtOsgOverlayPolygonModel, and makVrv::DtOsgExtrudedEllipseModel.
Sets stipple pattern for the polygon.
Implemented in makVrv::DtOsgOverlayPolygonModel, makVrv::DtOsgPolygonModel, makVrv::DtOsgOverlayRectangleModel, makVrv::DtOsgExtrudedPolygonModel, and makVrv::DtOsgExtrudedEllipseModel.
|
pure virtual |
Set the line width.
Implemented in makVrv::DtOsgOverlayPolygonModel, makVrv::DtOsgPolygonModel, makVrv::DtExtrudedPolygonModel, and makVrv::DtOsgOverlayRectangleModel.
|
pure virtual |
Set the path to the polygon's texture.
Implemented in makVrv::DtOsgExtrudedPolygonModel, makVrv::DtOsgExtrudedEllipseModel, makVrv::DtOsgOverlayPolygonModel, makVrv::DtOsgPolygonModel, and makVrv::DtOsgOverlayRectangleModel.
|
pure virtual |
Set the number of times to tile the polygon's texture.
Implemented in makVrv::DtOsgExtrudedPolygonModel, makVrv::DtOsgExtrudedEllipseModel, makVrv::DtOsgOverlayPolygonModel, makVrv::DtOsgPolygonModel, and makVrv::DtOsgOverlayRectangleModel.
|
pure virtual |
Set the color of the polygon.
Reimplemented from makVrv::DtModel.
Implemented in makVrv::DtOsgExtrudedPolygonModel, makVrv::DtOsgExtrudedEllipseModel, makVrv::DtOsgOverlayRectangleModel, makVrv::DtOsgPolygonModel, and makVrv::DtOsgOverlayPolygonModel.
|
pure virtual |
Set whether or not to use dynamic origin. Will not cause redraw or recalculate, but will effect how point 0 is used when using setPosition. If true will not set the point 0 to be at the origin, but rather will respect the current value. Default is false.
Implemented in makVrv::DtOsgExtrudedEllipseModel, makVrv::DtOsgExtrudedPolygonModel, makVrv::DtOsgOverlayPolygonModel, makVrv::DtOsgOverlayRectangleModel, and makVrv::DtOsgPolygonModel.
|
virtual |
Calls setSolid.
Reimplemented in makVrv::DtOsgExtrudedPolygonModel, and makVrv::DtOsgExtrudedEllipseModel.
|
pure virtual |
Returns the vertices (local database coordinates) that are used to draw this linear object.
Implemented in makVrv::DtOsgExtrudedEllipseModel, makVrv::DtOsgExtrudedPolygonModel, makVrv::DtOsgOverlayPolygonModel, makVrv::DtOsgOverlayRectangleModel, and makVrv::DtOsgPolygonModel.