vtlib library
Public Member Functions | Static Public Member Functions | List of all members
osg::GroupLOD Class Reference

Inherits Group.

Public Member Functions

 GroupLOD (const GroupLOD &, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
 
void setRadius (value_type radius)
 
value_type getRadius () const
 
void setCenter (const Vec3 &center)
 
const Vec3 & getCenter () const
 
void setDistance (float max)
 
float getDistance () const
 

Static Public Member Functions

static void setGroupDistance (float max)
 
static float getGroupDistance ()
 

Detailed Description

A simplified version of OSG's LOD node, which simply switches all its on or off based on a single distance. It also allows an extra distance to globally increase the viewable distance for all node of this type.

Constructor & Destructor Documentation

GroupLOD::GroupLOD ( const GroupLOD GroupLOD,
const CopyOp &  copyop = CopyOp::SHALLOW_COPY 
)

Copy constructor using CopyOp to manage deep vs shallow copy.

Member Function Documentation

const Vec3& osg::GroupLOD::getCenter ( ) const
inline

return the LOD center point.

float osg::GroupLOD::getDistance ( ) const
inline

returns the maximum visible distance

static float osg::GroupLOD::getGroupDistance ( )
inlinestatic

Gets the (global, extra) visible distance for nodes of this type.

value_type osg::GroupLOD::getRadius ( ) const
inline

Get the object-space radius of the volume enclosed by the LOD.

void osg::GroupLOD::setCenter ( const Vec3 &  center)
inline

Set the LOD center point.

void osg::GroupLOD::setDistance ( float  max)
inline

Sets the maximum visible distance for this node.

static void osg::GroupLOD::setGroupDistance ( float  max)
inlinestatic

Sets the (global, extra) visible distance for nodes of this type.

void osg::GroupLOD::setRadius ( value_type  radius)
inline

Set the object-space reference radius of the volume enclosed by the LOD. Used to determine the bounding sphere of the LOD in the absence of any children.