VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtTerrainPageSignaler.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
14 
15 #include <vrvUtil/signalslib.h>
16 
17 namespace osg
18 {
19  class Node;
20  class Group;
21 }
22 
23 namespace makVrv
24 {
31  {
32  public:
33 
34  //priorities
36  {
37  PRE_PROCESS_PRIORITY = 0
38  , DEFAULT_PROCESS_PRIORITY = 1
39  , POST_PROCESS_PRIORITY = 2
40  , PROCESS_COMPLETED_PRIORITY = 3
41  };
42 
44  static DtTerrainPageSignaler& instance(DtDe&);
45  static void registerInstance(DtDe& de, DtTerrainPageSignaler*);
46 
48  virtual ~DtTerrainPageSignaler();
49 
51  boost::signalslib::signal<void(const osg::Group* page, const osg::Node* child, const std::string& fileName, osg::Node*& returnedNode)> signal_childLoaded;
52 
54  boost::signalslib::signal<void(const osg::Group* page, const osg::Node* child)> signal_childPagedIn;
55 
58  boost::signalslib::signal<void(const osg::Group* page, const osg::Node* child)> signal_childAboutToPageOut;
59 
61  virtual void setSignalsEnabled(bool enable);
62 
64  virtual bool signalsEnabled(void) const;
65 
66  protected:
69 
70  protected:
72  };
73 }
boost::signalslib::signal< void(const osg::Group *page, const osg::Node *child, const std::string &fileName, osg::Node *&returnedNode)> signal_childLoaded
signal when a child is loaded, but not yet added to the scenegraph
Definition: DtTerrainPageSignaler.h:51
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
bool mySignalsEnabled
Definition: DtTerrainPageSignaler.h:71
Contains makVrv::DtVirtualBaseClass class.
boost::signalslib::signal< void(const osg::Group *page, const osg::Node *child)> signal_childAboutToPageOut
signal when a child is about to be paged out (i.e. data corresponding to it unloaded and the child re...
Definition: DtTerrainPageSignaler.h:58
It is expected that custom implementations of paging (whether inheriting from pagedLOD or not...
Definition: DtTerrainPageSignaler.h:30
boost::signalslib::signal< void(const osg::Group *page, const osg::Node *child)> signal_childPagedIn
signal when a child is paged in (i.e. added to the scenegraph)
Definition: DtTerrainPageSignaler.h:54
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:76
SignalSlotPriority
Definition: DtTerrainPageSignaler.h:35

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)