25 #ifndef WMDATASETPROFILE_H
26 #define WMDATASETPROFILE_H
33 #include <osgWidget/WindowManager>
35 #include "core/dataHandler/WDataSetScalar.h"
36 #include "core/dataHandler/WDataSetSingle.h"
37 #include "core/graphicsEngine/WGECamera.h"
38 #include "core/graphicsEngine/WGEManagedGroupNode.h"
39 #include "core/graphicsEngine/WROISphere.h"
40 #include "core/kernel/WModule.h"
41 #include "core/kernel/WModuleInputData.h"
42 #include "core/kernel/WModuleOutputData.h"
44 const unsigned int MASK_2D = 0xF0000000;
45 const unsigned int MASK_3D = 0x0F000000;
75 virtual const std::string
getName()
const;
89 virtual std::shared_ptr< WModule >
factory()
const;
166 std::shared_ptr< WModuleInputData< WDataSetScalar > >
m_input;
176 std::shared_ptr< WGridRegular3D >
m_grid;
233 std::vector< osg::ref_ptr<WROISphere> >
knobs;
240 osgWidget::WindowManager*
m_wm;
Class for wrapping around the OSG Camera class.
Someone should add some documentation here.
WPropSelection m_snapSelection
Selection property for clusters.
std::shared_ptr< WGridRegular3D > m_grid
stores a pointer to the grid we use;
osg::ref_ptr< osg::Geode > createGraphGeode()
creates an osg node that contains the graph
int m_oldViewWidth
stores the old viewport resolution to check whether a resize happened
WGECamera * m_camera
stores the camera object
WPropBool m_propUseLength
enforce lengths
bool m_dirty
dirty flag to indicate that redrawing is needed
WPropTrigger m_propAddKnobTrigger
Adds a knob.
virtual const std::string getDescription() const
Gives back a description of this module.
std::vector< osg::ref_ptr< WROISphere > > knobs
stores pointers to the control knobs
osg::ref_ptr< WGEManagedGroupNode > m_rootNode
The root node used for this modules graphics.
osg::ref_ptr< osg::Geode > m_lineGeode
The geometry rendered by this module.
std::shared_ptr< WDataSetScalar > m_dataSet
This is a pointer to the dataset the module is currently working on.
osg::ref_ptr< WGEManagedGroupNode > m_graphNode
Pointer to the graph group node.
std::shared_ptr< WItemSelection > m_snapSelectionsList
A list of cluster selection methods.
osg::ref_ptr< osg::Geode > m_graphGeode
osg node for the graph
virtual const std::string getName() const
Gives back the name of this module.
virtual void moduleMain()
Entry point after loading the module.
osg::ref_ptr< osg::Geode > m_graphGridGeode
osg node for the grid
void addKnob(WPosition pos)
adds a control knob
int m_oldViewHeight
stores the old viewport resolution to check whether a resize happened
virtual void connectors()
Initialize the connectors this module is using.
osg::ref_ptr< osg::Geode > createGraphGridGeode()
creates an osg node that contains the underlying grid
void updateCallback()
update function, called with each update pass of the osg render loop
std::shared_ptr< boost::function< void() > > m_changeRoiSignal
Signal that can be used to update the graph.
WPropInt m_propNumSamples
number of sample points on the graph
void setDirty()
sets the dirty flag, used as callback for control knob changes
void init()
initializes the controls and osg nodes
std::shared_ptr< WCondition > m_propCondition
A condition used to notify about changes in several properties.
std::shared_ptr< WModuleInputData< WDataSetScalar > > m_input
An input connector that accepts order 1 datasets.
WPropBool m_propInterpolate
interpolate the graph
virtual const char ** getXPMIcon() const
Get the icon for this module in XPM format.
void update()
updates the osg nodes
virtual void properties()
Initialize the properties for this module.
WPropDouble m_propLength
length between knobs
WPropColor m_graphColor
color of the graph
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...
osgWidget::WindowManager * m_wm
stores a pointer to the window manager used for osg wdgets and overlay stuff
virtual void requirements()
Initialize requirements for this module.
Class representing a single module of OpenWalnut.
This only is a 3d double vector.