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

OSG implementation of distributed cuboid model.

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

Public Member Functions

 DtOsgEllipsoidArcModel (DtDe &de, DtUniqueID &id)
 
virtual ~DtOsgEllipsoidArcModel ()
 
virtual const std::string & className () const
 
virtual void setRelativePosition (double x, double y, double z)
 
virtual void setRelativeOrientation (const DtTaitBryan &ori)
 
virtual void setDimensions (double x, double y, double z)
 
virtual void setColor (float r, float g, float b, float a)
 
virtual void setInsideColor (float r, float g, float b, float a)
 
virtual void setOutsideColor (float r, float g, float b, float a)
 
virtual void setVisible (bool visible)
 
virtual void setPosition (int vtx, const DtVector &position)
 
virtual void setOrientation (int vtx, const DtTaitBryan &orientation)
 
virtual void setAzimuthRange (float center, float sweep)
 
virtual void setElevationRange (float center, float sweep)
 
virtual void setMaxAngleSegment (float angleSegmentMax)
 
virtual void setShowLines (bool showLines)
 
virtual void setLinesHaveAlpha (bool lineAlpha)
 
virtual void setIsPickable (bool)
 
virtual void addToScene (const DtUniqueID &sceneObjectId, DtModelSetId modelSet, int visualizerType)
 
virtual void removeFromScene ()
 
virtual void setModelDefinition (const std::string &str)
 
virtual void setIsSupportModel (bool isSupport)
 
- Public Member Functions inherited from makVrv::DtEllipsoidArcModel
 DtEllipsoidArcModel (DtDe &de, DtUniqueID id)
 
virtual ~DtEllipsoidArcModel ()
 
- 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 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

DtOsgSceneConnectormySceneConnector
 
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::DtOsgEllipsoidArcModel::DtOsgEllipsoidArcModel ( DtDe de,
DtUniqueID id 
)

Instantiates a new DtOsgEllipsoidArcModel.

See Also
makVrv::DtEllipsoidArcModel::DtEllipsoidArcModel( DtDe&, DtUniqueID& )
virtual makVrv::DtOsgEllipsoidArcModel::~DtOsgEllipsoidArcModel ( )
virtual

Removes the model instance from the scene and deletes the scene connector.

Member Function Documentation

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

Returns the model's class name (DtOsgEllipsoidArcModel)

Returns
the model's class name

Reimplemented from makVrv::DtModel.

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

Set the local translation of the ellipsoid Sets the position of the model relative to the scene connector.

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

Implements makVrv::DtEllipsoidArcModel.

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

Set the local orientation of the ellipsoid Sets the orientation of the model's scene connector.

Parameters
orithe relative orientation in Tait-Bryan form

Implements makVrv::DtEllipsoidArcModel.

virtual void makVrv::DtOsgEllipsoidArcModel::setDimensions ( double  x,
double  y,
double  z 
)
virtual

Set the dimensions of the ellipsoid Sets the lengths of the ellipsoid's axes.

Parameters
xthe length of the ellipsoid's x axis
ythe length of the ellipsoid's y axis
zthe length of the ellipsoid's z axis

Implements makVrv::DtEllipsoidArcModel.

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

Set the color of the ellipsoid Sets the color of the ellipsoid.

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::DtEllipsoidArcModel.

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

Set the color at the center of the sphere Sets the color of the inside of the ellipsoid (the centroid)

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::DtEllipsoidArcModel.

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

Set the color on the surface of the sphere Sets the color of the outside (surface) of the ellipsoid.

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::DtEllipsoidArcModel.

virtual void makVrv::DtOsgEllipsoidArcModel::setVisible ( bool  visible)
virtual

Set whether the ellipsoid is visible Changes the visibility of the ellipsoid arc model.

Parameters
isVisiblewhether the model should be visible or not

Reimplemented from makVrv::DtModel.

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

Set the position of the ellipsoid; only vtx == 0 has an effect Sets the position of the model on the scene connector.

Parameters
vtxthe vertex to set the position of (only 0 is supported)
positionthe position to set

Implements makVrv::DtEllipsoidArcModel.

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

Set the orientation of the ellipsoid; only vtx == 0 has an effect Sets the orientation of the model on the scene connector.

Parameters
vtxthe vertex to set the position of (only 0 is supported)
orithe orientation to set

Reimplemented from makVrv::DtModel.

virtual void makVrv::DtOsgEllipsoidArcModel::setAzimuthRange ( float  center,
float  sweep 
)
virtual

Set the azimuth range of the arc Sets the azimuth range of the ellipsoid arc.

Parameters
centerthe center of the azimuth range
sweepthe angle between the center and the azimuth max/min

Implements makVrv::DtEllipsoidArcModel.

virtual void makVrv::DtOsgEllipsoidArcModel::setElevationRange ( float  center,
float  sweep 
)
virtual

Set the inclination range of the arc Sets the elevation range of the ellipsoid arc.

Parameters
centerthe center of the elevation range
sweepthe angle between the center and the elevation max/min

Implements makVrv::DtEllipsoidArcModel.

virtual void makVrv::DtOsgEllipsoidArcModel::setMaxAngleSegment ( float  angleSegmentMax)
virtual

Set the max angle segment used when building the geometry Sets the max angle segment between samples on the ellipsoid's surface.

Parameters
angleSegmentMaxthe max angle segment between samples

Implements makVrv::DtEllipsoidArcModel.

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

Set whether the wireframe outlines are visible on the geometry Whether to show the wireframe lines for the model.

Parameters
showLineswhether to show the lines or hide them

Implements makVrv::DtEllipsoidArcModel.

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

Set whether the wireframe outlines should be rendered with alpha Sets whether the alpha component of the ellipsoid'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::DtEllipsoidArcModel.

virtual void makVrv::DtOsgEllipsoidArcModel::setIsPickable ( bool  )
virtual

Set whether or not the model is pickable.

Implements makVrv::DtEllipsoidArcModel.

virtual void makVrv::DtOsgEllipsoidArcModel::addToScene ( const 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::DtOsgEllipsoidArcModel::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::DtOsgEllipsoidArcModel::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::DtOsgEllipsoidArcModel::setIsSupportModel ( bool  isSupport)
virtual

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

Parameters
isSupportwhether the model should be in the support group or not

Implements makVrv::DtModel.

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

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

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

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

Member Data Documentation

DtOsgSceneConnector* makVrv::DtOsgEllipsoidArcModel::mySceneConnector
protected
bool makVrv::DtOsgEllipsoidArcModel::myNeedsUpdate
protected
boost::signalslib::connection makVrv::DtOsgEllipsoidArcModel::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)