36 #ifndef WMPARTITION2MESH_H
37 #define WMPARTITION2MESH_H
45 #include "core/dataHandler/WDataSetScalar.h"
46 #include "core/dataHandler/WDataSetVector.h"
47 #include "core/dataHandler/WValueSet.h"
48 #include "core/graphicsEngine/WTriangleMesh.h"
49 #include "core/kernel/WModule.h"
50 #include "core/kernel/WModuleInputData.h"
51 #include "core/kernel/WModuleOutputData.h"
81 virtual const std::string
getName()
const;
95 virtual std::shared_ptr< WModule >
factory()
const;
123 void writeAnnotation();
This module projects a clustering partition result onto a (freesurfer) mesh Meant to work with hierch...
virtual const std::string getDescription() const
Gives back a description of this module.
std::vector< size_t > m_refs
a vector holding the cluster id corresponding to each vertex
unsigned int m_datasetSizeZ
Size of the dataset (Z)
std::shared_ptr< WModuleInputData< WDataSetVector > > m_colorInput
This is a pointer to the color input dataset.
virtual void connectors()
Initialize the connectors this module is using.
std::shared_ptr< WModuleInputData< WTriangleMesh > > m_meshInput2
An input connector for the mesh.
std::shared_ptr< WDataSetVector > m_colorVector
This is a pointer to the color vector.
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::shared_ptr< WDataSetScalar > m_coordinateVector
This is a pointer to the coord vector.
unsigned int m_datasetSizeX
Size of the dataset (X)
WPropBool m_monochrome
if used all labels will have m_propNonActiveColor
std::shared_ptr< WCondition > m_propCondition
A condition used to notify about changes in several properties.
std::shared_ptr< WTriangleMesh > m_outMesh
A pointer to the currently processed tri mesh.
virtual void moduleMain()
Entry point after loading the module.
void writeLabels()
writes a freesurfer set of labels and tcl loading file
virtual void requirements()
Initialize requirements for this module.
unsigned int m_datasetSizeY
Size of the dataset (Y)
WPropFilename m_propLabelFolder
folder where the labels will be written
std::shared_ptr< WModuleInputData< WDataSetScalar > > m_coordInput
An input connector that accepts order 1 datasets.
WPropInt m_infoUnassignedVertices
Info property: number of vertices without match.
WPropColor m_propNonActiveColor
color for the non labeled texture voxels
std::shared_ptr< WModuleInputData< WTriangleMesh > > m_meshInput1
An input connector for the reference mesh.
WPropInt m_infoTotalVertices
Info property: number of vertices.
WPropTrigger m_propWriteTrigger
trigger the writing of the labels
WPropDouble m_propProjectDistance
maximum distance to project the voxels
virtual void properties()
Initialize the properties for this module.
WPropFilename m_propAnnotationFile
filename for the annotation file
std::shared_ptr< WTriangleMesh > m_referenceMesh
A pointer to the currently processed tri mesh.
WPropColor m_propHoleColor
color for the non labeled texture voxels
std::shared_ptr< WModuleOutputData< WTriangleMesh > > m_meshOutput
Output connector provided by this module.
bool m_blankOutMesh
if set mesh colors must be initialized
virtual const std::string getName() const
Gives back the name of this module.
Class representing a single module of OpenWalnut.