VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtChannelSpecificGroup.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2022 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
6 
10 
11 #ifndef DtChannelSpecificGroup_H_
12 #define DtChannelSpecificGroup_H_
13 
14 #include <vrvOsg/vrvOsg.h>
15 #include <vrvOsg/DtFastGroup.h>
16 
17 #include <unordered_set>
18 
19 namespace osg
20 {
21  class View;
22 }
23 
24 
25 namespace makVrv
26 {
27  class DtChannel;
28 
32  {
33  public:
36  DtChannelSpecificGroup(const DtChannelSpecificGroup& orig, const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY);
37 
38  META_Node(vrvOsg, DtChannelSpecificGroup);
39 
41  virtual ~DtChannelSpecificGroup();
42 
44  virtual void addChannel(DtChannel* channel);
45 
47  virtual void removeChannel(DtChannel* channel);
48 
50  virtual int numChannels() const;
51 
53  virtual void traverse(osg::NodeVisitor& nv);
54 
60  virtual void addView( osg::View* viewToAdd );
61 
63  virtual void removeView( osg::View* viewToRemove );
64 
65  protected:
66  typedef std::unordered_set<DtChannel*> ChannelSet;
67  typedef std::unordered_set<const osg::View*> ViewSet;
68 
71 
72  };
73 
74 }
75 
76 #endif
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
std::unordered_set< const osg::View * > ViewSet
Definition: DtChannelSpecificGroup.h:67
Contains makVrv::DtFastGroup class.
std::unordered_set< DtChannel * > ChannelSet
Definition: DtChannelSpecificGroup.h:66
The abstract Channel Class.
Definition: DtChannel.h:35
A group node that culls it&#39;s group members based on channels.
Definition: DtChannelSpecificGroup.h:31
osg::Group with optimized removeChildren function
Definition: DtFastGroup.h:22
ChannelSet myChannels
Definition: DtChannelSpecificGroup.h:69
ViewSet myFastViewLookup
Definition: DtChannelSpecificGroup.h:70
Contains DLL export macros.

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)