VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtIndirectDeleteHelper.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2024 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 
15 #include <vrvUtil/signalslib.h>
16 
17 namespace makVrv
18 {
19  class DtDe;
20  class DtCellIndirectGeo;
21  class DtIndirectModelsContainer;
22 
27  {
28  public:
30  static void registerInstance( DtDe& de );
31 
34  static DtIndirectDeleteHelper& instance( DtDe& de );
35 
36  public:
37 
40 
42  virtual ~DtIndirectDeleteHelper();
43 
45  DtIndirectDeleteHelper() = delete;
47  DtIndirectDeleteHelper( const DtIndirectDeleteHelper& other ) = delete;
49  DtIndirectDeleteHelper( const DtIndirectDeleteHelper&& other ) = delete;
51  DtIndirectDeleteHelper& operator=( const DtIndirectDeleteHelper& other ) = delete;
52 
53  public:
55  virtual void addContainerToDelete( DtIndirectModelsContainer* geo );
56  protected:
59  virtual void slot_postTick();
60  protected:
62 
63  vrvSignalsLib::connection myPostTickConnection;
64  std::list<DtIndirectModelsContainer*> myContainersToDelayDelete;
65  };
66 }
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_VRVOSG
Definition: vrvOsg.h:23
Helper for managing indirect geometry deletion Only deletes if there are no backround tasks in the co...
Definition: DtIndirectDeleteHelper.h:26
DtDe & myDe
Definition: DtIndirectDeleteHelper.h:61
class for holding an indirect geometry registrar (which holds the information about how to draw model...
Definition: DtIndirectModelsContainer.h:55
std::list< DtIndirectModelsContainer * > myContainersToDelayDelete
Definition: DtIndirectDeleteHelper.h:64
Contains DLL export macros.
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:72
vrvSignalsLib::connection myPostTickConnection
Definition: DtIndirectDeleteHelper.h:63

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)