31 #include "WDataCreatorTorus.h"
32 #include "WMDataCreatorPoints.h"
33 #include "WDataCreatorPointsRandom.h"
34 #include "WMDataCreatorPoints.xpm"
35 #include "core/common/WAssert.h"
36 #include "core/common/WProgress.h"
37 #include "core/common/WStrategyHelper.h"
38 #include "core/dataHandler/WDataSetFibers.h"
39 #include "core/kernel/WKernel.h"
43 m_strategy(
"Dataset Creators",
"Select one of the dataset creators and configure it to your needs.", NULL,
44 "Creator",
"A list of all known creators." )
67 return datacreatorpoints_xpm;
72 return "Data Creator Points";
77 return "Allows the user to create point data sets providing a bunch of data creation schemes.";
95 m_size =
m_properties->addProperty(
"Size",
"The size of the dataset along the X,Y, and Z axis in the OpenWalnut coordinate system.",
105 "Vary data over time. This feature is <b>experimental</b>.",
142 vertices->reserve( numPoints * 3 );
143 colors->reserve( numPoints * 3 );
172 std::this_thread::sleep_for( std::chrono::milliseconds( 100 ) );
virtual void wait() const
Wait for the condition.
void setResetable(bool resetable=true, bool autoReset=true)
Sets the resetable flag.
virtual void add(std::shared_ptr< WCondition > condition)
Adds another condition to the set of conditions to wait for.
Class to encapsulate boost::condition_variable_any.
std::shared_ptr< WDataCreatorPointsRandom > SPtr
Abbreviate shared_ptr.
std::shared_ptr< WDataCreatorTorus< T > > SPtr
Abbreviate shared_ptr.
Dataset to store a bunch of points without order or topology.
std::shared_ptr< WDataSetPoints > SPtr
Pointer to dataset.
std::shared_ptr< std::vector< float > > ColorArray
Colors for each vertex in VertexArray.
std::shared_ptr< std::vector< float > > VertexArray
List of vertex coordinates in term of components of vertices.
WPropPosition m_size
Size of the point bounding box.
WStrategyHelper< WObjectNDIP< WDataSetPointsCreatorInterface > > m_strategy
the strategy currently active.
virtual const char ** getXPMIcon() const
Get the icon for this module in XPM format.
virtual void connectors()
Initialize the connectors this module is using.
virtual std::shared_ptr< WModule > factory() const
Due to the prototype design pattern used to build modules, this method returns a new instance of this...
WPropBool m_timeDependent
Use time dependent variation of data (experimental).
virtual const std::string getDescription() const
Gives back a description of this module.
WMDataCreatorPoints()
Standard constructor.
WPropInt m_numPoints
Number of points.
std::shared_ptr< WCondition > m_propCondition
A condition used to notify about changes in several properties.
virtual void properties()
Initialize the properties for this module.
WPropPosition m_origin
Origin of the bounding box.
virtual void moduleMain()
Entry point after loading the module.
std::shared_ptr< WModuleOutputData< WDataSetPoints > > m_output
The only output of this module.
virtual const std::string getName() const
Gives back the name of this module.
WPropColor m_pointColor
Point color.
WPropInt m_seed
The seed for the random.
~WMDataCreatorPoints()
Destructor.
static PtrType createAndAdd(std::shared_ptr< WModule > module, std::string name="", std::string description="")
Convenience method to create a new instance of this out data connector with proper type and add it to...
Class representing a single module of OpenWalnut.
virtual void properties()
Initialize properties in this function.
wlog::WStreamedLogger debugLog() const
Logger instance for comfortable debug logging.
void removeConnectors()
Removes all connectors properly.
std::shared_ptr< WProperties > m_properties
The property object for the module.
void ready()
Call this whenever your module is ready and can react on property changes.
WConditionSet m_moduleState
The internal state of the module.
std::shared_ptr< WProgressCombiner > m_progress
Progress indicator used as parent for all progress' of this module.
virtual void connectors()
Initialize connectors in this function.
This only is a 3d double vector.
Class managing progress inside of modules.
std::shared_ptr< WProgress > SPtr
Shared pointer on a WProgress.
WProperties::SPtr getProperties() const
Get this strategy selectors properties.
void addStrategy(typename StrategyType::SPtr strategy)
Adds the given strategy to the list of all strategies.
WBoolFlag m_shutdownFlag
Condition getting fired whenever the thread should quit.