VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtIndirectGeometryInitMainThreadJob.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2020 VT-MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 
15 
16 #include <osg/OperationThread>
17 #include <osg/observer_ptr>
18 
19 #include <tbb/atomic.h>
20 
21 namespace osg
22 {
23  class Object;
24 }
25 
26 namespace makVrv
27 {
28  class DtIndirectGeometry;
29 
32 
35 
37  template <>
38  inline const char* creatorTypeName<DtIndirectGeometryInitMainThreadJob>(void) { return "DtIndirectGeometryInitMainThreadJobCreator"; }
39 
42  class DT_DLL_VRVOSG DtIndirectGeometryInitMainThreadJob : public osg::Operation
43  {
44  public:
47 
50  protected:
53  private:
60 
61  public:
63  virtual void operator() (osg::Object* sv);
64 
66  virtual bool jobIsDone();
67 
69  virtual void stop();
70  protected:
72  osg::observer_ptr< DtIndirectGeometry >myIndirectGeometry;
73  tbb::atomic<bool> myJobIsDone;
74  };
75 }
const char * creatorTypeName< DtIndirectGeometryInitMainThreadJob >(void)
template specialization for the creator (pass the class being created to the creatorTypeName template...
Definition: DtIndirectGeometryInitMainThreadJob.h:38
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
friend DtIndirectGeometryInitMainThreadJobCreator
friend. only creator can create
Definition: DtIndirectGeometryInitMainThreadJob.h:46
DtDe & myDe
Definition: DtIndirectGeometryInitMainThreadJob.h:71
tbb::atomic< bool > myJobIsDone
Definition: DtIndirectGeometryInitMainThreadJob.h:73
Variadic templated creator class for defining a DtVirtualBaseClass creator that is automatically regi...
Definition: DtVirtualBaseClassCreator.h:22
\ ::, which allows us to hook into our indirect engine to render using indirect rendering...
Definition: DtIndirectGeometry.h:102
responsible for initializing the indirect buffers in the main thread
Definition: DtIndirectGeometryInitMainThreadJob.h:42
Contains DLL export macros.
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
DtVirtualBaseClassCreator< DtIndirectGeometryInitMainThreadJob, DtIndirectGeometry * > DtIndirectGeometryInitMainThreadJobCreator
creator
Definition: DtIndirectGeometryInitMainThreadJob.h:31
osg::observer_ptr< DtIndirectGeometry > myIndirectGeometry
Definition: DtIndirectGeometryInitMainThreadJob.h:72

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)