34 #include "core/graphicsEngine/WTriangleMesh.h"
35 #include "core/kernel/WModule.h"
36 #include "core/kernel/WModuleInputData.h"
37 #include "core/kernel/WModuleOutputData.h"
67 virtual const std::string
getName()
const;
81 virtual std::shared_ptr< WModule >
factory()
const;
135 std::vector< std::shared_ptr< WTriangleMesh > >
splitMesh( std::shared_ptr< WTriangleMesh > triMesh,
size_t targetSize );
This module writes the triangle mesh given at its input connector as a VTK ASCII file or ....
virtual void moduleMain()
Entry point after loading the module.
bool saveSTL()
Write STL format.
WPropSelection m_fileTypeSelection
Selection property for file types.
bool saveVTKASCII() const
Store the mesh in legacy vtk file format.
virtual const std::string getName() const
Gives back the name of this module.
std::shared_ptr< WCondition > m_propCondition
A condition used to notify about changes in several properties.
bool saveJson()
Store the mesh in a json (javascript object notation) file.
virtual const std::string getDescription() const
Gives back a description of this module.
std::shared_ptr< WItemSelection > m_fileTypeSelectionsList
A list of file type selection types.
virtual const char ** getXPMIcon() const
Get the icon for this module in XPM format.
WPropBool m_writeColors
If true, colors get exported too.
WPropFilename m_meshFile
The mesh will be written to this file.
std::shared_ptr< WModuleInputData< WTriangleMesh > > m_meshInput
Input connector for a mesh.
virtual void properties()
Initialize the properties for this module.
std::shared_ptr< WTriangleMesh > m_triMesh
A pointer to the currently processed tri mesh.
WPropTrigger m_saveTriggerProp
This property triggers the actual writing,.
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...
std::vector< std::shared_ptr< WTriangleMesh > > splitMesh(std::shared_ptr< WTriangleMesh > triMesh, size_t targetSize)
Splits the mesh in several mesh files (to solve maximum mesh limits in BrainGlL).
WPropGroup m_savePropGroup
Property group containing properties needed for saving the mesh.
Class representing a single module of OpenWalnut.