VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtOsgOverlayRectangleModel Class Reference

OSG implementation of overlay polygon model.

Inheritance diagram for makVrv::DtOsgOverlayRectangleModel:
Inheritance graph
[legend]

Public Member Functions

 DtOsgOverlayRectangleModel (DtDe &de, DtUniqueID &id)
 
virtual ~DtOsgOverlayRectangleModel ()
 
virtual DtVector rotateToDatabase (const DtVector &pos, const DtVector &origin)
 
virtual void setInsideColor (float r, float g, float b, float a)
 
virtual void setOutsideColor (float r, float g, float b, float a)
 
virtual void setSolidFillCenter (bool)
 
virtual void setFillPattern (const std::vector< unsigned int > &)
 
virtual void setOutline (bool)
 
virtual void setIsPerimeterWrappedTextRenderingEnabled (bool)
 
virtual void setPerimeterWrappedTextCollection (const DtPerimeterWrappedTextCollection &)
 
virtual void setPerimeterWrappedTextInterval (int intervalInScreenSpaceCM)
 
virtual void setPerimeterWrappedTextFont (const std::string &fontFile, float fontPointSize)
 
virtual void setPerimeterWrappedTextColor (float r, float g, float b, float a)
 
virtual void setPerimeterWrappedTextBackgroundColor (float r, float g, float b, float a)
 
virtual const DtVectororigin () const
 
virtual void setColor (float r, float g, float b, float a)
 
virtual void setPosition (int vtx, const DtVector &position)
 
virtual void setPoint (int vtx, const DtVector &position)
 
virtual void set2dOffset (int index, float x, float y)
 
virtual void setOrientation (const DtTaitBryan &orientation)
 
virtual void setOrientation (int vtx, const DtTaitBryan &orientation)
 
virtual void set3dDirection2dLength (int index, float x, float y, float z, float len)
 
virtual void setTexturePath (const std::string &texturePath)
 
virtual void setNumTextureTiles (double numTiles)
 
virtual void setSolid (bool solid)
 
virtual void setIsSupportModel (bool isSupport)
 
virtual void setGroup (int)
 
virtual void setPickable (bool enabled)
 
virtual void setStipplePattern (unsigned int stipplePattern)
 
virtual void setWidth (float width)
 
virtual void setEventWidth (float width)
 
virtual void setEventsEnabled (bool)
 
virtual void setDimensions (double width, double length, double altitudeOffset)
 
virtual void resetSpatial ()
 
virtual void setOrigin (const DtVector &)
 
virtual int pointCount () const
 
virtual DtVector point (int) const
 
virtual const std::vector
< DtVector > & 
points () const
 
virtual void addToScene (const DtUniqueID &sceneObjectId, DtModelSetId modelSet, int visualizerType)
 
virtual void removeFromScene ()
 
virtual void setModelDefinition (const std::string &str)
 
- Public Member Functions inherited from makVrv::DtOverlayRectangleModel
 DtOverlayRectangleModel (DtDe &de, DtUniqueID id)
 
virtual ~DtOverlayRectangleModel ()
 
- Public Member Functions inherited from makVrv::DtOverlayPolygonModel
 DtOverlayPolygonModel (DtDe &de, DtUniqueID &id)
 
virtual ~DtOverlayPolygonModel ()
 
virtual void setFillPatternFrequency (float frequency)
 
virtual float fillPatternFrequency () const
 
virtual void setEnableDecalProjector (bool enable)
 
virtual bool enableDecalProjector () const
 
virtual void getInsideColor (float &r, float &g, float &b, float &a)
 
virtual void getOutsideColor (float &r, float &g, float &b, float &a)
 
virtual void setIsStippleUsedForFill (bool isStippleUsedForFill)
 
virtual void setOutlineTexture (const std::string &texturePath, int width=-1, int height=-1)
 
virtual void addPoint (const DtVector &point, int index)
 
virtual void removePoint (int index)
 
virtual void removePosition (int index)
 
virtual void setVisible (bool isVisible)
 
- 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 ()
 
DtModelInstancecreateModelInstance (const std::string &modelDefName, bool realize=true)
 
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 DtVectorposition (int vtx=0) const
 
virtual void setPositionOffset (const DtVector &positionOffset)
 
virtual const DtVectorpositionOffset () 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 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 DtModelSetId modelSet () const
 
const DtVectorboundingBoxExtents () const
 
void getBoundingBoxExtents (double &x, double &y, double &z) const
 
const DtVectorboundingBoxCenter () 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
 
DtDede ()
 
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 bool isProp ()
 
virtual void updateMinLastFrameDistance (float distance)
 
virtual void resetLastFrameDistance ()
 
virtual float minLastFrameDistance () const
 
virtual DtModelInstancemodelInstance ()
 
virtual const DtModelInstancemodelInstance () const
 
int visualizerType () const
 
virtual bool supportsMultithreadedLoad ()
 
virtual void backgroundLoad ()
 
virtual void foregroundLoad ()
 
virtual bool isActivelyBackgroundLoading ()
 
virtual DtLoaderHandlegetLoadQueueHandle ()
 

Protected Member Functions

virtual void update ()
 
virtual void needsUpdate ()
 
virtual void slot_coordinateSystemChanged ()
 
- Protected Member Functions inherited from makVrv::DtOverlayPolygonModel
virtual void moveInstancesFromChannelSpecific ()
 
virtual void moveInstancesToChannelSpecific ()
 
virtual void slot_channelCreated (DtChannel *channel)
 
virtual void slot_channelDestroyed (DtChannelManager *channelManager, DtChannel *channel)
 
virtual void slot_channelConfigurationModified (const std::string &deName, const std::string &winName, const std::string &oldChannelName, const DtChannelConfiguration &config)
 
virtual void setupInstanceWithCurrentValues (DtOverlayPolygonModelInstance *, DtOverlayScreenIntervaledTextInstance *, const DtOverlayPolygonModelInstance::VertexList &)
 
- 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

DtDcm myOrientationDcm
 
DtVector myDimensions
 
DtVector myOrigin
 
int myGroup
 
bool myNeedsUpdate
 
DtSignalConnectionManager myConnections
 
DtCoordinateSystemmyCoordinateSystem = nullptr
 
boost::signalslib::connection mySignalPostUpdateConnection
 
- Protected Attributes inherited from makVrv::DtOverlayPolygonModel
bool myEventsEnabled
 
DtVector myOrigin
 
DtTaitBryan myRotation
 
DtSignalConnectionManager myLifetimeConnections
 
DtSignalConnectionManager myChannelConnections
 
bool myChannelSpecificMode
 
ChannelInstances myChannelInstances
 
bool myNeedsUpdate
 
bool myIsPerimeterWrappedTextRenderingEnabled
 
DtPerimeterWrappedTextCollection myPerimeterWrappedTextCollection
 
int myPerimeterWrappedTextIntervalInScreenSpaceCM
 
std::string myPerimeterWrappedTextFontFile
 
float myPerimeterWrappedTextFontPointSize
 
float myPerimeterWrappedTextFontColor [4]
 
float myPerimeterWrappedTextBackgroundColor [4]
 
std::string myModelDefinition
 
float myInsideColor [4]
 
float myOutsideColor [4]
 
float myWidth
 
std::string myTexturePath
 
std::string myOutlineTexture
 
int myOutlineTextureTileWidth
 
int myOutlineTextureTileHeight
 
std::vector< unsigned intmyFillPattern
 
float myFillPatternFrequency
 
bool myOutline
 
bool mySolidFillCenter
 
double myNumTextureTiles
 
bool myPickable
 
unsigned int myStipplePattern
 
float myEventWidth
 
bool mySolid
 
int myGroup
 
bool myEnableDecalProjector
 
bool myIsStippleUsedForFill
 
- Protected Attributes inherited from makVrv::DtModel
DtLoaderHandlemyInLoadQueueHandle
 
DtDemyDe
 
const DtUniqueID myUniqueId
 
DtUniqueID myElementId
 
DtUniqueID myParentSceneObjectID
 
bool myColorBlendingEnabled
 
DtModelInstancemyBackgroundModelInstance
 
float myMinLastFrameDistance
 
TransformList myTransforms
 
DtModelInstancemyModelInstance
 
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 Types inherited from makVrv::DtOverlayPolygonModel
using DtPerimeterWrappedTextCollection = std::vector< DtUnicode >
 
- 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::DtOverlayPolygonModel
typedef std::map< DtChannel
*, DtPolygonInstanceAndText
ChannelInstances
 
- Protected Types inherited from makVrv::DtModel
typedef std::vector
< ObjectTransform
TransformList
 
- Static Protected Attributes inherited from makVrv::DtModel
static bool theInittedState
 

Constructor & Destructor Documentation

makVrv::DtOsgOverlayRectangleModel::DtOsgOverlayRectangleModel ( DtDe de,
DtUniqueID id 
)

CTOR.

virtual makVrv::DtOsgOverlayRectangleModel::~DtOsgOverlayRectangleModel ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::DtOsgOverlayRectangleModel::setColor ( float  r,
float  g,
float  b,
float  a 
)
virtual

Set the color of the polygon.

Reimplemented from makVrv::DtOverlayPolygonModel.

virtual void makVrv::DtOsgOverlayRectangleModel::setPosition ( int  vtx,
const DtVector position 
)
virtual

Set the position of one vertex of the polygon.

Reimplemented from makVrv::DtOverlayPolygonModel.

virtual void makVrv::DtOsgOverlayRectangleModel::setPoint ( int  vtx,
const DtVector position 
)
virtual

Equivalent to setPosition.

Reimplemented from makVrv::DtOverlayPolygonModel.

virtual void makVrv::DtOsgOverlayRectangleModel::set2dOffset ( int  index,
float  x,
float  y 
)
virtual

Sets the 2d offset of a vertex.

Reimplemented from makVrv::DtOverlayPolygonModel.

virtual void makVrv::DtOsgOverlayRectangleModel::setOrientation ( const DtTaitBryan &  orientation)
virtual

Set the orientation of the rectangle.

Reimplemented from makVrv::DtOverlayRectangleModel.

virtual void makVrv::DtOsgOverlayRectangleModel::setOrientation ( int  vtx,
const DtTaitBryan &  orientation 
)
virtual

Set the color of the polygon.

Reimplemented from makVrv::DtOverlayPolygonModel.

virtual void makVrv::DtOsgOverlayRectangleModel::set3dDirection2dLength ( int  index,
float  x,
float  y,
float  z,
float  len 
)
virtual

Sets a 3D direction with a 2D length of a vertex. This only works with outline polygons.

Reimplemented from makVrv::DtOverlayPolygonModel.

virtual void makVrv::DtOsgOverlayRectangleModel::setTexturePath ( const std::string &  texturePath)
virtual

Set the path to the polygon's texture.

Reimplemented from makVrv::DtOverlayPolygonModel.

virtual void makVrv::DtOsgOverlayRectangleModel::setNumTextureTiles ( double  numTiles)
virtual

Set the number of texture tiles.

Reimplemented from makVrv::DtOverlayPolygonModel.

virtual void makVrv::DtOsgOverlayRectangleModel::setSolid ( bool  solid)
virtual

Set a object to be solid.

Reimplemented from makVrv::DtOverlayPolygonModel.

virtual void makVrv::DtOsgOverlayRectangleModel::setIsSupportModel ( bool  isSupport)
virtual

Set whether the model is part of the support group (whether or not other scene objects can ground clamp to this model)

Reimplemented from makVrv::DtOverlayPolygonModel.

virtual void makVrv::DtOsgOverlayRectangleModel::setGroup ( int  )
virtual

The higher the Z order the "closer" to the eyepoint this element will be drawn. Use this variable to stack overlay objects in the particular order you want them displayed.

Reimplemented from makVrv::DtOverlayPolygonModel.

virtual void makVrv::DtOsgOverlayRectangleModel::setPickable ( bool  enabled)
virtual

Sets whether or not the line is pickable.

Reimplemented from makVrv::DtOverlayPolygonModel.

virtual void makVrv::DtOsgOverlayRectangleModel::setStipplePattern ( unsigned int  stipplePattern)
virtual

Sets stipple pattern for the polygon.

Reimplemented from makVrv::DtOverlayPolygonModel.

virtual void makVrv::DtOsgOverlayRectangleModel::setWidth ( float  width)
virtual

Set the line width.

Reimplemented from makVrv::DtOverlayPolygonModel.

virtual void makVrv::DtOsgOverlayRectangleModel::setEventWidth ( float  width)
virtual

Sets the events line width for the polygon model if it is outlined.

Reimplemented from makVrv::DtOverlayPolygonModel.

virtual void makVrv::DtOsgOverlayRectangleModel::setEventsEnabled ( bool  )
virtual

Sets whether or not mouse events are enabled.

Reimplemented from makVrv::DtOverlayPolygonModel.

virtual void makVrv::DtOsgOverlayRectangleModel::setDimensions ( double  width,
double  length,
double  altitudeOffset 
)
virtual

Sets the dimensions of the rectangle, according to database and orientation.

Implements makVrv::DtOverlayRectangleModel.

virtual void makVrv::DtOsgOverlayRectangleModel::resetSpatial ( )
virtual

Sets geometry based on origin and dimensions.

virtual void makVrv::DtOsgOverlayRectangleModel::setOrigin ( const DtVector )
virtual

Sets origin of model such that points will be offset from this origin. Resets geometry when set.

Reimplemented from makVrv::DtOverlayPolygonModel.

virtual int makVrv::DtOsgOverlayRectangleModel::pointCount ( ) const
virtual

Retrieves the number of points in the model.

Reimplemented from makVrv::DtOverlayPolygonModel.

virtual DtVector makVrv::DtOsgOverlayRectangleModel::point ( int  ) const
virtual

Retrieves the point inclusive of the origin.

Reimplemented from makVrv::DtOverlayPolygonModel.

virtual const std::vector<DtVector>& makVrv::DtOsgOverlayRectangleModel::points ( ) const
virtual

Returns the points of this rectangle.

Reimplemented from makVrv::DtOverlayPolygonModel.

virtual void makVrv::DtOsgOverlayRectangleModel::addToScene ( const DtUniqueID sceneObjectId,
DtModelSetId  modelSet,
int  visualizerType 
)
virtual

Add the polygon to the scene.

Reimplemented from makVrv::DtOverlayPolygonModel.

virtual void makVrv::DtOsgOverlayRectangleModel::removeFromScene ( )
virtual

Remove the polygon from the scene.

Reimplemented from makVrv::DtOverlayPolygonModel.

virtual void makVrv::DtOsgOverlayRectangleModel::setModelDefinition ( const std::string &  str)
virtual

Sets the model definition on the model instance.

Reimplemented from makVrv::DtOverlayPolygonModel.

virtual DtVector makVrv::DtOsgOverlayRectangleModel::rotateToDatabase ( const DtVector pos,
const DtVector origin 
)
virtual

Rotates the vector into the terrains coordinate system.

virtual void makVrv::DtOsgOverlayRectangleModel::setInsideColor ( float  r,
float  g,
float  b,
float  a 
)
virtual

Set the color at the center of the ellipse.

Reimplemented from makVrv::DtOverlayPolygonModel.

virtual void makVrv::DtOsgOverlayRectangleModel::setOutsideColor ( float  r,
float  g,
float  b,
float  a 
)
virtual

Set the color on the outside of the ellipse.

Reimplemented from makVrv::DtOverlayPolygonModel.

virtual void makVrv::DtOsgOverlayRectangleModel::setSolidFillCenter ( bool  )
virtual

Sets to fill the center solid (if filled) not gradiant. Default is false.

Reimplemented from makVrv::DtOverlayPolygonModel.

virtual void makVrv::DtOsgOverlayRectangleModel::setFillPattern ( const std::vector< unsigned int > &  )
virtual

Sets a fill pattern (32x32)

Reimplemented from makVrv::DtOverlayPolygonModel.

virtual void makVrv::DtOsgOverlayRectangleModel::setOutline ( bool  )
virtual

Sets whether or not to outline the polygon with a scribe as if unfilled, even when filled. Only valid if fill is also true.

Reimplemented from makVrv::DtOverlayPolygonModel.

virtual void makVrv::DtOsgOverlayRectangleModel::setIsPerimeterWrappedTextRenderingEnabled ( bool  )
virtual

Whether or not to render perimeter wrapped text. The DtOsgOverlayRectangleModel does not support this function - this function does nothing.

Reimplemented from makVrv::DtOverlayPolygonModel.

virtual void makVrv::DtOsgOverlayRectangleModel::setPerimeterWrappedTextCollection ( const DtPerimeterWrappedTextCollection )
virtual

The DtOsgOverlayRectangleModel does not support this function - this function does nothing.

Reimplemented from makVrv::DtOverlayPolygonModel.

virtual void makVrv::DtOsgOverlayRectangleModel::setPerimeterWrappedTextInterval ( int  intervalInScreenSpaceCM)
virtual

The DtOsgOverlayRectangleModel does not support this function - this function does nothing.

Reimplemented from makVrv::DtOverlayPolygonModel.

virtual void makVrv::DtOsgOverlayRectangleModel::setPerimeterWrappedTextFont ( const std::string &  fontFile,
float  fontPointSize 
)
virtual

The DtOsgOverlayRectangleModel does not support this function - this function does nothing.

Reimplemented from makVrv::DtOverlayPolygonModel.

virtual void makVrv::DtOsgOverlayRectangleModel::setPerimeterWrappedTextColor ( float  r,
float  g,
float  b,
float  a 
)
virtual

The DtOsgOverlayRectangleModel does not support this function - this function does nothing.

Reimplemented from makVrv::DtOverlayPolygonModel.

virtual void makVrv::DtOsgOverlayRectangleModel::setPerimeterWrappedTextBackgroundColor ( float  r,
float  g,
float  b,
float  a 
)
virtual

The DtOsgOverlayRectangleModel does not support this function - this function does nothing.

Reimplemented from makVrv::DtOverlayPolygonModel.

virtual const DtVector& makVrv::DtOsgOverlayRectangleModel::origin ( ) const
virtual

Get the object's origin.

Reimplemented from makVrv::DtOverlayPolygonModel.

virtual void makVrv::DtOsgOverlayRectangleModel::update ( )
protectedvirtual

Called on tick when updated, calls updateGeometry() of model instance.

Reimplemented from makVrv::DtOverlayPolygonModel.

virtual void makVrv::DtOsgOverlayRectangleModel::needsUpdate ( )
protectedvirtual

Sets needs update flag such that on next update pass the object is updated.

Reimplemented from makVrv::DtOverlayPolygonModel.

virtual void makVrv::DtOsgOverlayRectangleModel::slot_coordinateSystemChanged ( )
protectedvirtual

slot for when the coordinate system changes

Member Data Documentation

DtDcm makVrv::DtOsgOverlayRectangleModel::myOrientationDcm
protected
DtVector makVrv::DtOsgOverlayRectangleModel::myDimensions
protected
DtVector makVrv::DtOsgOverlayRectangleModel::myOrigin
protected
int makVrv::DtOsgOverlayRectangleModel::myGroup
protected
bool makVrv::DtOsgOverlayRectangleModel::myNeedsUpdate
protected
DtSignalConnectionManager makVrv::DtOsgOverlayRectangleModel::myConnections
protected
DtCoordinateSystem* makVrv::DtOsgOverlayRectangleModel::myCoordinateSystem = nullptr
protected

local clone of the system wide coordinate system. for thread safety.

boost::signalslib::connection makVrv::DtOsgOverlayRectangleModel::mySignalPostUpdateConnection
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)