28 #include <core/common/WAssert.h>
30 #include "WDataCreatorTuring.h"
31 #include "WTuringPatternCreator.h"
54 unsigned char dimension,
dataType type )
56 WAssert( order == 0 && dimension == 1 && type == W_DT_FLOAT,
"The data creator only supports floating point scalar data." );
63 std::shared_ptr< std::vector< float > > data = creator.
create( grid->getNbCoordsX(), grid->getNbCoordsY(), grid->getNbCoordsZ() );
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.
WDataCreatorTuring()
Default constructor.
virtual ~WDataCreatorTuring()
Destructor.
WPropDouble m_spotSize
Property for the size of the spots.
WPropInt m_iterations
Property for the number of iterations during simulation.
WPropDouble m_spotIrregularity
Property for the irregularity of the spots.
Define the interface which is injected into an WObjectNDIP.
std::shared_ptr< const WGridRegular3DTemplate > ConstSPtr
Convenience typedef for a std::shared_ptr< const WGridRegular3DTemplate >.
This is a base class for everything which has a Name,Description,Icon and Properties (=NDIP).
WProperties::SPtr m_properties
the properties of the object.
std::shared_ptr< WProgress > SPtr
Shared pointer on a WProgress.
Creates a pattern of evenly spaced dots via simulating a chemical reaction.
std::shared_ptr< std::vector< float > > create(std::size_t sizeX, std::size_t sizeY, std::size_t sizeZ)
Creates the 3D pattern and writes it into a vector of floats.
void setSpotIrregularity(float irr)
Sets the spot irregularity parameter.
void setSpotSize(float size)
Sets the spotsize parameter.
void setNumIterations(std::size_t iter)
Sets the number of iterations for the chemical simulation that creates the pattern.
std::shared_ptr< WValueSetBase > SPtr
Shared pointer to an instance of this class.
Base Class for all value set types.
dataType
Data types and number values taken from the nifti1.h, at this point it's unknown if it makes sense to...