25 #ifndef WFIBERDRAWABLE_H
26 #define WFIBERDRAWABLE_H
30 #include <boost/shared_ptr.hpp>
31 #include <boost/thread.hpp>
32 #include <boost/thread/thread.hpp>
34 #include <osg/Drawable>
35 #include <osg/ShapeDrawable>
38 #include "WExportWGE.h"
70 virtual osg::Object* cloneType()
const;
78 virtual osg::Object* clone(
const osg::CopyOp& copyop )
const;
95 virtual void drawImplementation( osg::RenderInfo& renderInfo )
const;
102 void setUseTubes(
bool flag );
104 using osg::Drawable::setBound;
110 void setBitfield( boost::shared_ptr< std::vector< bool > > bitField );
116 void setStartIndexes( boost::shared_ptr< std::vector< size_t > > idx );
122 void setPointsPerLine( boost::shared_ptr< std::vector< size_t > > ppl );
128 void setVerts( boost::shared_ptr< std::vector< float > > verts );
134 void setTangents( boost::shared_ptr< std::vector< float > > tangents );
140 void setColor( boost::shared_ptr< std::vector< float > > color );
149 void drawFibers( osg::RenderInfo& renderInfo )
const;
154 void drawTubes()
const;
164 boost::shared_ptr< std::vector< float > >
m_verts;
166 boost::shared_ptr< std::vector< float > >
m_colors;
204 #endif // WFIBERDRAWABLE_H