![]() |
VR-Forces Developer's Guide
|
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 |
|
explicit |
Constructs a new DtTracerEffectEntry for the given pip filename.
Creates a new blank osg::Node for the proxy node. myOtherDataValid starts false.
| pipFilename | Pip filename this node represents. |
| otherDataCallback | Invoked from setOtherData0() when per-object data arrives. May be null. |
|
virtual |
Destructor.
|
delete |
Copy construction is not supported.
|
delete |
Move construction is not supported.
|
delete |
Copy assignment is not supported.
|
delete |
Move assignment is not supported.
| const std::string& makVrv::DtTracerEffectEntry::pipFilename | ( | ) | const |
Returns the pip filename associated with this node.
| 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.
| 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.
| pod | The 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.
| bool makVrv::DtTracerEffectEntry::isOtherDataValid | ( | ) | const |
Returns true if setOtherData0() has been called at least once.
|
private |
Pip filename for this tracer variant.
|
private |
Blank proxy node registered with SensorRender.
|
private |
SensorFX per-object data; valid only when myOtherDataValid is true.
|
private |
True after the first call to setOtherData0().
|
private |
Optional callback invoked from setOtherData0().