VisibilityGroup
Go to the documentation of this file.
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
* included with this distribution, and on the openscenegraph.org website.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* OpenSceneGraph Public License for more details.
*/
#ifndef OSGSIM_VISIBILITYGROUP
#define OSGSIM_VISIBILITYGROUP 1
#include <osg/Node>
#include <osg/Group>
#include <osg/NodeVisitor>
#include <osgSim/Export>
namespace osgSim {
class OSGSIM_EXPORT VisibilityGroup : public osg::Group
{
public :
VisibilityGroup();
VisibilityGroup(const VisibilityGroup&,const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY);
META_Node(osgSim, VisibilityGroup);
virtual void traverse(osg::NodeVisitor& nv);
void setVisibilityVolume(osg::Node* node) { _visibilityVolume = node; }
osg::Node* getVisibilityVolume() { return _visibilityVolume.get(); }
const osg::Node* getVisibilityVolume() const { return _visibilityVolume.get(); }
void setVolumeIntersectionMask(osg::Node::NodeMask mask) { _volumeIntersectionMask = mask; }
osg::Node::NodeMask getVolumeIntersectionMask() const { return _volumeIntersectionMask; }
void setSegmentLength(float length) { _segmentLength = length; }
float getSegmentLength() const { return _segmentLength; }
protected :
virtual ~VisibilityGroup() {}
osg::ref_ptr<osg::Node> _visibilityVolume;
osg::Node::NodeMask _volumeIntersectionMask;
float _segmentLength;
};
}
#endif
Group
NodeVisitor
Node
osgSim::VisibilityGroup::~VisibilityGroup
virtual ~VisibilityGroup()
Definition VisibilityGroup:68
osgSim::VisibilityGroup::_segmentLength
float _segmentLength
Definition VisibilityGroup:72
osgSim::VisibilityGroup::VisibilityGroup
VisibilityGroup(const VisibilityGroup &, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
osgSim::VisibilityGroup::setVolumeIntersectionMask
void setVolumeIntersectionMask(osg::Node::NodeMask mask)
Definition VisibilityGroup:53
osgSim::VisibilityGroup::getVisibilityVolume
osg::Node * getVisibilityVolume()
Definition VisibilityGroup:47
osgSim::VisibilityGroup::setVisibilityVolume
void setVisibilityVolume(osg::Node *node)
Definition VisibilityGroup:44
osgSim::VisibilityGroup::_visibilityVolume
osg::ref_ptr< osg::Node > _visibilityVolume
Definition VisibilityGroup:70
osgSim::VisibilityGroup::META_Node
META_Node(osgSim, VisibilityGroup)
osgSim::VisibilityGroup::VisibilityGroup
VisibilityGroup()
osgSim::VisibilityGroup::getVolumeIntersectionMask
osg::Node::NodeMask getVolumeIntersectionMask() const
Definition VisibilityGroup:56
osgSim::VisibilityGroup::traverse
virtual void traverse(osg::NodeVisitor &nv)
osgSim::VisibilityGroup::setSegmentLength
void setSegmentLength(float length)
Definition VisibilityGroup:61
osgSim::VisibilityGroup::getSegmentLength
float getSegmentLength() const
Definition VisibilityGroup:64
osgSim::VisibilityGroup::getVisibilityVolume
const osg::Node * getVisibilityVolume() const
Definition VisibilityGroup:50
osgSim::VisibilityGroup::_volumeIntersectionMask
osg::Node::NodeMask _volumeIntersectionMask
Definition VisibilityGroup:71
osg::CopyOp
Definition CopyOp:41
osg::CopyOp::SHALLOW_COPY
@ SHALLOW_COPY
Definition CopyOp:47
osg::Group
Definition Group:29
osg::NodeVisitor
Definition NodeVisitor:82
osg::Node
Definition Node:72
osg::Node::NodeMask
unsigned int NodeMask
Definition Node:363
osg::ref_ptr
Definition ref_ptr:32
osgSim
Definition BlinkSequence:27
Export
OSGSIM_EXPORT
#define OSGSIM_EXPORT
Definition osgSim/Export:38