OpenWalnut
1.5.0dev
|
Create parallel fibers. More...
#include <WDataCreatorFiberParallel.h>
Public Types | |
typedef std::shared_ptr< WDataCreatorFiberParallel > | SPtr |
Abbreviate shared_ptr. More... | |
typedef std::shared_ptr< const WDataCreatorFiberParallel > | ConstSPtr |
Abbreviate const shared_ptr. More... | |
Public Types inherited from WObjectNDIP< WDataSetFibersCreatorInterface > | |
typedef std::shared_ptr< WObjectNDIP > | SPtr |
Shared ptr to an instance. More... | |
typedef std::shared_ptr< const WObjectNDIP > | ConstSPtr |
Shared ptr to a const instance. More... | |
Public Member Functions | |
WDataCreatorFiberParallel () | |
Default constructor. More... | |
virtual | ~WDataCreatorFiberParallel () |
Destructor. More... | |
virtual void | operator() (int seed, WProgress::SPtr progress, const WColor &color, size_t numFibers, size_t numVertsPerFiber, const WPosition &origin, const WPosition &size, WDataSetFibers::VertexArray vertices, WDataSetFibers::IndexArray fibIdx, WDataSetFibers::LengthArray lengths, WDataSetFibers::IndexArray fibIdxVertexMap, WDataSetFibers::ColorArray colors) |
Create the dataset. More... | |
Public Member Functions inherited from WObjectNDIP< WDataSetFibersCreatorInterface > | |
virtual | ~WObjectNDIP () |
Destructor. More... | |
virtual std::string | getName () const |
The name of the object. More... | |
virtual std::string | getDescription () const |
The description of this object. More... | |
virtual const char ** | getIcon () const |
The icon of this object. More... | |
virtual WProperties::SPtr | getProperties () |
Return the property group of this object. More... | |
Public Member Functions inherited from WDataSetFibersCreatorInterface | |
virtual | ~WDataSetFibersCreatorInterface () |
Destructor. More... | |
Private Attributes | |
WPropPosition | m_direction |
The direction of the parallel lines. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from WObjectNDIP< WDataSetFibersCreatorInterface > | |
WObjectNDIP (std::string name, std::string description, const char **icon=NULL) | |
Construct a NDIP'ed object. More... | |
Protected Attributes inherited from WObjectNDIP< WDataSetFibersCreatorInterface > | |
WProperties::SPtr | m_properties |
the properties of the object. More... | |
Create parallel fibers.
Definition at line 34 of file WDataCreatorFiberParallel.h.
typedef std::shared_ptr< const WDataCreatorFiberParallel > WDataCreatorFiberParallel::ConstSPtr |
Abbreviate const shared_ptr.
Definition at line 45 of file WDataCreatorFiberParallel.h.
typedef std::shared_ptr< WDataCreatorFiberParallel > WDataCreatorFiberParallel::SPtr |
Abbreviate shared_ptr.
Definition at line 40 of file WDataCreatorFiberParallel.h.
WDataCreatorFiberParallel::WDataCreatorFiberParallel | ( | ) |
Default constructor.
Definition at line 29 of file WDataCreatorFiberParallel.cpp.
References m_direction, and WObjectNDIP< WDataSetFibersCreatorInterface >::m_properties.
|
virtual |
Destructor.
Definition at line 35 of file WDataCreatorFiberParallel.cpp.
|
virtual |
Create the dataset.
This needs to be implemented by all the creators you write.
seed | the seed for the random values. |
progress | progress indicator |
color | color of all fibers |
numFibers | number of fibers |
numVertsPerFiber | number of vertices per fiber |
origin | origin of the bbox |
size | size of the bounding box |
vertices | the vertex array. Fill this. |
fibIdx | the fiber index array. Fill this. |
lengths | the lengths array. Fill this. |
fibIdxVertexMap | inverse map. Fill this. |
colors | the color array. Fill this. |
Implements WDataSetFibersCreatorInterface.
Definition at line 40 of file WDataCreatorFiberParallel.cpp.
References m_direction, WMatrixFixed< ValueT, Rows, Cols, ValueStoreT >::x(), WMatrixFixed< ValueT, Rows, Cols, ValueStoreT >::y(), and WMatrixFixed< ValueT, Rows, Cols, ValueStoreT >::z().
|
private |
The direction of the parallel lines.
Definition at line 90 of file WDataCreatorFiberParallel.h.
Referenced by operator()(), and WDataCreatorFiberParallel().