Jafar
|
This class allows to display a cloud of Segment3D in a Viewer3D . More...
This class allows to display a cloud of Segment3D in a Viewer3D .
Exemple of use in Ruby:
segments = []
for i in 0..99
segments << Geom.createSegment3D( rand() * 10, rand() * 10, rand() * 10, rand() * 10, rand() * 10, rand() * 10 )
end
segmentsCloud = Viewer3d::SegmentsCloud.new( segments, nil, 10.0 )
v = Viewer3d::Viewer3D.new
v.view.setSceneData( segmentsCloud.node )
Definition at line 35 of file SegmentsCloud.hpp.
#include <SegmentsCloud.hpp>
Public Member Functions | |
SegmentsCloud (const std::list< jafar::geom::Segment3D > &segments, const Decorator *decorator=0, double _lineWidth=1.0) | |
osg::Geode * | node () |
const std::list < jafar::geom::Segment3D > & | segments () const |
void | setSegments (const std::list< jafar::geom::Segment3D > &_segments, const Decorator *decorator=0) |
Private Attributes | |
std::list< jafar::geom::Segment3D > | m_segments |
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 |