OpenWalnut
1.4.0
|
manages the several selection tools More...
#include <WSelectionManager.h>
Public Member Functions | |
WSelectionManager () | |
standard constructor | |
virtual | ~WSelectionManager () |
destructor | |
boost::shared_ptr< WCrosshair > | getCrosshair () |
Return the current position of the point selection. | |
int | getFrontSector () |
function returns an index of the direction one is currently looking at the scene | |
void | setPaintMode (WPaintMode mode) |
setter for paint mode, also forwards it to the graphics engine | |
WPaintMode | getPaintMode () |
getter for paint mode | |
void | setTexture (osg::ref_ptr< osg::Texture3D > texture, boost::shared_ptr< WGridRegular3D >grid) |
setter for texture and grid | |
boost::shared_ptr< WGridRegular3D > | getGrid () |
getter | |
void | setUseTexture (bool flag=true) |
setter | |
bool | getUseTexture () |
getter | |
float | getTextureOpacity () |
getter | |
void | setTextureOpacity (float value) |
setter | |
WPropDouble | getPropAxialPos () |
The property controlling the current axial position of slices. | |
WPropDouble | getPropCoronalPos () |
The property controlling the current coronal position of slices. | |
WPropDouble | getPropSagittalPos () |
The property controlling the current sagittal position of slices. | |
WPropBool | getPropAxialShow () |
The property controlling the current axial visible-flag. | |
WPropBool | getPropCoronalShow () |
The property controlling the current coronal visible-flag. | |
WPropBool | getPropSagittalShow () |
The property controlling the current sagittal visible-flag. | |
void | setShader (int shader) |
setter for the shader index to be used with the custom texture | |
int | getShader () |
getter | |
Private Member Functions | |
void | updateCrosshairPosition () |
Updates the crosshair position. | |
Private Attributes | |
boost::shared_ptr< WCrosshair > | m_crosshair |
stores pointer to crosshair | |
WProperties::SPtr | m_sliceGroup |
Contains the slice related properties. | |
WPropDouble | m_axialPos |
Axial slice position. | |
WPropDouble | m_coronalPos |
Coronal slice position. | |
WPropDouble | m_sagittalPos |
Sagittal slice position. | |
WPropBool | m_axialShow |
Axial visible-flag. | |
WPropBool | m_coronalShow |
Coronal visible-flag. | |
WPropBool | m_sagittalShow |
Sagittal visible-flag. | |
boost::signals2::connection | m_axialUpdateConnection |
The connection for the axial property. | |
boost::signals2::connection | m_coronalUpdateConnection |
The connection for the coronal property. | |
boost::signals2::connection | m_sagittalUpdateConnection |
The connection for the sagittal property. | |
WPaintMode | m_paintMode |
stores the currently selected paint mode | |
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 creating a new dataset for every texture change | |
boost::shared_ptr< WGridRegular3D > | m_textureGrid |
stores a pointer to the grid to be used together with the texture | |
float | m_textureOpacity |
the texture opacity | |
bool | m_useTexture |
flag indicating if this additional texture should be used. | |
int | m_shader |
index of the shader to use with the texture |
manages the several selection tools
Definition at line 49 of file WSelectionManager.h.
standard constructor
Definition at line 39 of file WSelectionManager.cpp.
References m_axialPos, m_axialShow, m_axialUpdateConnection, m_coronalPos, m_coronalShow, m_coronalUpdateConnection, m_crosshair, m_sagittalPos, m_sagittalShow, m_sagittalUpdateConnection, m_sliceGroup, and updateCrosshairPosition().
WSelectionManager::~WSelectionManager | ( | ) | [virtual] |
destructor
Definition at line 70 of file WSelectionManager.cpp.
boost::shared_ptr< WCrosshair > WSelectionManager::getCrosshair | ( | ) |
Return the current position of the point selection.
Definition at line 74 of file WSelectionManager.cpp.
References m_crosshair.
function returns an index of the direction one is currently looking at the scene
Definition at line 79 of file WSelectionManager.cpp.
References WKernel::getGraphicsEngine(), and WKernel::getRunningKernel().
boost::shared_ptr< WGridRegular3D > WSelectionManager::getGrid | ( | ) |
WPaintMode WSelectionManager::getPaintMode | ( | ) |
getter for paint mode
Definition at line 145 of file WSelectionManager.cpp.
References m_paintMode.
WPropDouble WSelectionManager::getPropAxialPos | ( | ) |
The property controlling the current axial position of slices.
Definition at line 191 of file WSelectionManager.cpp.
References m_axialPos.
WPropBool WSelectionManager::getPropAxialShow | ( | ) |
The property controlling the current axial visible-flag.
Definition at line 206 of file WSelectionManager.cpp.
References m_axialShow.
WPropDouble WSelectionManager::getPropCoronalPos | ( | ) |
The property controlling the current coronal position of slices.
Definition at line 196 of file WSelectionManager.cpp.
References m_coronalPos.
WPropBool WSelectionManager::getPropCoronalShow | ( | ) |
The property controlling the current coronal visible-flag.
Definition at line 211 of file WSelectionManager.cpp.
References m_coronalShow.
WPropDouble WSelectionManager::getPropSagittalPos | ( | ) |
The property controlling the current sagittal position of slices.
Definition at line 201 of file WSelectionManager.cpp.
References m_sagittalPos.
WPropBool WSelectionManager::getPropSagittalShow | ( | ) |
The property controlling the current sagittal visible-flag.
Definition at line 216 of file WSelectionManager.cpp.
References m_sagittalShow.
int WSelectionManager::getShader | ( | ) |
getter
Definition at line 226 of file WSelectionManager.cpp.
References m_shader.
float WSelectionManager::getTextureOpacity | ( | ) |
getter
Definition at line 173 of file WSelectionManager.cpp.
References m_textureOpacity.
bool WSelectionManager::getUseTexture | ( | ) |
void WSelectionManager::setPaintMode | ( | WPaintMode | mode | ) |
setter for paint mode, also forwards it to the graphics engine
mode |
Definition at line 136 of file WSelectionManager.cpp.
References WKernel::getGraphicsEngine(), WKernel::getRunningKernel(), and m_paintMode.
void WSelectionManager::setShader | ( | int | shader | ) |
setter for the shader index to be used with the custom texture
shader | the index of the shader |
Definition at line 221 of file WSelectionManager.cpp.
References m_shader.
void WSelectionManager::setTexture | ( | osg::ref_ptr< osg::Texture3D > | texture, |
boost::shared_ptr< WGridRegular3D > | grid | ||
) |
setter for texture and grid
texture | |
grid |
Definition at line 150 of file WSelectionManager.cpp.
References m_texture, and m_textureGrid.
void WSelectionManager::setTextureOpacity | ( | float | value | ) |
setter
value | the new opacity to use with the texture |
Definition at line 178 of file WSelectionManager.cpp.
References m_textureOpacity.
void WSelectionManager::setUseTexture | ( | bool | flag = true | ) |
setter
flag |
Definition at line 162 of file WSelectionManager.cpp.
References m_useTexture.
void WSelectionManager::updateCrosshairPosition | ( | ) | [private] |
Updates the crosshair position.
Definition at line 231 of file WSelectionManager.cpp.
References m_axialPos, m_coronalPos, m_crosshair, and m_sagittalPos.
Referenced by WSelectionManager().
WPropDouble WSelectionManager::m_axialPos [private] |
Axial slice position.
Definition at line 200 of file WSelectionManager.h.
Referenced by getPropAxialPos(), updateCrosshairPosition(), and WSelectionManager().
WPropBool WSelectionManager::m_axialShow [private] |
Axial visible-flag.
Definition at line 215 of file WSelectionManager.h.
Referenced by getPropAxialShow(), and WSelectionManager().
boost::signals2::connection WSelectionManager::m_axialUpdateConnection [private] |
The connection for the axial property.
Definition at line 230 of file WSelectionManager.h.
Referenced by WSelectionManager().
WPropDouble WSelectionManager::m_coronalPos [private] |
Coronal slice position.
Definition at line 205 of file WSelectionManager.h.
Referenced by getPropCoronalPos(), updateCrosshairPosition(), and WSelectionManager().
WPropBool WSelectionManager::m_coronalShow [private] |
Coronal visible-flag.
Definition at line 220 of file WSelectionManager.h.
Referenced by getPropCoronalShow(), and WSelectionManager().
boost::signals2::connection WSelectionManager::m_coronalUpdateConnection [private] |
The connection for the coronal property.
Definition at line 235 of file WSelectionManager.h.
Referenced by WSelectionManager().
boost::shared_ptr< WCrosshair > WSelectionManager::m_crosshair [private] |
stores pointer to crosshair
Definition at line 190 of file WSelectionManager.h.
Referenced by getCrosshair(), updateCrosshairPosition(), and WSelectionManager().
WPaintMode WSelectionManager::m_paintMode [private] |
stores the currently selected paint mode
Definition at line 242 of file WSelectionManager.h.
Referenced by getPaintMode(), and setPaintMode().
WPropDouble WSelectionManager::m_sagittalPos [private] |
Sagittal slice position.
Definition at line 210 of file WSelectionManager.h.
Referenced by getPropSagittalPos(), updateCrosshairPosition(), and WSelectionManager().
WPropBool WSelectionManager::m_sagittalShow [private] |
Sagittal visible-flag.
Definition at line 225 of file WSelectionManager.h.
Referenced by getPropSagittalShow(), and WSelectionManager().
boost::signals2::connection WSelectionManager::m_sagittalUpdateConnection [private] |
The connection for the sagittal property.
Definition at line 240 of file WSelectionManager.h.
Referenced by WSelectionManager().
int WSelectionManager::m_shader [private] |
index of the shader to use with the texture
Definition at line 268 of file WSelectionManager.h.
Referenced by getShader(), and setShader().
Contains the slice related properties.
Definition at line 195 of file WSelectionManager.h.
Referenced by WSelectionManager().
osg::ref_ptr< osg::Texture3D > WSelectionManager::m_texture [private] |
stores a pointer to a texture 3d, this is used to provide a faster texture generation process than creating a new dataset for every texture change
Definition at line 248 of file WSelectionManager.h.
Referenced by setTexture().
boost::shared_ptr< WGridRegular3D > WSelectionManager::m_textureGrid [private] |
stores a pointer to the grid to be used together with the texture
Definition at line 253 of file WSelectionManager.h.
Referenced by getGrid(), and setTexture().
float WSelectionManager::m_textureOpacity [private] |
the texture opacity
Definition at line 258 of file WSelectionManager.h.
Referenced by getTextureOpacity(), and setTextureOpacity().
bool WSelectionManager::m_useTexture [private] |
flag indicating if this additional texture should be used.
Definition at line 263 of file WSelectionManager.h.
Referenced by getUseTexture(), and setUseTexture().