25 #ifndef WSELECTIONMANAGER_H
26 #define WSELECTIONMANAGER_H
31 #include <boost/shared_ptr.hpp>
34 #include "../common/WProperties.h"
35 #include "WCrosshair.h"
98 void setTexture( osg::ref_ptr< osg::Texture3D > texture, boost::shared_ptr< WGridRegular3D >grid );
104 boost::shared_ptr< WGridRegular3D >
getGrid();
273 #endif // WSELECTIONMANAGER_H
int getFrontSector()
function returns an index of the direction one is currently looking at the scene
WPropDouble m_coronalPos
Coronal slice position.
bool m_useTexture
flag indicating if this additional texture should be used.
A grid that has parallelepiped cells which all have the same proportion.
void setPaintMode(WPaintMode mode)
setter for paint mode, also forwards it to the graphics engine
float m_textureOpacity
the texture opacity
boost::shared_ptr< WCrosshair > m_crosshair
stores pointer to crosshair
WSelectionManager()
standard constructor
boost::shared_ptr< WGridRegular3D > m_textureGrid
stores a pointer to the grid to be used together with the texture
boost::signals2::connection m_sagittalUpdateConnection
The connection for the sagittal property.
void setShader(int shader)
setter for the shader index to be used with the custom texture
boost::signals2::connection m_coronalUpdateConnection
The connection for the coronal property.
WPropBool getPropSagittalShow()
The property controlling the current sagittal visible-flag.
WProperties::SPtr m_sliceGroup
Contains the slice related properties.
osg::ref_ptr< osg::Texture3D > m_texture
stores a pointer to a texture 3d, this is used to provide a faster texture generation process than cr...
void setUseTexture(bool flag=true)
setter
WPaintMode m_paintMode
stores the currently selected paint mode
virtual ~WSelectionManager()
destructor
int m_shader
index of the shader to use with the texture
WPropBool m_axialShow
Axial visible-flag.
WPropDouble getPropAxialPos()
The property controlling the current axial position of slices.
void updateCrosshairPosition()
Updates the crosshair position.
WPropDouble m_sagittalPos
Sagittal slice position.
float getTextureOpacity()
getter
WPropDouble getPropCoronalPos()
The property controlling the current coronal position of slices.
boost::signals2::connection m_axialUpdateConnection
The connection for the axial property.
WPropBool m_coronalShow
Coronal visible-flag.
WPropBool m_sagittalShow
Sagittal visible-flag.
bool getUseTexture()
getter
WPropDouble m_axialPos
Axial slice position.
WPropBool getPropAxialShow()
The property controlling the current axial visible-flag.
manages the several selection tools
boost::shared_ptr< WPropertyGroup > SPtr
shared pointer to object of this type
WPropBool getPropCoronalShow()
The property controlling the current coronal visible-flag.
WPropDouble getPropSagittalPos()
The property controlling the current sagittal position of slices.
boost::shared_ptr< WCrosshair > getCrosshair()
Return the current position of the point selection.
WPaintMode getPaintMode()
getter for paint mode
void setTextureOpacity(float value)
setter
void setTexture(osg::ref_ptr< osg::Texture3D > texture, boost::shared_ptr< WGridRegular3D >grid)
setter for texture and grid
boost::shared_ptr< WGridRegular3D > getGrid()
getter