![]() |
VR-Forces Developer's Guide
|
OSG implementation of distributed attachable polygon model.

Public Member Functions | |
| DtOsgPolygonModel (DtDe &de, DtUniqueID &id) | |
| virtual | ~DtOsgPolygonModel () |
| virtual void | setColor (float r, float g, float b, float a) |
| virtual void | enableColorBlending (bool b) |
| virtual void | enableLighting (bool l) |
| virtual void | setPosition (int vtx, const DtVector &position) |
| virtual void | setPoint (int vtx, const DtVector &position) |
| virtual int | pointCount () const |
| virtual DtVector | point (int) const |
| virtual void | setOrigin (const DtVector &) |
| virtual void | setOrientation (int vtx, const DtTaitBryan &orientation) |
| virtual void | setTexturePath (const std::string &texturePath) |
| virtual void | setNumTextureTiles (double numTiles) |
| virtual void | setVisible (bool isVisible) |
| virtual void | setIsSupportModel (bool isSupport) |
| virtual void | addPoint (const DtVector &point, int index) |
| virtual void | setPickable (bool enabled) |
| virtual void | removePoint (int index) |
| virtual void | removePosition (int index) |
| virtual void | setStipplePattern (unsigned int stipplePattern) |
| virtual void | setWidth (float width) |
| virtual const std::vector < DtVector > & | points () const |
| virtual void | addToScene (const DtUniqueID &sceneObjectId, DtModelSetId modelSet, int visualizerType) |
| virtual void | removeFromScene () |
Public Member Functions inherited from makVrv::DtPolygonModel | |
| DtPolygonModel (DtDe &de, DtUniqueID id) | |
| virtual | ~DtPolygonModel () |
| virtual void | setFill (bool) |
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 |
| virtual DtUniqueID | uniqueId () const |
| unsigned int | transformSize () const |
| virtual const DtVector & | position (int vtx=0) const |
| virtual void | setPositionOffset (const DtVector &positionOffset) |
| virtual const DtVector & | positionOffset () const |
| 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 | 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 DtModelSetId | 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 (const DtModelDefinition &defintion) |
| virtual bool | visible () const |
| DtUniqueID | sceneObjectId () const |
| virtual void | addedToSceneObjectAsProp (const DtUniqueID &sceneObj) |
| virtual void | addedToSceneObject (const DtUniqueID &sceneObj, DtModelSetId modelSet, int visualizerType) |
| virtual void | setElementId (DtElementID id) |
| virtual void | removedFromSceneObject () |
| 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 () |
Protected Member Functions | |
| virtual void | update () |
| virtual void | needsUpdate () |
Protected Member Functions inherited from makVrv::DtModel | |
| virtual void | addToSceneAsProp (const DtUniqueID &sceneObjectId) |
| virtual void | initializeModelInstance () |
| void | slot_modelInstanceChanged (DtModelInstance *instance) |
| virtual void | waitAndClearLoadHandle () |
| virtual void | removedFromLoadQueue () |
| virtual void | setDoneBackgroundLoading () |
| virtual void | setActivelyBackgroundLoading () |
Protected Attributes | |
| DtOsgSceneConnector * | mySceneConnector |
| DtVector | myOrigin |
| bool | myNeedsUpdate |
| boost::signalslib::connection | mySignalPostUpdateConnection |
Protected Attributes inherited from makVrv::DtModel | |
| DtLoaderHandle * | myInLoadQueueHandle |
| DtDe & | myDe |
| const DtUniqueID | myUniqueId |
| DtUniqueID | myElementId |
| DtUniqueID | myParentSceneObjectID |
| bool | myColorBlendingEnabled |
| DtModelInstance * | myBackgroundModelInstance |
| float | myMinLastFrameDistance |
| TransformList | myTransforms |
| DtModelInstance * | myModelInstance |
| DtModelSetId | myModelSet |
| int | myVisualizerType |
| bool | myContributesToBound |
| bool | myIsPropFlag |
| float | myBlendColor [4] |
| bool | myVisibleFlag |
| DtVector | myPositionOffset |
| DtTaitBryan | myOrientationOffset |
| std::string | myModelDefinitionName |
| bool | myRequireModelInstance = true |
Additional Inherited Members | |
Public Attributes inherited from makVrv::DtModel | |
| boost::signalslib::signal < void(DtModel *)> | signal_modelToBeDestroyed |
| boost::signalslib::signal < void(DtModel *)> | signal_modelChanged |
| boost::signalslib::signal < bool(DtModel *, bool), SlotReturnOR > | signal_visibilityChangeRequested |
| boost::signalslib::signal < void(DtModelInstance *, DtModel *)> | signal_modelInstanceCreated |
| boost::signalslib::signal < void(DtModelInstance *, DtModel *)> | signal_modelInstanceToBeDestroyed |
Protected Types inherited from makVrv::DtModel | |
| typedef std::vector < ObjectTransform > | TransformList |
Static Protected Attributes inherited from makVrv::DtModel | |
| static bool | theInittedState |
| makVrv::DtOsgPolygonModel::DtOsgPolygonModel | ( | DtDe & | de, |
| DtUniqueID & | id | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Set the color of the polygon.
Implements makVrv::DtPolygonModel.
|
virtual |
Set whether color blending is used.
Reimplemented from makVrv::DtModel.
|
virtual |
Set whether the polygon is lit.
Reimplemented from makVrv::DtModel.
Set the position of one vertex of the polygon.
Reimplemented from makVrv::DtModel.
Reimplemented in makVrv::DtMovablePolygonModel.
Will call setPosition in model instance without setting in scene connector.
Implements makVrv::DtPolygonModel.
|
virtual |
Retrieves the number of points in the model.
Implements makVrv::DtPolygonModel.
Retrieves the point inclusive of the origin.
Implements makVrv::DtPolygonModel.
|
virtual |
Sets the origin in scene connector and model instance.
Implements makVrv::DtPolygonModel.
|
virtual |
Set the orientation of a vertex of the polygon; has no effect.
Reimplemented from makVrv::DtModel.
Reimplemented in makVrv::DtMovablePolygonModel.
|
virtual |
Set the path to the polygon's texture.
Implements makVrv::DtPolygonModel.
|
virtual |
Set the number of texture tiles.
Implements makVrv::DtPolygonModel.
|
virtual |
Override to call setVisible on the scene connector.
Reimplemented from makVrv::DtModel.
Reimplemented in makVrv::DtMovablePolygonModel.
|
virtual |
Set whether the model is part of the support group (whether or not other scene objects can ground clamp to this model)
Implements makVrv::DtModel.
Add a new point to the line at the specified index, or, at the end if index is -1.
Implements makVrv::DtPolygonModel.
|
virtual |
Sets whether or not the line is pickable.
Implements makVrv::DtPolygonModel.
|
virtual |
Removes the point from the specified index.
Implements makVrv::DtPolygonModel.
|
virtual |
Calls removePoint.
Reimplemented from makVrv::DtModel.
Sets stipple pattern for the polygon.
Implements makVrv::DtPolygonModel.
|
virtual |
Set the line width.
Implements makVrv::DtPolygonModel.
|
virtual |
Points that make up this polygon.
Implements makVrv::DtPolygonModel.
|
virtual |
Add the polygon to the scene.
Implements makVrv::DtModel.
|
virtual |
Remove the polygon from the scene.
Implements makVrv::DtModel.
|
protectedvirtual |
Called on tick when updated, calls updateGeometry() of model instance.
Reimplemented in makVrv::DtMovablePolygonModel.
|
protectedvirtual |
Sets needs update flag such that on next update pass the object is updated.
|
protected |
|
protected |
|
protected |
|
protected |