VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes
makVrv::DtDiGuyOsgGraphicsLink Class Reference

Derived diguyGraphicsLink to create OSG transforms and base node to hang shape objects on. More...

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

Public Member Functions

 DtDiGuyOsgGraphicsLink (void *internal_data)
 CTOR. More...
 
virtual ~DtDiGuyOsgGraphicsLink ()
 DTOR. More...
 
virtual void build ()
 Build transform node(s) to position/orient shape geometry per DI-Guy state. More...
 
virtual void unbuild ()
 Build transform node(s) to position/orient shape geometry per DI-Guy state. More...
 
virtual void update ()
 Update matrices per DI-Guy state. More...
 
virtual void update_position ()
 
virtual void patch_tbo_data (const osg::Vec3d &camera_pos)
 updates the TBO matrix code More...
 
virtual void attach_to_scene ()
 Add link's nodes to the scene graph under the DI-Guy root. More...
 
virtual void detach_from_scene ()
 Remove link's nodes from the DI-Guy root. More...
 
virtual void attach_to_link (diguyGraphicsLink *link)
 Attach this link to another link. More...
 
virtual void detach_from_link ()
 Build transform node(s) to position/orient shape geometry per DI-Guy state. More...
 
virtual void set_shader_instance (diguyGraphicsShaderInstance *shader_instance)
 Build transform node(s) to position/orient shape geometry per DI-Guy state. More...
 
virtual void instancing_state_changed (int is_instanced)
 diguy override - no ops More...
 
virtual void fill_out_tbo_additional_data (diguyGraphicsShape *current_shape, float *tbo_data)
 diguy override - extra info like sensors weight More...
 
osg::MatrixTransform * getDofNode ()
 Get the root DOF node for this link. More...
 
DtDiGuyOsgRootNodegetRootNode ()
 returns the dof nod as a custom diguy root node More...
 
virtual void set_allow_motion_offsets (bool allow)
 Enables or disables the use of guides and incorporation of character offset during positioning. More...
 
virtual bool get_allow_motion_offsets () const
 Returns whether the use of guides and offset positioning is enabled or disabled. More...
 
virtual void setPositionAndOrientation (const DtVector &pos, const DtTaitBryan &ori)
 Set the link's base position and orientation in cig coordinates. More...
 
virtual void setCollisionUniqueId (DtUniqueID id)
 Set a unique ID on this object's collision box for intersection testing. More...
 
virtual osg::Uniform * getOrCreateLinkMatrixUniform ()
 called by shape code to share uniform data More...
 
osg::Geode * boundingSphereVisual ()
 returns bounding volume More...
 
virtual void setHasLight (bool value)
 is this link driving a light More...
 

Static Public Member Functions

static void setDiGuySharedNodes (DtDiGuyScenario *scenario, osg::Group *diguy_attach_pt, osg::MatrixTransform *diguy_instancing_attach_pt, DtDiGuyInstanceDrawable *the_diguy_instancing_drawable)
 common nodes More...
 
static osg::Group * getDiGuyAttachGroup ()
 root node of the diguy module More...
 
static osg::MatrixTransform * get_instancing_attach_node ()
 root node of diguy instances More...
 
static DtDiGuyInstanceDrawableget_instancing_drawable ()
 system that draws all the diguy instances More...
 

Protected Member Functions

osg::Geode * makeBoundingSphereVisual (osg::Vec3 &center, float radius)
 Make geometry corresponding to the character's bounding sphere. More...
 

Protected Attributes

osg::ref_ptr
< osg::MatrixTransform > 
m_dof_node
 Get the 1x1 placeholder variation texture. More...
 
osg::ref_ptr< osg::Uniform > myUniformLinkMatrix
 
osg::ref_ptr< osg::Uniform > m_ufrm_emission_color
 
osg::ref_ptr< osg::Geode > myCollisionBoxGeode
 
osg::ref_ptr< osg::Geode > myBoundingSphereVisual
 
DtDiGuyOsgGraphicsShaderInstancemyShaderInstance
 
bool myAllowMotionOffsetsFlag
 
bool myHasLight
 
DtUniqueID myUniqueId
 

Static Protected Attributes

static osg::Group * the_diguy_attach_group
 
static osg::MatrixTransform * the_diguy_instancing_attach_pt
 
static DtDiGuyInstanceDrawablethe_diguy_instancing_drawable
 

Detailed Description

Derived diguyGraphicsLink to create OSG transforms and base node to hang shape objects on.

Constructor & Destructor Documentation

makVrv::DtDiGuyOsgGraphicsLink::DtDiGuyOsgGraphicsLink ( void *  internal_data)

CTOR.

virtual makVrv::DtDiGuyOsgGraphicsLink::~DtDiGuyOsgGraphicsLink ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::DtDiGuyOsgGraphicsLink::build ( )
virtual

Build transform node(s) to position/orient shape geometry per DI-Guy state.

overrides diguyGraphicsLink::build()

virtual void makVrv::DtDiGuyOsgGraphicsLink::unbuild ( )
virtual

Build transform node(s) to position/orient shape geometry per DI-Guy state.

overrides diguyGraphicsLink::unbuild()

virtual void makVrv::DtDiGuyOsgGraphicsLink::update ( )
virtual

Update matrices per DI-Guy state.

overrides diguyGraphicsLink::update()

virtual void makVrv::DtDiGuyOsgGraphicsLink::update_position ( )
virtual
virtual void makVrv::DtDiGuyOsgGraphicsLink::patch_tbo_data ( const osg::Vec3d &  camera_pos)
virtual

updates the TBO matrix code

virtual void makVrv::DtDiGuyOsgGraphicsLink::attach_to_scene ( )
virtual

Add link's nodes to the scene graph under the DI-Guy root.

overrides diguyGraphicsLink::attach_to_scene()

virtual void makVrv::DtDiGuyOsgGraphicsLink::detach_from_scene ( )
virtual

Remove link's nodes from the DI-Guy root.

overrides diguyGraphicsLink::detach_from_scene()

virtual void makVrv::DtDiGuyOsgGraphicsLink::attach_to_link ( diguyGraphicsLink link)
virtual

Attach this link to another link.

overrides diguyGraphicsLink::attach_to_link()

virtual void makVrv::DtDiGuyOsgGraphicsLink::detach_from_link ( )
virtual

Build transform node(s) to position/orient shape geometry per DI-Guy state.

overrides diguyGraphicsLink::build()

virtual void makVrv::DtDiGuyOsgGraphicsLink::set_shader_instance ( diguyGraphicsShaderInstance shader_instance)
virtual

Build transform node(s) to position/orient shape geometry per DI-Guy state.

diguy overrides diguyGraphicsLink::set_shader_instance()

virtual void makVrv::DtDiGuyOsgGraphicsLink::instancing_state_changed ( int  is_instanced)
virtual

diguy override - no ops

virtual void makVrv::DtDiGuyOsgGraphicsLink::fill_out_tbo_additional_data ( diguyGraphicsShape current_shape,
float *  tbo_data 
)
virtual

diguy override - extra info like sensors weight

osg::MatrixTransform* makVrv::DtDiGuyOsgGraphicsLink::getDofNode ( )

Get the root DOF node for this link.

DtDiGuyOsgRootNode* makVrv::DtDiGuyOsgGraphicsLink::getRootNode ( )

returns the dof nod as a custom diguy root node

virtual void makVrv::DtDiGuyOsgGraphicsLink::set_allow_motion_offsets ( bool  allow)
virtual

Enables or disables the use of guides and incorporation of character offset during positioning.

virtual bool makVrv::DtDiGuyOsgGraphicsLink::get_allow_motion_offsets ( ) const
virtual

Returns whether the use of guides and offset positioning is enabled or disabled.

virtual void makVrv::DtDiGuyOsgGraphicsLink::setPositionAndOrientation ( const DtVector pos,
const DtTaitBryan &  ori 
)
virtual

Set the link's base position and orientation in cig coordinates.

virtual void makVrv::DtDiGuyOsgGraphicsLink::setCollisionUniqueId ( DtUniqueID  id)
virtual

Set a unique ID on this object's collision box for intersection testing.

virtual osg::Uniform* makVrv::DtDiGuyOsgGraphicsLink::getOrCreateLinkMatrixUniform ( )
virtual

called by shape code to share uniform data

osg::Geode* makVrv::DtDiGuyOsgGraphicsLink::boundingSphereVisual ( )

returns bounding volume

virtual void makVrv::DtDiGuyOsgGraphicsLink::setHasLight ( bool  value)
virtual

is this link driving a light

static void makVrv::DtDiGuyOsgGraphicsLink::setDiGuySharedNodes ( DtDiGuyScenario scenario,
osg::Group *  diguy_attach_pt,
osg::MatrixTransform *  diguy_instancing_attach_pt,
DtDiGuyInstanceDrawable the_diguy_instancing_drawable 
)
static

common nodes

static osg::Group* makVrv::DtDiGuyOsgGraphicsLink::getDiGuyAttachGroup ( )
static

root node of the diguy module

static osg::MatrixTransform* makVrv::DtDiGuyOsgGraphicsLink::get_instancing_attach_node ( )
static

root node of diguy instances

static DtDiGuyInstanceDrawable* makVrv::DtDiGuyOsgGraphicsLink::get_instancing_drawable ( )
static

system that draws all the diguy instances

osg::Geode* makVrv::DtDiGuyOsgGraphicsLink::makeBoundingSphereVisual ( osg::Vec3 &  center,
float  radius 
)
protected

Make geometry corresponding to the character's bounding sphere.

Member Data Documentation

osg::ref_ptr<osg::MatrixTransform> makVrv::DtDiGuyOsgGraphicsLink::m_dof_node
protected

Get the 1x1 placeholder variation texture.

osg::ref_ptr<osg::Uniform> makVrv::DtDiGuyOsgGraphicsLink::myUniformLinkMatrix
protected
osg::ref_ptr<osg::Uniform> makVrv::DtDiGuyOsgGraphicsLink::m_ufrm_emission_color
protected
osg::ref_ptr<osg::Geode> makVrv::DtDiGuyOsgGraphicsLink::myCollisionBoxGeode
protected
osg::ref_ptr<osg::Geode> makVrv::DtDiGuyOsgGraphicsLink::myBoundingSphereVisual
protected
DtDiGuyOsgGraphicsShaderInstance* makVrv::DtDiGuyOsgGraphicsLink::myShaderInstance
protected
bool makVrv::DtDiGuyOsgGraphicsLink::myAllowMotionOffsetsFlag
protected
bool makVrv::DtDiGuyOsgGraphicsLink::myHasLight
protected
DtUniqueID makVrv::DtDiGuyOsgGraphicsLink::myUniqueId
protected
osg::Group* makVrv::DtDiGuyOsgGraphicsLink::the_diguy_attach_group
staticprotected
osg::MatrixTransform* makVrv::DtDiGuyOsgGraphicsLink::the_diguy_instancing_attach_pt
staticprotected
DtDiGuyInstanceDrawable* makVrv::DtDiGuyOsgGraphicsLink::the_diguy_instancing_drawable
staticprotected

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

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)