OpenWalnut
1.5.0dev
|
Define the interface which is injected into an WObjectNDIP. More...
#include <WDataSetPointsCreatorInterface.h>
Public Member Functions | |
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)=0 |
Create the dataset. More... | |
virtual | ~WDataSetPointsCreatorInterface () |
Destructor. More... | |
Define the interface which is injected into an WObjectNDIP.
Remember that WObjectNDIP is a template class deriving from its template type. This way we can inject methods into the base class. It avoids derivation from WObjectNDIP.
This class is especially useful for all dataset types that are WDataSetPoints types.
Definition at line 38 of file WDataSetPointsCreatorInterface.h.
|
virtual |
Destructor.
Definition at line 27 of file WDataSetPointsCreatorInterface.cpp.
|
pure 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 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. |
Implemented in WDataCreatorPointsRandom.