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