OpenSceneGraph
3.4.0
|
Point - encapsulates the OpenGL point smoothing and size state. More...
Public Member Functions | |
Point () | |
Point (float size) | |
Point (const Point &point, const CopyOp ©op=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 bool | getModeUsage (StateAttribute::ModeUsage &usage) const |
Return the modes associated with this StateAttribute. | |
void | setSize (float size) |
float | getSize () const |
void | setFadeThresholdSize (float fadeThresholdSize) |
float | getFadeThresholdSize () const |
void | setDistanceAttenuation (const Vec3 &distanceAttenuation) |
const Vec3 & | getDistanceAttenuation () const |
void | setMinSize (float minSize) |
float | getMinSize () const |
void | setMaxSize (float maxSize) |
float | getMaxSize () const |
virtual void | apply (State &state) const |
apply the OpenGL state attributes. | |
Protected Member Functions | |
virtual | ~Point () |
Protected Attributes | |
float | _size |
float | _fadeThresholdSize |
Vec3 | _distanceAttenuation |
float | _minSize |
float | _maxSize |
Point - encapsulates the OpenGL point smoothing and size state.
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] |
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.
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.
const Vec3& osg::Point::getDistanceAttenuation | ( | ) | const [inline] |
float osg::Point::getFadeThresholdSize | ( | ) | const [inline] |
float osg::Point::getMaxSize | ( | ) | const [inline] |
float osg::Point::getMinSize | ( | ) | const [inline] |
virtual bool osg::Point::getModeUsage | ( | StateAttribute::ModeUsage & | ) | const [inline, virtual] |
Return the modes associated with this StateAttribute.
Reimplemented from osg::StateAttribute.
References GL_POINT_SMOOTH, and osg::StateAttribute::ModeUsage::usesMode().
float osg::Point::getSize | ( | ) | const [inline] |
osg::Point::META_StateAttribute | ( | osg | , |
Point | , | ||
POINT | |||
) |
void osg::Point::setDistanceAttenuation | ( | const Vec3 & | distanceAttenuation | ) |
void osg::Point::setFadeThresholdSize | ( | float | fadeThresholdSize | ) |
void osg::Point::setMaxSize | ( | float | maxSize | ) |
void osg::Point::setMinSize | ( | float | minSize | ) |
void osg::Point::setSize | ( | float | size | ) |
Vec3 osg::Point::_distanceAttenuation [protected] |
float osg::Point::_fadeThresholdSize [protected] |
float osg::Point::_maxSize [protected] |
float osg::Point::_minSize [protected] |
float osg::Point::_size [protected] |
![]() | Generated at Tue Dec 8 2015 00:14:25 for the OpenSceneGraph by doxygen 1.7.6.1. |