25 #ifndef WCREATECOLORARRAYSTHREAD_H
26 #define WCREATECOLORARRAYSTHREAD_H
30 #include "../common/WThreadedRunner.h"
50 boost::shared_ptr< std::vector< size_t > > lineLengths,
51 boost::shared_ptr< std::vector< float > > globalColors,
52 boost::shared_ptr< std::vector< float > > localColors,
53 boost::shared_ptr< std::vector< float > > tangents );
83 boost::shared_ptr< const std::vector< float > >
m_vertices;
107 #endif // WCREATECOLORARRAYSTHREAD_H
virtual void threadMain()
entry for the run command
virtual ~WCreateColorArraysThread()
destructor
Thread for computing directional color coding of fibers.
bool m_myThreadFinished
Has the thread finished?
boost::shared_ptr< std::vector< float > > m_globalColors
Storing the global color value of the fibers for each point.
boost::shared_ptr< const std::vector< size_t > > m_lineLengths
Line vector that contains the number of vertices for each line.
Base class for all classes needing to be executed in a separate thread.
boost::shared_ptr< const std::vector< float > > m_vertices
Point vector for all fibers.
boost::shared_ptr< std::vector< float > > m_tangents
Point vector for tangents at each vertex, used for fake tubes.
WCreateColorArraysThread(int left, int right, boost::shared_ptr< std::vector< float > >vertices, boost::shared_ptr< std::vector< size_t > > lineLengths, boost::shared_ptr< std::vector< float > > globalColors, boost::shared_ptr< std::vector< float > > localColors, boost::shared_ptr< std::vector< float > > tangents)
default constructor
boost::shared_ptr< std::vector< float > > m_localColors
Storing the local color value of the fibers for each point.
bool isFinished()
Return the value of the finished flag.
int m_right
right boundary