34 #include "WMeshReaderInterface.h"
35 #include "core/common/WObjectNDIP.h"
36 #include "core/common/WStrategyHelper.h"
37 #include "core/graphicsEngine/WTriangleMesh.h"
38 #include "core/kernel/WModule.h"
39 #include "core/kernel/WModuleInputData.h"
40 #include "core/kernel/WModuleOutputData.h"
65 virtual const std::string
getName()
const;
79 virtual std::shared_ptr< WModule >
factory()
const;
105 std::shared_ptr< WModuleOutputData< WTriangleMesh > >
m_output;
This module reads a file containing mesh data (several formats supported) and creates a mesh (or tria...
virtual void connectors()
Initialize the connectors this module is using.
WPropTrigger m_readTriggerProp
This property triggers the actual reading,.
virtual const char ** getXPMIcon() const
Get the icon for this module in XPM format.
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.
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...
WPropFilename m_meshFile
The mesh will be read from this file.
std::shared_ptr< WTriangleMesh > m_triMesh
This triangle mesh is provided as output through the connector.
virtual const std::string getDescription() const
Gives back a description of this module.
WStrategyHelper< WObjectNDIP< WMeshReaderInterface > > m_strategy
Handle each loader as strategy.
WPropInt m_nbVertices
Info-property showing the number of vertices in the mesh.
virtual void moduleMain()
Entry point after loading the module.
WPropInt m_nbTriangles
Info-property showing the number of triangles in the mesh.
virtual const std::string getName() const
Gives back the name of this module.
WPropSelection m_fileTypeSelection
Selection property for file types.
std::shared_ptr< WModuleOutputData< WTriangleMesh > > m_output
Output connector provided by this module.
std::shared_ptr< WItemSelection > m_fileTypeSelectionsList
A list of file type selection types.
Class representing a single module of OpenWalnut.
This class allows for an easy strategy pattern-based switching between properties and strategy instan...