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 | Private Attributes
makVrv::DtTracerEffectEntry Class Reference

Represents a single effect-system registration for a ballistic tracer effect variant.

Holds a blank proxy osg::Node used to obtain a texture buffer coordinate from SensorFX or CameraFX, and delivers that coordinate back to the manager via setOtherData0().

Public Member Functions

 DtTracerEffectEntry (const std::string &pipFilename, std::function< void(const osg::Vec4 &)> otherDataCallback)
 
virtual ~DtTracerEffectEntry ()
 
 DtTracerEffectEntry (const DtTracerEffectEntry &)=delete
 
DtTracerEffectEntry & operator= (const DtTracerEffectEntry &)=delete
 
 DtTracerEffectEntry (DtTracerEffectEntry &&)=delete
 
DtTracerEffectEntry & operator= (DtTracerEffectEntry &&)=delete
 
const std::string & pipFilename () const
 
osg::Node * proxyNode () const
 
void setOtherData0 (const osg::Vec4 &pod)
 
const osg::Vec4 & otherData0 () const
 
bool isOtherDataValid () const
 

Private Attributes

std::string myPipFilename
 
osg::ref_ptr< osg::Node > myProxyNode
 
osg::Vec4 myOtherData0
 
bool myOtherDataValid
 
std::function< void(const
osg::Vec4 &)> 
myOtherDataCallback
 

Constructor & Destructor Documentation

makVrv::DtTracerEffectEntry::DtTracerEffectEntry ( const std::string &  pipFilename,
std::function< void(const osg::Vec4 &)>  otherDataCallback 
)
explicit

Constructs a new DtTracerEffectEntry for the given pip filename.

Creates a new blank osg::Node for the proxy node. myOtherDataValid starts false.

Parameters
pipFilenamePip filename this node represents.
otherDataCallbackInvoked from setOtherData0() when per-object data arrives. May be null.
virtual makVrv::DtTracerEffectEntry::~DtTracerEffectEntry ( )
virtual

Destructor.

makVrv::DtTracerEffectEntry::DtTracerEffectEntry ( const DtTracerEffectEntry &  )
delete

Copy construction is not supported.

makVrv::DtTracerEffectEntry::DtTracerEffectEntry ( DtTracerEffectEntry &&  )
delete

Move construction is not supported.

Member Function Documentation

DtTracerEffectEntry& makVrv::DtTracerEffectEntry::operator= ( const DtTracerEffectEntry &  )
delete

Copy assignment is not supported.

DtTracerEffectEntry& makVrv::DtTracerEffectEntry::operator= ( DtTracerEffectEntry &&  )
delete

Move assignment is not supported.

const std::string& makVrv::DtTracerEffectEntry::pipFilename ( ) const

Returns the pip filename associated with this node.

Returns
The pip filename string passed to the constructor.
osg::Node* makVrv::DtTracerEffectEntry::proxyNode ( ) const

Returns the blank proxy osg::Node used for SensorRender registration.

The caller must not delete this pointer or add the node to any scene graph.

Returns
Non-owning pointer to the proxy node.
void makVrv::DtTracerEffectEntry::setOtherData0 ( const osg::Vec4 &  pod)

Stores the SensorFX per-object data and notifies any registered callback.

Sets myOtherDataValid to true and invokes myOtherDataCallback if non-null.

Parameters
podThe per-object data vec4 returned by sgObject::getPerObjectData().
const osg::Vec4& makVrv::DtTracerEffectEntry::otherData0 ( ) const

Returns the stored per-object data vec4.

The value is unspecified until isOtherDataValid() returns true.

Returns
The per-object data previously set by setOtherData0().
bool makVrv::DtTracerEffectEntry::isOtherDataValid ( ) const

Returns true if setOtherData0() has been called at least once.

Returns
True when the per-object data is valid and safe to read.

Member Data Documentation

std::string makVrv::DtTracerEffectEntry::myPipFilename
private

Pip filename for this tracer variant.

osg::ref_ptr<osg::Node> makVrv::DtTracerEffectEntry::myProxyNode
private

Blank proxy node registered with SensorRender.

osg::Vec4 makVrv::DtTracerEffectEntry::myOtherData0
private

SensorFX per-object data; valid only when myOtherDataValid is true.

bool makVrv::DtTracerEffectEntry::myOtherDataValid
private

True after the first call to setOtherData0().

std::function<void(const osg::Vec4&)> makVrv::DtTracerEffectEntry::myOtherDataCallback
private

Optional callback invoked from setOtherData0().


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

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)