VR-Forces 4.8 Class Documentation
 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) 2012 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 #include <boost/unordered_set.hpp>
17 
18 namespace osg
19 {
20  class View;
21 }
22 
23 
24 namespace makVrv
25 {
26  class DtChannel;
27 
31  {
32  public:
35  DtChannelSpecificGroup(const DtChannelSpecificGroup& orig, const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY);
36 
37  META_Node(vrvOsg, DtChannelSpecificGroup);
38 
40  virtual ~DtChannelSpecificGroup();
41 
43  virtual void addChannel(DtChannel* channel);
44 
46  virtual void removeChannel(DtChannel* channel);
47 
49  virtual int numChannels() const;
50 
52  virtual void traverse(osg::NodeVisitor& nv);
53 
59  virtual void addView( osg::View* viewToAdd );
60 
62  virtual void removeView( osg::View* viewToRemove );
63 
64  protected:
65  typedef boost::unordered_set<DtChannel*> ChannelSet;
66  typedef boost::unordered_set<osg::View*> ViewSet;
67 
70 
71  };
72 
73 }
74 
75 #endif
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
Contains makVrv::DtFastGroup class.
boost::unordered_set< DtChannel * > ChannelSet
Definition: DtChannelSpecificGroup.h:65
The abstract Channel Class.
Definition: DtChannel.h:29
A group node that culls it&#39;s group members based on channels.
Definition: DtChannelSpecificGroup.h:30
osg::Group with optimized removeChildren function
Definition: DtFastGroup.h:22
ChannelSet myChannels
Definition: DtChannelSpecificGroup.h:68
ViewSet myFastViewLookup
Definition: DtChannelSpecificGroup.h:69
Contains DLL export macros.
boost::unordered_set< osg::View * > ViewSet
Definition: DtChannelSpecificGroup.h:66

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)