VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Types | Protected Attributes
makVrv::DtChannelSpecificGroup Class Reference

A group node that culls it's group members based on channels. More...

Inheritance diagram for makVrv::DtChannelSpecificGroup:
Inheritance graph
[legend]

Public Member Functions

 DtChannelSpecificGroup ()
 CTOR.
 DtChannelSpecificGroup (const DtChannelSpecificGroup &orig, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 META_Node (vrvOsg, DtChannelSpecificGroup)
virtual ~DtChannelSpecificGroup ()
 DTOR.
virtual void addChannel (DtChannel *channel)
 Add channels that should draw the things under this group node.
virtual void removeChannel (DtChannel *channel)
 Remove a channel causing things under this group node to be culled from this channel.
virtual int numChannels () const
 Returns the number of channels that are accepted by the node.
virtual void traverse (osg::NodeVisitor &nv)
 traverses the group, checking in the case of a culler, if the channel is allowed to render these objects
virtual void addView (osg::View *viewToAdd)
 Although the interface implies that these groups cull by channel, what they REALLY do is cull based on the osg::View associated with the camera associated with a channel.
virtual void removeView (osg::View *viewToRemove)
 Remove a previously added view.
- Public Member Functions inherited from makVrv::DtFastGroup
 DtFastGroup ()
 DtFastGroup (const DtFastGroup &, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 Copy constructor using CopyOp to manage deep vs shallow copy.
virtual bool removeChildren (unsigned int pos, unsigned int numChildrenToRemove)
 Override removeChildren with optimized version.

Protected Types

typedef boost::unordered_set
< DtChannel * > 
ChannelSet
typedef boost::unordered_set
< osg::View * > 
ViewSet

Protected Attributes

ChannelSet myChannels
ViewSet myFastViewLookup

Detailed Description

A group node that culls it's group members based on channels.

Member Typedef Documentation

typedef boost::unordered_set<DtChannel*> makVrv::DtChannelSpecificGroup::ChannelSet
protected
typedef boost::unordered_set<osg::View*> makVrv::DtChannelSpecificGroup::ViewSet
protected

Constructor & Destructor Documentation

makVrv::DtChannelSpecificGroup::DtChannelSpecificGroup ( )

CTOR.

makVrv::DtChannelSpecificGroup::DtChannelSpecificGroup ( const DtChannelSpecificGroup orig,
const osg::CopyOp &  copyop = osg::CopyOp::SHALLOW_COPY 
)
virtual makVrv::DtChannelSpecificGroup::~DtChannelSpecificGroup ( )
virtual

DTOR.

Member Function Documentation

makVrv::DtChannelSpecificGroup::META_Node ( vrvOsg  ,
DtChannelSpecificGroup   
)
virtual void makVrv::DtChannelSpecificGroup::addChannel ( DtChannel channel)
virtual

Add channels that should draw the things under this group node.

virtual void makVrv::DtChannelSpecificGroup::removeChannel ( DtChannel channel)
virtual

Remove a channel causing things under this group node to be culled from this channel.

virtual int makVrv::DtChannelSpecificGroup::numChannels ( ) const
virtual

Returns the number of channels that are accepted by the node.

virtual void makVrv::DtChannelSpecificGroup::traverse ( osg::NodeVisitor &  nv)
virtual

traverses the group, checking in the case of a culler, if the channel is allowed to render these objects

virtual void makVrv::DtChannelSpecificGroup::addView ( osg::View *  viewToAdd)
virtual

Although the interface implies that these groups cull by channel, what they REALLY do is cull based on the osg::View associated with the camera associated with a channel.

This method lets you add an osg::View directly to allow traversal that's not necessarily related to a channel render pass

virtual void makVrv::DtChannelSpecificGroup::removeView ( osg::View *  viewToRemove)
virtual

Remove a previously added view.

Member Data Documentation

ChannelSet makVrv::DtChannelSpecificGroup::myChannels
protected
ViewSet makVrv::DtChannelSpecificGroup::myFastViewLookup
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)