OpenWalnut  1.5.0dev
Public Types | Public Member Functions | List of all members
WDataCreatorPointsRandom Class Reference

Create a fiber spiral. More...

#include <WDataCreatorPointsRandom.h>

+ Inheritance diagram for WDataCreatorPointsRandom:
+ Collaboration diagram for WDataCreatorPointsRandom:

Public Types

typedef std::shared_ptr< WDataCreatorPointsRandomSPtr
 Abbreviate shared_ptr. More...
 
typedef std::shared_ptr< const WDataCreatorPointsRandomConstSPtr
 Abbreviate const shared_ptr. More...
 
- Public Types inherited from WObjectNDIP< WDataSetPointsCreatorInterface >
typedef std::shared_ptr< WObjectNDIPSPtr
 Shared ptr to an instance. More...
 
typedef std::shared_ptr< const WObjectNDIPConstSPtr
 Shared ptr to a const instance. More...
 

Public Member Functions

 WDataCreatorPointsRandom ()
 Default constructor. More...
 
virtual ~WDataCreatorPointsRandom ()
 Destructor. More...
 
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)
 Create the dataset. More...
 
- Public Member Functions inherited from WObjectNDIP< WDataSetPointsCreatorInterface >
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 WDataSetPointsCreatorInterface
virtual ~WDataSetPointsCreatorInterface ()
 Destructor. More...
 

Additional Inherited Members

- Protected Member Functions inherited from WObjectNDIP< WDataSetPointsCreatorInterface >
 WObjectNDIP (std::string name, std::string description, const char **icon=NULL)
 Construct a NDIP'ed object. More...
 
- Protected Attributes inherited from WObjectNDIP< WDataSetPointsCreatorInterface >
WProperties::SPtr m_properties
 the properties of the object. More...
 

Detailed Description

Create a fiber spiral.

Definition at line 34 of file WDataCreatorPointsRandom.h.

Member Typedef Documentation

◆ ConstSPtr

Abbreviate const shared_ptr.

Definition at line 45 of file WDataCreatorPointsRandom.h.

◆ SPtr

Abbreviate shared_ptr.

Definition at line 40 of file WDataCreatorPointsRandom.h.

Constructor & Destructor Documentation

◆ WDataCreatorPointsRandom()

WDataCreatorPointsRandom::WDataCreatorPointsRandom ( )

Default constructor.

Definition at line 29 of file WDataCreatorPointsRandom.cpp.

◆ ~WDataCreatorPointsRandom()

WDataCreatorPointsRandom::~WDataCreatorPointsRandom ( )
virtual

Destructor.

Definition at line 34 of file WDataCreatorPointsRandom.cpp.

Member Function Documentation

◆ operator()()

void WDataCreatorPointsRandom::operator() ( int  seed,
WProgress::SPtr  progress,
const WColor &  color,
size_t  numPoints,
const WPosition origin,
const WPosition size,
WDataSetPoints::VertexArray  vertices,
WDataSetPoints::ColorArray  colors 
)
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.

Implements WDataSetPointsCreatorInterface.

Definition at line 39 of file WDataCreatorPointsRandom.cpp.


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