Jafar
|
This class allows to display a cloud of Point3D in a Viewer3D . More...
This class allows to display a cloud of Point3D in a Viewer3D .
Exemple of use in Ruby:
points = []
for i in 0..99
points << Geom.createPoint3D( rand() * 10, rand() * 10, rand() * 10 )
end
pointsCloud = Viewer3d::PointsCloud.new( points, nil, 10.0 )
v = Viewer3d::Viewer3D.new
v.view.setSceneData( pointsCloud.node )
Definition at line 35 of file PointsCloud.hpp.
#include <PointsCloud.hpp>
Public Member Functions | |
PointsCloud (const std::list< jafar::geom::Point3D > &points, const Decorator *decorator=0, double _size=0.1) | |
osg::Geode * | node () |
const std::list < jafar::geom::Point3D > & | points () const |
void | setPoints (const std::list< jafar::geom::Point3D > &_points, const Decorator *decorator=0) |
Private Attributes | |
std::list< jafar::geom::Point3D > | m_points |
osg::ref_ptr< osg::Geode > | m_geode |
osg::ref_ptr< osg::Geometry > | m_geometry |
osg::ref_ptr< osg::StateSet > | m_set |
Generated on Wed Oct 15 2014 00:37:52 for Jafar by doxygen 1.7.6.1 |