OccluderNode
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 OSG_OCCLUDERNODE
#define OSG_OCCLUDERNODE 1
#include <osg/Group>
#include <osg/ConvexPlanarOccluder>
namespace osg {
class OSG_EXPORT OccluderNode : public Group
{
public :
OccluderNode();
OccluderNode(const OccluderNode&,const CopyOp& copyop=CopyOp::SHALLOW_COPY);
META_Node(osg, OccluderNode);
void setOccluder(ConvexPlanarOccluder* occluder) { _occluder = occluder; }
ConvexPlanarOccluder* getOccluder() { return _occluder.get(); }
const ConvexPlanarOccluder* getOccluder() const { return _occluder.get(); }
virtual BoundingSphere computeBound() const;
protected :
virtual ~OccluderNode() {}
ref_ptr<ConvexPlanarOccluder> _occluder;
};
}
#endif
ConvexPlanarOccluder
Group
osg::ConvexPlanarOccluder
Definition ConvexPlanarOccluder:26
osg::CopyOp
Definition CopyOp:41
osg::CopyOp::SHALLOW_COPY
@ SHALLOW_COPY
Definition CopyOp:47
osg::Group::Group
Group()
osg::OccluderNode::OccluderNode
OccluderNode()
osg::OccluderNode::computeBound
virtual BoundingSphere computeBound() const
osg::OccluderNode::_occluder
ref_ptr< ConvexPlanarOccluder > _occluder
Definition OccluderNode:54
osg::OccluderNode::getOccluder
ConvexPlanarOccluder * getOccluder()
Definition OccluderNode:42
osg::OccluderNode::OccluderNode
OccluderNode(const OccluderNode &, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
osg::OccluderNode::getOccluder
const ConvexPlanarOccluder * getOccluder() const
Definition OccluderNode:45
osg::OccluderNode::META_Node
META_Node(osg, OccluderNode)
osg::OccluderNode::setOccluder
void setOccluder(ConvexPlanarOccluder *occluder)
Definition OccluderNode:39
osg::OccluderNode::~OccluderNode
virtual ~OccluderNode()
Definition OccluderNode:52
osg::ref_ptr
Definition ref_ptr:32
osg
Definition AlphaFunc:19
osg::BoundingSphere
BoundingSphered BoundingSphere
Definition BoundingSphere:314
OSG_EXPORT
#define OSG_EXPORT
Definition osg/Export:39