VR-Forces 4.0.4 Class Documentation
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]

List of all members.

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.

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

CTOR.

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

DTOR.


Member Function Documentation

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


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)