OpenWalnut
1.5.0dev
|
Sets all voxels to the same vector. More...
#include <WDataCreatorSingleDirection.h>
Public Member Functions | |
WDataCreatorSingleDirection () | |
Default constructor. More... | |
virtual | ~WDataCreatorSingleDirection () |
Destructor. More... | |
virtual WValueSetBase::SPtr | operator() (WProgress::SPtr progress, WGridRegular3D::ConstSPtr grid, unsigned char order=1, unsigned char dimension=3, 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 | |
WPropPosition | m_vector |
The vector to copy to the voxels. 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... | |
Sets all voxels to the same vector.
Definition at line 36 of file WDataCreatorSingleDirection.h.
WDataCreatorSingleDirection::WDataCreatorSingleDirection | ( | ) |
Default constructor.
Definition at line 35 of file WDataCreatorSingleDirection.cpp.
References WObjectNDIP< WDataSetSingleCreatorInterface >::m_properties, and m_vector.
|
virtual |
Destructor.
Definition at line 41 of file WDataCreatorSingleDirection.cpp.
|
virtual |
Create the dataset.
order | the tensor order of the values stored in this WValueSet, must equal 1 |
dimension | the tensor dimension of the values stored in this WValueSet, must equal 3 |
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 45 of file WDataCreatorSingleDirection.cpp.
References m_vector.
|
private |
The vector to copy to the voxels.
Definition at line 67 of file WDataCreatorSingleDirection.h.
Referenced by operator()(), and WDataCreatorSingleDirection().