OpenWalnut  1.5.0dev
Public Member Functions | List of all members
WDataSetPointsCreatorInterface Class Referenceabstract

Define the interface which is injected into an WObjectNDIP. More...

#include <WDataSetPointsCreatorInterface.h>

+ Inheritance diagram for WDataSetPointsCreatorInterface:

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ~WDataSetPointsCreatorInterface()

WDataSetPointsCreatorInterface::~WDataSetPointsCreatorInterface ( )
virtual

Destructor.

Definition at line 27 of file WDataSetPointsCreatorInterface.cpp.

Member Function Documentation

◆ operator()()

virtual void WDataSetPointsCreatorInterface::operator() ( int  seed,
WProgress::SPtr  progress,
const WColor &  color,
size_t  numPoints,
const WPosition origin,
const WPosition size,
WDataSetPoints::VertexArray  vertices,
WDataSetPoints::ColorArray  colors 
)
pure virtual

Create the dataset.

This needs to be implemented by all the creators you write.

Parameters
seedthe seed for the random values.
progressprogress indicator
colorcolor of all points
numPointsnumber of points
originorigin of the bbox
sizesize of the bounding box
verticesthe vertex array. Fill this.
colorsthe color array. Fill this.

Implemented in WDataCreatorPointsRandom.


The documentation for this class was generated from the following files: