OpenWalnut
1.5.0dev
|
Creates a 3D turing pattern. More...
#include <WDataCreatorTuring.h>
Public Member Functions | |
WDataCreatorTuring () | |
Default constructor. More... | |
virtual | ~WDataCreatorTuring () |
Destructor. More... | |
virtual WValueSetBase::SPtr | operator() (WProgress::SPtr progress, WGridRegular3D::ConstSPtr grid, unsigned char order=0, unsigned char dimension=1, dataType type=W_DT_FLOAT) |
Create the dataset. More... | |
Public Member Functions inherited from WObjectNDIP< WDataSetSingleCreatorInterface > | |
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 WDataSetSingleCreatorInterface | |
virtual | ~WDataSetSingleCreatorInterface () |
Destructor. More... | |
Private Attributes | |
WPropDouble | m_spotSize |
Property for the size of the spots. More... | |
WPropDouble | m_spotIrregularity |
Property for the irregularity of the spots. More... | |
WPropInt | m_iterations |
Property for the number of iterations during simulation. More... | |
Additional Inherited Members | |
Public Types inherited from WObjectNDIP< WDataSetSingleCreatorInterface > | |
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... | |
Protected Member Functions inherited from WObjectNDIP< WDataSetSingleCreatorInterface > | |
WObjectNDIP (std::string name, std::string description, const char **icon=NULL) | |
Construct a NDIP'ed object. More... | |
Protected Attributes inherited from WObjectNDIP< WDataSetSingleCreatorInterface > | |
WProperties::SPtr | m_properties |
the properties of the object. More... | |
Creates a 3D turing pattern.
Only works on scalar fields.
Definition at line 35 of file WDataCreatorTuring.h.
WDataCreatorTuring::WDataCreatorTuring | ( | ) |
Default constructor.
Definition at line 33 of file WDataCreatorTuring.cpp.
References m_iterations, WObjectNDIP< WDataSetSingleCreatorInterface >::m_properties, m_spotIrregularity, and m_spotSize.
|
virtual |
Destructor.
Definition at line 49 of file WDataCreatorTuring.cpp.
|
virtual |
Create the dataset.
This needs to be implemented by all the creators you write. This method is designed to be applicable to all kinds of WDataSetSingle that use WValueSetBase. Your implementation does not need to support all types. If you do not support any order/dimension combination, throw an exception (like by using WAssert).
order | the tensor order of the values stored in this WValueSet |
dimension | the tensor dimension of the values stored in this WValueSet |
progress | the progress instance you should increment each time you fill the value for one voxel. |
grid | the grid on which the value set has to be build |
type | the value type in the value set |
Implements WDataSetSingleCreatorInterface.
Definition at line 53 of file WDataCreatorTuring.cpp.
|
private |
Property for the number of iterations during simulation.
Definition at line 74 of file WDataCreatorTuring.h.
Referenced by WDataCreatorTuring().
|
private |
Property for the irregularity of the spots.
Definition at line 71 of file WDataCreatorTuring.h.
Referenced by WDataCreatorTuring().
|
private |
Property for the size of the spots.
Definition at line 68 of file WDataCreatorTuring.h.
Referenced by WDataCreatorTuring().