25 #ifndef WMCOORDINATESYSTEM_H
26 #define WMCOORDINATESYSTEM_H
34 #include "WCoordConverter.h"
35 #include "WRulerOrtho.h"
36 #include "core/dataHandler/WDataSet.h"
37 #include "core/graphicsEngine/WGEGroupNode.h"
38 #include "core/kernel/WModule.h"
39 #include "core/kernel/WModuleConnector.h"
40 #include "core/kernel/WModuleInputData.h"
79 virtual const std::string
getName()
const;
94 virtual std::shared_ptr< WModule >
factory()
const;
140 std::shared_ptr< WModuleInputData< WDataSetScalar > >
m_input;
This data set type contains scalars as values.
class that implements the various coordinate systems as overlays within the 3D view
std::shared_ptr< WCoordConverter > m_coordConverter
stores pointer
virtual const char ** getXPMIcon() const
Get the icon for this module in XPM format.
void propertyChanged()
Callback to listen for property changes.
WPropPosition m_brb
upper boundary of the dataset
bool m_dirty
flag true if something happened that requires redrawing of gfx
void addRulersSagittal()
helper function to create rulers
osg::ref_ptr< osg::Group > m_rulerNode
node for the bounding box
std::shared_ptr< WModuleInputData< WDataSetScalar > > m_input
Input connector required by this module.
virtual const std::string getName() const
void addRulersAxial()
helper function to create rulers
int m_viewAngle
stores the last view angle
WPropPosition m_ac
anterior commissure
WMCoordinateSystem()
standard constructor
virtual void moduleMain()
WPropBool m_showSagittal
show rulers on the sagittal slice
WPropTrigger m_ihpTrigger
button to reset the ihp point;
WPropPosition m_flt
lower boundary of the dataset
WPropBool m_showGridAxial
show grid on the axial slice
WPropBool m_showCoronal
show rulers on the coronal slice
WPropBool m_showAxial
show rulers on the axial slice
void updateCallback()
the shader object for this module
WPropPosition m_ihp
inter hemispherical point
WPropSelection m_csSelection
selection for coordinate system mode
std::shared_ptr< WItemSelection > m_possibleSelections
selection for coordinate system mode
void addSagittalGrid(float position)
helper function to create a grid overlay on the sagittal slice
void findBoundingBox()
helper function that computes the innerBoundingBox for the actual data
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...
void initTalairachConverter()
creates and initializes a talairach converter object
virtual ~WMCoordinateSystem()
destructor
osg::ref_ptr< WGEGroupNode > m_rootNode
the root node for this module
WPropTrigger m_pcTrigger
button to reset the pc point
std::shared_ptr< const WDataSetScalar > m_dataSet
pointer to dataSet to be able to access it throughout the whole module.
void updateGeometry()
callback for updating the geometry
virtual void connectors()
Initialize the connectors this module is using.
WPropBool m_showGridCoronal
show grid on the coronal slice
virtual const std::string getDescription() const
void addAxialGrid(float position)
helper function to create a grid overlay on the axial slice
WPropTrigger m_acTrigger
button to reset the ac point
WPropPosition m_crosshair
position of the navigation slices
virtual void activate()
Callback for m_active.
void properties()
initialize the properties for this module
WPropPosition m_pc
posterior commissure
void addRulersCoronal()
helper function to create rulers
void addCoronalGrid(float position)
helper function to create a grid overlay on the coronal slice
std::shared_ptr< WCondition > m_propCondition
A condition used to notify about changes in several properties.
float m_drawOffset
offset from slices to draw geometry on
WPropBool m_showGridSagittal
show grid on the sagittal slice
WPropBool m_showNumbersOnRulers
show/hide numbers on rulers
void createGeometry()
initial creation function for the slice geometry
Class representing a single module of OpenWalnut.