Jafar
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Attributes
jafar::viewer3d::PointsCloud Class Reference

This class allows to display a cloud of Point3D in a Viewer3D . More...


Detailed Description

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>

List of all members.

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::Point3Dm_points
osg::ref_ptr< osg::Geode > m_geode
osg::ref_ptr< osg::Geometry > m_geometry
osg::ref_ptr< osg::StateSet > m_set

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Wed Oct 15 2014 00:37:52 for Jafar by doxygen 1.7.6.1
LAAS-CNRS