osg::Point Class Reference

Inheritance diagram for osg::Point:

osg::StateAttribute osg::Object osg::Referenced

List of all members.

Public Member Functions

 Point ()
 Point (float size)
 Point (const Point &point, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
 META_StateAttribute (osg, Point, POINT)
virtual int compare (const StateAttribute &sa) const
virtual bool getModeUsage (StateAttribute::ModeUsage &usage) const
void setSize (float size)
float getSize () const
void setFadeThresholdSize (float fadeThresholdSize)
float getFadeThresholdSize () const
void setDistanceAttenuation (const Vec3 &distanceAttenuation)
const Vec3getDistanceAttenuation () const
void setMinSize (float minSize)
float getMinSize () const
void setMaxSize (float maxSize)
float getMaxSize () const
virtual void apply (State &state) const

Static Public Member Functions

static ExtensionsgetExtensions (unsigned int contextID, bool createIfNotInitalized)
static void setExtensions (unsigned int contextID, Extensions *extensions)

Protected Member Functions

virtual ~Point ()

Protected Attributes

float _size
float _fadeThresholdSize
Vec3 _distanceAttenuation
float _minSize
float _maxSize

Classes

class  Extensions


Detailed Description

Point - encapsulates the OpenGL point smoothing and size state.

Constructor & Destructor Documentation

osg::Point::Point (  ) 

osg::Point::Point ( float  size  ) 

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

osg::Point::META_StateAttribute ( osg  ,
Point  ,
POINT   
)

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.

References COMPARE_StateAttribute_Parameter, and COMPARE_StateAttribute_Types.

virtual bool osg::Point::getModeUsage ( StateAttribute::ModeUsage  )  const [inline, virtual]

Return the modes associated with this StateAttribute.

Reimplemented from osg::StateAttribute.

References osg::StateAttribute::ModeUsage::usesMode().

void osg::Point::setSize ( float  size  ) 

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

void osg::Point::setFadeThresholdSize ( float  fadeThresholdSize  ) 

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

void osg::Point::setDistanceAttenuation ( const Vec3 distanceAttenuation  ) 

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

void osg::Point::setMinSize ( float  minSize  ) 

float osg::Point::getMinSize (  )  const [inline]

void osg::Point::setMaxSize ( float  maxSize  ) 

float osg::Point::getMaxSize (  )  const [inline]

virtual void osg::Point::apply ( State  )  const [virtual]

apply the OpenGL state attributes. The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state.

Reimplemented from osg::StateAttribute.

static Extensions* osg::Point::getExtensions ( unsigned int  contextID,
bool  createIfNotInitalized 
) [static]

Returns the Extensions object for the given context. If createIfNotInitalized is true and the Extensions object doesn't exist, getExtensions() creates it on the given context. Returns NULL if createIfNotInitalized is false and the Extensions object doesn't exist.

static void osg::Point::setExtensions ( unsigned int  contextID,
Extensions extensions 
) [static]

setExtensions() allows users to override the extensions across graphics contexts. Typically used when you have different extensions supported across graphics pipes, but need to ensure that they all use the same low common denominator extensions.


Member Data Documentation

float osg::Point::_size [protected]

float osg::Point::_fadeThresholdSize [protected]

float osg::Point::_minSize [protected]

float osg::Point::_maxSize [protected]


The documentation for this class was generated from the following file:

Generated on Wed Jul 30 23:59:02 2008 for openscenegraph by  doxygen 1.5.6