openscenegraph
VisibilityGroup
Go to the documentation of this file.
1/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
2 *
3 * This library is open source and may be redistributed and/or modified under
4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
5 * (at your option) any later version. The full license is in LICENSE file
6 * included with this distribution, and on the openscenegraph.org website.
7 *
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * OpenSceneGraph Public License for more details.
12*/
13
14#ifndef OSGSIM_VISIBILITYGROUP
15#define OSGSIM_VISIBILITYGROUP 1
16
17#include <osg/Node>
18#include <osg/Group>
19#include <osg/NodeVisitor>
20
21#include <osgSim/Export>
22
23namespace osgSim {
24
31{
32 public :
33
35
38
40
41 virtual void traverse(osg::NodeVisitor& nv);
42
44 void setVisibilityVolume(osg::Node* node) { _visibilityVolume = node; }
45
47 osg::Node* getVisibilityVolume() { return _visibilityVolume.get(); }
48
50 const osg::Node* getVisibilityVolume() const { return _visibilityVolume.get(); }
51
53 void setVolumeIntersectionMask(osg::Node::NodeMask mask) { _volumeIntersectionMask = mask; }
54
56 osg::Node::NodeMask getVolumeIntersectionMask() const { return _volumeIntersectionMask; }
57
61 void setSegmentLength(float length) { _segmentLength = length; }
62
64 float getSegmentLength() const { return _segmentLength; }
65
66 protected :
67
68 virtual ~VisibilityGroup() {}
69
73};
74
75}
76#endif
Definition VisibilityGroup:31
virtual ~VisibilityGroup()
Definition VisibilityGroup:68
float _segmentLength
Definition VisibilityGroup:72
VisibilityGroup(const VisibilityGroup &, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
void setVolumeIntersectionMask(osg::Node::NodeMask mask)
Definition VisibilityGroup:53
osg::Node * getVisibilityVolume()
Definition VisibilityGroup:47
void setVisibilityVolume(osg::Node *node)
Definition VisibilityGroup:44
osg::ref_ptr< osg::Node > _visibilityVolume
Definition VisibilityGroup:70
META_Node(osgSim, VisibilityGroup)
osg::Node::NodeMask getVolumeIntersectionMask() const
Definition VisibilityGroup:56
virtual void traverse(osg::NodeVisitor &nv)
void setSegmentLength(float length)
Definition VisibilityGroup:61
float getSegmentLength() const
Definition VisibilityGroup:64
const osg::Node * getVisibilityVolume() const
Definition VisibilityGroup:50
osg::Node::NodeMask _volumeIntersectionMask
Definition VisibilityGroup:71
Definition CopyOp:41
@ SHALLOW_COPY
Definition CopyOp:47
Definition Group:29
Definition NodeVisitor:82
Definition Node:72
unsigned int NodeMask
Definition Node:363
Definition ref_ptr:32
Definition BlinkSequence:27
#define OSGSIM_EXPORT
Definition osgSim/Export:38