OpenSceneGraph 3.6.5
OccluderNode
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 OSG_OCCLUDERNODE
15#define OSG_OCCLUDERNODE 1
16
17#include <osg/Group>
19
20namespace osg {
21
27{
28 public :
29
31
34
36
37
39 void setOccluder(ConvexPlanarOccluder* occluder) { _occluder = occluder; }
40
43
45 const ConvexPlanarOccluder* getOccluder() const { return _occluder.get(); }
46
49
50 protected :
51
52 virtual ~OccluderNode() {}
53
55};
56
57}
58
59#endif
The core osg library provides the basic scene graph classes such as Nodes, State and Drawables,...
Definition AlphaFunc:19
BoundingSphered BoundingSphere
Definition BoundingSphere:308
A class for representing convex clipping volumes made up of several ConvexPlanarPolygon.
Definition ConvexPlanarOccluder:26
Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...
Definition CopyOp:41
@ SHALLOW_COPY
Definition CopyOp:47
virtual BoundingSphere computeBound() const
Overrides Group's computeBound.
ref_ptr< ConvexPlanarOccluder > _occluder
Definition OccluderNode:54
ConvexPlanarOccluder * getOccluder()
Get the ConvexPlanarOccluder* attached to a OccluderNode.
Definition OccluderNode:42
OccluderNode(const OccluderNode &, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
Copy constructor using CopyOp to manage deep vs shallow copy.
const ConvexPlanarOccluder * getOccluder() const
Get the const ConvexPlanarOccluder* attached to a OccluderNode.
Definition OccluderNode:45
META_Node(osg, OccluderNode)
void setOccluder(ConvexPlanarOccluder *occluder)
Attach a ConvexPlanarOccluder to an OccluderNode.
Definition OccluderNode:39
virtual ~OccluderNode()
Definition OccluderNode:52
Smart pointer for handling referenced counted objects.
Definition ref_ptr:32
#define OSG_EXPORT
Definition Export:39

osg logo
Generated at Sun Jul 27 2025 00:00:00 for the OpenSceneGraph by doxygen 1.14.0.