![]() |
OpenWalnut
1.5.0dev
|
Create a torus. More...
#include <WDataCreatorTorus.h>
Inheritance diagram for WDataCreatorTorus< T >:
Collaboration diagram for WDataCreatorTorus< T >:Public Types | |
| typedef std::shared_ptr< WDataCreatorTorus< T > > | SPtr |
| Abbreviate shared_ptr. More... | |
| typedef std::shared_ptr< const WDataCreatorTorus< T > > | ConstSPtr |
| Abbreviate const shared_ptr. More... | |
Public Types inherited from WObjectNDIP< T > | |
| 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 | |
| WDataCreatorTorus () | |
| Default constructor. More... | |
| virtual | ~WDataCreatorTorus () |
| 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 fiber dataset. More... | |
| virtual void | operator() (int seed, WProgress::SPtr progress, const WColor &color, size_t numPoints, const WPosition &origin, const WPosition &size, WDataSetPoints::VertexArray vertices, WDataSetPoints::ColorArray colors) |
| Create the point dataset. More... | |
Public Member Functions inherited from WObjectNDIP< T > | |
| 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... | |
Private Member Functions | |
| WMatrix4d | calculateTransform (const WPosition &origin, const WPosition &size) |
| Calculates the transformation matrix. More... | |
| WVector4d | calculateTorusVertex (double torusRadius, double ringRadius, double torusAngle, double ringAngle) |
| Calculates a vertex on a torus. More... | |
Private Attributes | |
| WPropDouble | m_innerRadius |
| The inner radius of the torus. More... | |
| WPropBool | m_generateInner |
| Property whether inner fibers should be created. More... | |
| WPropDouble | m_rotateX |
| The rotation angle for the x axis. More... | |
| WPropDouble | m_rotateY |
| The rotation angle for the x axis. More... | |
| WPropDouble | m_rotateZ |
| The rotation angle for the x axis. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from WObjectNDIP< T > | |
| WObjectNDIP (std::string name, std::string description, const char **icon=NULL) | |
| Construct a NDIP'ed object. More... | |
Protected Attributes inherited from WObjectNDIP< T > | |
| WProperties::SPtr | m_properties |
| the properties of the object. More... | |
Create a torus.
Definition at line 41 of file WDataCreatorTorus.h.
| typedef std::shared_ptr< const WDataCreatorTorus< T > > WDataCreatorTorus< T >::ConstSPtr |
Abbreviate const shared_ptr.
Definition at line 52 of file WDataCreatorTorus.h.
| typedef std::shared_ptr< WDataCreatorTorus< T > > WDataCreatorTorus< T >::SPtr |
Abbreviate shared_ptr.
Definition at line 47 of file WDataCreatorTorus.h.
| WDataCreatorTorus< T >::WDataCreatorTorus |
Default constructor.
Definition at line 167 of file WDataCreatorTorus.h.
References WDataCreatorTorus< T >::m_generateInner, WDataCreatorTorus< T >::m_innerRadius, WDataCreatorTorus< T >::m_rotateX, WDataCreatorTorus< T >::m_rotateY, and WDataCreatorTorus< T >::m_rotateZ.
|
virtual |
Destructor.
Definition at line 191 of file WDataCreatorTorus.h.
|
private |
Calculates a vertex on a torus.
| torusRadius | The radius of the torus ( to the midpoint of the ring) |
| ringRadius | The radius of the ring |
| torusAngle | The radius around the torus |
| ringAngle | The radius around the ring |
Definition at line 207 of file WDataCreatorTorus.h.
|
private |
Calculates the transformation matrix.
| origin | origin of the bbox |
| size | size of the bounding box |
Definition at line 197 of file WDataCreatorTorus.h.
|
virtual |
Create the fiber 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. |
Definition at line 219 of file WDataCreatorTorus.h.
References wlimits::MAX_FLOAT, WMatrixFixed< ValueT, Rows, Cols, ValueStoreT >::x(), WMatrixFixed< ValueT, Rows, Cols, ValueStoreT >::y(), and WMatrixFixed< ValueT, Rows, Cols, ValueStoreT >::z().
Here is the call graph for this function:
|
virtual |
Create the point 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 points |
| numPoints | number of points |
| origin | origin of the bbox |
| size | size of the bounding box |
| vertices | the vertex array. Fill this. |
| colors | the color array. Fill this. |
Definition at line 288 of file WDataCreatorTorus.h.
References wlimits::MAX_FLOAT, WMatrixFixed< ValueT, Rows, Cols, ValueStoreT >::x(), WMatrixFixed< ValueT, Rows, Cols, ValueStoreT >::y(), and WMatrixFixed< ValueT, Rows, Cols, ValueStoreT >::z().
Here is the call graph for this function:
|
private |
Property whether inner fibers should be created.
Definition at line 143 of file WDataCreatorTorus.h.
Referenced by WDataCreatorTorus< T >::WDataCreatorTorus().
|
private |
The inner radius of the torus.
Definition at line 138 of file WDataCreatorTorus.h.
Referenced by WDataCreatorTorus< T >::WDataCreatorTorus().
|
private |
The rotation angle for the x axis.
Definition at line 148 of file WDataCreatorTorus.h.
Referenced by WDataCreatorTorus< T >::WDataCreatorTorus().
|
private |
The rotation angle for the x axis.
Definition at line 153 of file WDataCreatorTorus.h.
Referenced by WDataCreatorTorus< T >::WDataCreatorTorus().
|
private |
The rotation angle for the x axis.
Definition at line 158 of file WDataCreatorTorus.h.
Referenced by WDataCreatorTorus< T >::WDataCreatorTorus().