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::DtOsgRectangularPyramidModel Class Reference

OSG implementation of the DtRectangularPyramidModel.

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

Public Member Functions

 DtOsgRectangularPyramidModel (makVrv::DtDe &de, makVrv::DtUniqueID &id)
 
virtual ~DtOsgRectangularPyramidModel ()
 
virtual const std::string & className () const
 
virtual void addToScene (const makVrv::DtUniqueID &sceneObjectId, DtModelSetId modelSet, int visualizerType)
 
virtual void removeFromScene ()
 
virtual void setModelDefinition (const std::string &str)
 
virtual void setPosition (int vtx, const DtVector &position)
 
virtual void setOrientation (int vtx, const DtTaitBryan &orientation)
 
virtual void setRelativePosition (double x, double y, double z)
 
virtual void setRelativeOrientation (const DtTaitBryan &ori)
 
virtual void setSize (double slantHeight)
 
virtual void setColor (float r, float g, float b, float a)
 
virtual void setInnerColor (float r, float g, float b, float a)
 
virtual void setOuterColor (float r, float g, float b, float a)
 
virtual void setXHalfAngle (double xHalfAngle)
 
virtual void setYHalfAngle (double yHalfAngle)
 
virtual void setShowLines (bool showLines)
 
virtual void setLinesHaveAlpha (bool lineAlpha)
 
virtual void setIsSupportModel (bool isSupport)
 
- Public Member Functions inherited from makVrv::DtRectangularPyramidModel
 DtRectangularPyramidModel (makVrv::DtDe &de, makVrv::DtUniqueID id)
 
virtual ~DtRectangularPyramidModel ()
 
- 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 DtUniqueID uniqueId () const
 
unsigned int transformSize () const
 
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 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 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
 
DtDede ()
 
virtual void setModelInstance (DtModelInstance *modelInstance)
 
virtual void promoteBackgroundModelInstance (const DtModelDefinition &defintion)
 
virtual void setVisible (bool isVisible)
 
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 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 ()
 
- 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

makVrv::DtOsgSceneConnectormySceneConnector
 
DtUniqueID myTargetObjectId
 
DtUniqueID myHostObjectId
 
DtVector myRelativePosition
 
bool myNeedsUpdate
 
boost::signalslib::connection mySignalPostUpdateConnection
 
- 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 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
 

Constructor & Destructor Documentation

makVrv::DtOsgRectangularPyramidModel::DtOsgRectangularPyramidModel ( makVrv::DtDe de,
makVrv::DtUniqueID id 
)
virtual makVrv::DtOsgRectangularPyramidModel::~DtOsgRectangularPyramidModel ( )
virtual

Virtual DTOR.

Member Function Documentation

virtual const std::string& makVrv::DtOsgRectangularPyramidModel::className ( ) const
virtual

Returns the name of this class.

See Also
makVrv::DtModel::className()

Reimplemented from makVrv::DtRectangularPyramidModel.

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

Attaches the model to the scene If this model has a modelinstance, it is attached to the scene.

See Also
makVrv::DtModel::addToScene( const DtUniqueID&, int, int )

Implements makVrv::DtModel.

virtual void makVrv::DtOsgRectangularPyramidModel::removeFromScene ( )
virtual

Detaches the model from the scene If this model has a modelinstance, it is detached from the scene.

See Also
makVrv::DtModel::removeFromScene()

Implements makVrv::DtModel.

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

Sets the model definition on the model instance Overridden to prevent lookup and instantiation of model instance using the DtModelInstanceFactory.

Parameters
strthe model definition to set
See Also
makVrv::DtModel::setModelDefinition( const std::string& )

Reimplemented from makVrv::DtModel.

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

Set the position of the rectangular pyramid Sets the position of the model's scene connector (model root)

Parameters
vtxthe vertex to set the position of (only 0 has any effect)
positionthe position to set
See Also
makVrv::DtModel::setPosition( int, const DtVector& )

Reimplemented from makVrv::DtModel.

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

Set the orientation of the rectangular pyramid Sets the orientation of the model's scene connector (model root)

Parameters
vtxthe vertex to set the position of (only 0 has any effect)
orithe orientation to set
See Also
makVrv::DtModel::setOrientation( int, const DtTaitBryan& )

Reimplemented from makVrv::DtModel.

virtual void makVrv::DtOsgRectangularPyramidModel::setRelativePosition ( double  x,
double  y,
double  z 
)
virtual

Set the relative position of the rectangular pyramid Sets the position of the model instance relative to the parent node.

Parameters
xthe relative x translation
ythe relative y translation
zthe relative z translation

Implements makVrv::DtRectangularPyramidModel.

virtual void makVrv::DtOsgRectangularPyramidModel::setRelativeOrientation ( const DtTaitBryan &  ori)
virtual

Set the relative orientation of the rectangular pyramid Sets the orientation of the model instance relative to the parent node.

Parameters
yawthe yaw, -DtTaitBryan::psi()
pitchthe pitch, DtTaitBryan::theta()
rollthe roll, DtTaitBryan::phi()

Implements makVrv::DtRectangularPyramidModel.

virtual void makVrv::DtOsgRectangularPyramidModel::setSize ( double  slantHeight)
virtual

Sets the size of the rectangular pyramid.

Parameters
slantHeightthe length of the pyramid's slant height.

Implements makVrv::DtRectangularPyramidModel.

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

Sets both the inside and outside colors. Sets the color of the entire rectangular pyramid.

Parameters
rthe red component of the color
gthe green component of the color
bthe blue component of the color
athe alpha component of the color

Implements makVrv::DtRectangularPyramidModel.

virtual void makVrv::DtOsgRectangularPyramidModel::setInnerColor ( float  r,
float  g,
float  b,
float  a 
)
virtual

Sets the inner color. Sets the color of the inside (near vertex) of the rectangular pyramid.

Parameters
rthe red component of the color
gthe green component of the color
bthe blue component of the color
athe alpha component of the color

Implements makVrv::DtRectangularPyramidModel.

virtual void makVrv::DtOsgRectangularPyramidModel::setOuterColor ( float  r,
float  g,
float  b,
float  a 
)
virtual

Sets the outer color. Sets the color of the outside (far vertices) of the rectangular pyramid.

Parameters
rthe red component of the color
gthe green component of the color
bthe blue component of the color
athe alpha component of the color

Implements makVrv::DtRectangularPyramidModel.

virtual void makVrv::DtOsgRectangularPyramidModel::setXHalfAngle ( double  xHalfAngle)
virtual

Set the half angle amount in the x direction.

Parameters
xHalfAnglethe half-angle in the x direction.

Implements makVrv::DtRectangularPyramidModel.

virtual void makVrv::DtOsgRectangularPyramidModel::setYHalfAngle ( double  yHalfAngle)
virtual

Set the half angle amount in the y direction.

Parameters
yHalfAnglethe half-angle in the y direction.

Implements makVrv::DtRectangularPyramidModel.

virtual void makVrv::DtOsgRectangularPyramidModel::setShowLines ( bool  showLines)
virtual

Set whether the wireframe outlines are visible on the geometry Sets whether the wireframe lines for the rectangular pyramid should be drawn If set, the wireframe lines are drawn in addition to the geometry faces.

Parameters
showLineswhether the lines should be visible or hidden

Implements makVrv::DtRectangularPyramidModel.

virtual void makVrv::DtOsgRectangularPyramidModel::setLinesHaveAlpha ( bool  lineAlpha)
virtual

Set whether the wireframe outlines should be rendered with alpha Sets whether the alpha component of the pyramid's colors should apply to the wireframe outlines as well as the faces, or just to the faces.

Parameters
whetherthe lines should be affected by the color's alpha values.

Implements makVrv::DtRectangularPyramidModel.

virtual void makVrv::DtOsgRectangularPyramidModel::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)

Implements makVrv::DtRectangularPyramidModel.

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

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

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

Call to set up callback for needing an update.

Member Data Documentation

makVrv::DtOsgSceneConnector* makVrv::DtOsgRectangularPyramidModel::mySceneConnector
protected
DtUniqueID makVrv::DtOsgRectangularPyramidModel::myTargetObjectId
protected
DtUniqueID makVrv::DtOsgRectangularPyramidModel::myHostObjectId
protected
DtVector makVrv::DtOsgRectangularPyramidModel::myRelativePosition
protected
bool makVrv::DtOsgRectangularPyramidModel::myNeedsUpdate
protected
boost::signalslib::connection makVrv::DtOsgRectangularPyramidModel::mySignalPostUpdateConnection
protected

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

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)