Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

osg::Point Class Reference

Point - encapsulates the OpenGL point smoothing and size state. More...

Inheritance diagram for osg::Point:

Inheritance graph
[legend]
List of all members.

Public Methods

 Point ()
 Point (const Point &point, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
 Copy constructor using CopyOp to manage deep vs shallow copy.

 META_StateAttribute (osg, Point, POINT)
virtual int compare (const StateAttribute &sa) const
 return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.

virtual void getAssociatedModes (std::vector< GLMode > &modes) const
 return the modes associated with this StateSet

void setSize (const float size)
const float getSize () const
void setFadeThresholdSize (const float fadeThresholdSize)
const float getFadeThresholdSize () const
void setDistanceAttenuation (const Vec3 &distanceAttenuation)
const Vec3getDistanceAttenuation () const
virtual void apply (State &state) const
 apply the OpenGL state attributes.


Static Public Methods

void init_GL_EXT ()

Protected Methods

virtual ~Point ()

Protected Attributes

float _size
float _fadeThresholdSize
Vec3 _distanceAttenuation

Detailed Description

Point - encapsulates the OpenGL point smoothing and size state.


Constructor & Destructor Documentation

osg::Point::Point  
 

osg::Point::Point const Point &    point,
const CopyOp   copyop = CopyOp::SHALLOW_COPY
[inline]
 

Copy constructor using CopyOp to manage deep vs shallow copy.

virtual osg::Point::~Point   [protected, virtual]
 


Member Function Documentation

virtual void osg::Point::apply State   state const [virtual]
 

apply the OpenGL state attributes.

The global state for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state.

Implements osg::StateAttribute.

virtual int osg::Point::compare const StateAttribute   sa const [inline, virtual]
 

return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs.

Implements osg::StateAttribute.

virtual void osg::Point::getAssociatedModes std::vector< GLMode > &    modes const [inline, virtual]
 

return the modes associated with this StateSet

Reimplemented from osg::StateAttribute.

const Vec3& osg::Point::getDistanceAttenuation   const [inline]
 

const float osg::Point::getFadeThresholdSize   const [inline]
 

const float osg::Point::getSize   const [inline]
 

void osg::Point::init_GL_EXT   [static]
 

osg::Point::META_StateAttribute osg   ,
Point   ,
POINT   
 

void osg::Point::setDistanceAttenuation const Vec3   distanceAttenuation
 

void osg::Point::setFadeThresholdSize const float    fadeThresholdSize
 

void osg::Point::setSize const float    size
 


Member Data Documentation

Vec3 osg::Point::_distanceAttenuation [protected]
 

float osg::Point::_fadeThresholdSize [protected]
 

float osg::Point::_size [protected]
 


The documentation for this class was generated from the following file:
Generated at Wed Sep 18 13:55:37 2002 for the Open Scene Graph by doxygen 1.2.16.