VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtSpeedTreePreCullJobManager.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2021 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
11 
12 #pragma once
13 
14 #include <vrvSt/vrvSt.h>
15 
17 
18 #include <osg/ref_ptr>
19 #include <osg/OperationThread>
20 
21 #include <tbb/task.h>
22 
23 #include <set>
24 
25 namespace osg
26 {
27  class Camera;
28  class Object;
29 }
30 
31 namespace makVrv
32 {
33  class DtSpeedTreeForestPreCullJob;
34  class DtSpeedTreeForest;
35 
40  {
41  protected:
42 
45 
48 
54  DtSpeedTreePreCullJobManager &operator=(const DtSpeedTreePreCullJobManager &other) = delete;
55 
56  public:
59  static DtSpeedTreePreCullJobManager& instance(DtDe& de);
60 
62  static const std::string& theClassName();
63 
64  public:
65 
67  virtual void addSpeedTreeForestToJob(DtSpeedTreeForest& forest);
68 
70  virtual void removeSpeedTreeForestFromJob(DtSpeedTreeForest& forest);
71 
72  //Enable or disable the asynchronous speedtree update
73  virtual void setEnableAsyncUpdate(bool enableAsyncUpdate);
74 
75  protected:
76 
78  virtual void initialize();
79 
80  protected:
83  };
84 }
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
#define DT_DLL_VRVST
Definition: vrvSt.h:20
Definition: featureContext.h:37
osg::ref_ptr< DtSpeedTreeForestPreCullJob > myPreCullJob
Definition: DtSpeedTreePreCullJobManager.h:81
Contains DLL export macros.
Contains makVrv::DtVirtualBaseClass class.
DtSpeedTreeForest is the SpeedTree implementation of a distributed DtForestObject.
Definition: DtSpeedTreeForest.h:48
DtDe & myDe
Definition: DtSpeedTreePreCullJobManager.h:82
DtSpeedTreePreCullJobManager is a singleton manager for adding the pre cull job and used to control t...
Definition: DtSpeedTreePreCullJobManager.h:39
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)