|
OpenWalnut
1.4.0
|
Thread for computing directional color coding of fibers. More...
#include <WCreateColorArraysThread.h>
Inheritance diagram for WCreateColorArraysThread:Public Member Functions | |
| 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 | |
| virtual | ~WCreateColorArraysThread () |
| destructor | |
| virtual void | threadMain () |
| entry for the run command | |
| bool | isFinished () |
| Return the value of the finished flag. | |
Private Attributes | |
| bool | m_myThreadFinished |
| Has the thread finished? | |
| int | m_left |
| left boundary | |
| int | m_right |
| right boundary | |
| 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. | |
| boost::shared_ptr< std::vector < float > > | m_globalColors |
| Storing the global color value of the fibers for each point. | |
| boost::shared_ptr< std::vector < float > > | m_localColors |
| Storing the local 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. | |
Thread for computing directional color coding of fibers.
Definition at line 35 of file WCreateColorArraysThread.h.
| WCreateColorArraysThread::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
| left | start position of the first line to comput colors for |
| right | last line for which the color is computed |
| vertices | vertices of all lines |
| lineLengths | line length in vertex array |
| globalColors | where to write global coloring |
| localColors | where to write local coloring |
| tangents |
Definition at line 31 of file WCreateColorArraysThread.cpp.
| WCreateColorArraysThread::~WCreateColorArraysThread | ( | ) | [virtual] |
destructor
Definition at line 48 of file WCreateColorArraysThread.cpp.
| bool WCreateColorArraysThread::isFinished | ( | ) | [inline] |
Return the value of the finished flag.
Definition at line 138 of file WCreateColorArraysThread.cpp.
References m_myThreadFinished.
| void WCreateColorArraysThread::threadMain | ( | ) | [virtual] |
entry for the run command
Reimplemented from WThreadedRunner.
Definition at line 52 of file WCreateColorArraysThread.cpp.
References m_globalColors, m_left, m_lineLengths, m_localColors, m_myThreadFinished, m_right, m_tangents, and m_vertices.
boost::shared_ptr< std::vector< float > > WCreateColorArraysThread::m_globalColors [private] |
Storing the global color value of the fibers for each point.
Definition at line 93 of file WCreateColorArraysThread.h.
Referenced by threadMain().
int WCreateColorArraysThread::m_left [private] |
boost::shared_ptr< const std::vector< size_t > > WCreateColorArraysThread::m_lineLengths [private] |
Line vector that contains the number of vertices for each line.
Definition at line 104 of file WCreateColorArraysThread.h.
Referenced by threadMain().
boost::shared_ptr< std::vector< float > > WCreateColorArraysThread::m_localColors [private] |
Storing the local color value of the fibers for each point.
Definition at line 99 of file WCreateColorArraysThread.h.
Referenced by threadMain().
bool WCreateColorArraysThread::m_myThreadFinished [private] |
Has the thread finished?
Definition at line 74 of file WCreateColorArraysThread.h.
Referenced by isFinished(), and threadMain().
int WCreateColorArraysThread::m_right [private] |
right boundary
Definition at line 78 of file WCreateColorArraysThread.h.
Referenced by threadMain().
boost::shared_ptr< std::vector< float > > WCreateColorArraysThread::m_tangents [private] |
Point vector for tangents at each vertex, used for fake tubes.
Definition at line 88 of file WCreateColorArraysThread.h.
Referenced by threadMain().
boost::shared_ptr< const std::vector< float > > WCreateColorArraysThread::m_vertices [private] |
Point vector for all fibers.
Definition at line 83 of file WCreateColorArraysThread.h.
Referenced by threadMain().
1.7.6.1