VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtTracerEffectEntry.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2026 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 
14 #include <osg/Node>
15 #include <osg/Vec4>
16 
17 #include <functional>
18 #include <string>
19 
20 namespace makVrv
21 {
28  {
29  public:
37  explicit DtTracerEffectEntry(const std::string& pipFilename,
38  std::function<void(const osg::Vec4&)> otherDataCallback);
39 
41  virtual ~DtTracerEffectEntry();
42 
45 
47  DtTracerEffectEntry& operator=(const DtTracerEffectEntry&) = delete;
48 
51 
53  DtTracerEffectEntry& operator=(DtTracerEffectEntry&&) = delete;
54 
57  const std::string& pipFilename() const;
58 
64  osg::Node* proxyNode() const;
65 
71  void setOtherData0(const osg::Vec4& pod);
72 
78  const osg::Vec4& otherData0() const;
79 
82  bool isOtherDataValid() const;
83 
84  private:
85  std::string myPipFilename;
87  osg::Vec4 myOtherData0;
89  std::function<void(const osg::Vec4&)> myOtherDataCallback;
90  };
91 }
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
osg::Vec4 myOtherData0
SensorFX per-object data; valid only when myOtherDataValid is true.
Definition: DtTracerEffectEntry.h:87
osg::ref_ptr< osg::Node > myProxyNode
Blank proxy node registered with SensorRender.
Definition: DtTracerEffectEntry.h:86
Represents a single effect-system registration for a ballistic tracer effect variant.
Definition: DtTracerEffectEntry.h:27
std::string myPipFilename
Pip filename for this tracer variant.
Definition: DtTracerEffectEntry.h:85
Contains DLL export macros.
std::function< void(const osg::Vec4 &)> myOtherDataCallback
Optional callback invoked from setOtherData0().
Definition: DtTracerEffectEntry.h:89
bool myOtherDataValid
True after the first call to setOtherData0().
Definition: DtTracerEffectEntry.h:88

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)