64 virtual bool removeChildren(
unsigned int pos,
unsigned int numChildrenToRemove=1);
121 void setRange(
unsigned int childNo,
float min,
float max);
The core osg library provides the basic scene graph classes such as Nodes, State and Drawables,...
Definition AlphaFunc:19
BoundingSphered BoundingSphere
Definition BoundingSphere:308
Vec3d vec_type
Definition BoundingSphere:37
Vec3d::value_type value_type
Definition BoundingSphere:38
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 bool addChild(Node *child)
Add Node to Group.
void setCenterMode(CenterMode mode)
Set how the center of object should be determined when computing which child is active.
Definition LOD:79
RangeMode _rangeMode
Definition LOD:148
virtual bool addChild(Node *child)
Add Node to Group.
const vec_type & getCenter() const
return the LOD center point.
Definition LOD:92
RangeMode
Modes that control how the range values should be interpreted when computing which child is active.
Definition LOD:107
@ PIXEL_SIZE_ON_SCREEN
Definition LOD:109
@ DISTANCE_FROM_EYE_POINT
Definition LOD:108
RangeList _rangeList
Definition LOD:149
virtual bool removeChildren(unsigned int pos, unsigned int numChildrenToRemove=1)
Remove children from Group.
const RangeList & getRangeList() const
return the list of MinMax ranges for each child.
Definition LOD:137
value_type getRadius() const
Get the object-space radius of the volume enclosed by the LOD.
Definition LOD:103
LOD()
Default constructor The default constructor sets.
void setCenter(const vec_type ¢er)
Sets the object-space point which defines the center of the osg::LOD.
Definition LOD:89
virtual bool addChild(Node *child, float rmin, float rmax)
RangeMode getRangeMode() const
Get how the range values should be interpreted when computing which child is active.
Definition LOD:116
virtual ~LOD()
Definition LOD:142
std::pair< float, float > MinMaxPair
Definition LOD:66
void setRange(unsigned int childNo, float min, float max)
Sets the min and max visible ranges of range of specific child.
virtual BoundingSphere computeBound() const
Compute the bounding sphere around Node's geometry or children.
osg::BoundingSphere::vec_type vec_type
Definition LOD:51
float getMinRange(unsigned int childNo) const
returns the min visible range for specified child.
Definition LOD:124
CenterMode _centerMode
Definition LOD:144
float getMaxRange(unsigned int childNo) const
returns the max visible range for specified child.
Definition LOD:127
LOD(const LOD &, const CopyOp ©op=CopyOp::SHALLOW_COPY)
Copy constructor using CopyOp to manage deep vs shallow copy.
void setRangeMode(RangeMode mode)
Set how the range values should be interpreted when computing which child is active.
Definition LOD:113
unsigned int getNumRanges() const
returns the number of ranges currently set.
Definition LOD:131
void setRadius(value_type radius)
Set the object-space reference radius of the volume enclosed by the LOD.
Definition LOD:100
osg::BoundingSphere::value_type value_type
Definition LOD:52
void setRangeList(const RangeList &rangeList)
set the list of MinMax ranges for each child.
Definition LOD:134
CenterMode
Modes which control how the center of object should be determined when computing which child is activ...
Definition LOD:72
@ USER_DEFINED_CENTER
Uses the user defined center as the center of object; the bounding sphere is determined by the user d...
Definition LOD:74
@ UNION_OF_BOUNDING_SPHERE_AND_USER_DEFINED
Uses the user defined center as the center of object; the bounding sphere is the user defined boundin...
Definition LOD:75
@ USE_BOUNDING_SPHERE_CENTER
Uses the bounding sphere's center as the center of object and the geometrical bounding sphere of the ...
Definition LOD:73
CenterMode getCenterMode() const
Get how the center of object should be determined when computing which child is active.
Definition LOD:82
bool addChild(const ref_ptr< T > &child, float rmin, float rmax)
Definition LOD:62
virtual void traverse(NodeVisitor &nv)
Traverse downwards : calls children's accept method with NodeVisitor.
vec_type _userDefinedCenter
Definition LOD:145
std::vector< MinMaxPair > RangeList
Definition LOD:67
value_type _radius
Definition LOD:146
Base class for all internal nodes in the scene graph.
Definition Node:72
const BoundingSphere & getBound() const
Definition Node:425
Visitor for type safe operations on osg::Nodes.
Definition NodeVisitor:82
Smart pointer for handling referenced counted objects.
Definition ref_ptr:32
T * get() const
Definition ref_ptr:117
#define OSG_EXPORT
Definition Export:39