#include <PointCloud.h>
Inherited by uvsim::Ellipsoid.
Public Member Functions | |
PointCloud () | |
PointCloud (int pointSize, osg::Vec3Array *points, osg::Vec4Array *colors) | |
virtual | ~PointCloud () |
void | updateSize () |
Public Attributes | |
osg::ref_ptr < osg::PositionAttitudeTransform > | root |
Protected Member Functions | |
osg::StateSet * | makeStateSet (float size) |
Protected Attributes | |
osg::ref_ptr< osg::Geode > | geode |
osg::ref_ptr< osg::Geometry > | geom |
osg::ref_ptr< osg::DrawArrays > | drawArrays |
osg::Vec3Array * | points |
osg::Vec4Array * | colors |
Definition at line 43 of file PointCloud.h.
uvsim::PointCloud::PointCloud | ( | ) |
uvsim::PointCloud::PointCloud | ( | int | pointSize, | |
osg::Vec3Array * | points, | |||
osg::Vec4Array * | colors | |||
) |
uvsim::PointCloud::~PointCloud | ( | ) | [virtual] |
Definition at line 55 of file PointCloud.cc.
osg::StateSet * uvsim::PointCloud::makeStateSet | ( | float | size | ) | [protected] |
Setup cool blending
Setup the point sprites
Give some size to the points to be able to see the sprite
Disable depth test to avoid sort problems and Lighting
The texture for the sprites
Definition at line 65 of file PointCloud.cc.
void uvsim::PointCloud::updateSize | ( | ) |
osg::Vec4Array* uvsim::PointCloud::colors [protected] |
Reimplemented in uvsim::Ellipsoid.
Definition at line 56 of file PointCloud.h.
osg::ref_ptr<osg::DrawArrays> uvsim::PointCloud::drawArrays [protected] |
Definition at line 54 of file PointCloud.h.
osg::ref_ptr<osg::Geode> uvsim::PointCloud::geode [protected] |
Definition at line 52 of file PointCloud.h.
osg::ref_ptr<osg::Geometry> uvsim::PointCloud::geom [protected] |
Definition at line 53 of file PointCloud.h.
osg::Vec3Array* uvsim::PointCloud::points [protected] |
Reimplemented in uvsim::Ellipsoid.
Definition at line 55 of file PointCloud.h.
osg::ref_ptr<osg::PositionAttitudeTransform> uvsim::PointCloud::root |
Definition at line 50 of file PointCloud.h.