OpenWalnut  1.4.0
Public Member Functions | Private Member Functions | Private Attributes
WSelectionManager Class Reference

manages the several selection tools More...

#include <WSelectionManager.h>

List of all members.

Public Member Functions

 WSelectionManager ()
 standard constructor
virtual ~WSelectionManager ()
 destructor
boost::shared_ptr< WCrosshairgetCrosshair ()
 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< WGridRegular3DgetGrid ()
 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< WCrosshairm_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< WGridRegular3Dm_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

Detailed Description

manages the several selection tools

Definition at line 49 of file WSelectionManager.h.


Constructor & Destructor Documentation

destructor

Definition at line 70 of file WSelectionManager.cpp.


Member Function Documentation

boost::shared_ptr< WCrosshair > WSelectionManager::getCrosshair ( )

Return the current position of the point selection.

Returns:
the crosshair

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

Returns:
index

Definition at line 79 of file WSelectionManager.cpp.

References WKernel::getGraphicsEngine(), and WKernel::getRunningKernel().

boost::shared_ptr< WGridRegular3D > WSelectionManager::getGrid ( )

getter

Returns:
grid

Definition at line 157 of file WSelectionManager.cpp.

References m_textureGrid.

getter for paint mode

Returns:
the mode

Definition at line 145 of file WSelectionManager.cpp.

References m_paintMode.

The property controlling the current axial position of slices.

Returns:
property as double

Definition at line 191 of file WSelectionManager.cpp.

References m_axialPos.

The property controlling the current axial visible-flag.

Returns:
property as bool

Definition at line 206 of file WSelectionManager.cpp.

References m_axialShow.

The property controlling the current coronal position of slices.

Returns:
property as double

Definition at line 196 of file WSelectionManager.cpp.

References m_coronalPos.

The property controlling the current coronal visible-flag.

Returns:
property as bool

Definition at line 211 of file WSelectionManager.cpp.

References m_coronalShow.

The property controlling the current sagittal position of slices.

Returns:
property as double

Definition at line 201 of file WSelectionManager.cpp.

References m_sagittalPos.

The property controlling the current sagittal visible-flag.

Returns:
property as bool

Definition at line 216 of file WSelectionManager.cpp.

References m_sagittalShow.

getter

Returns:
shader index

Definition at line 226 of file WSelectionManager.cpp.

References m_shader.

getter

Returns:
the opacity

Definition at line 173 of file WSelectionManager.cpp.

References m_textureOpacity.

getter

Returns:
flag

Definition at line 167 of file WSelectionManager.cpp.

References m_useTexture.

void WSelectionManager::setPaintMode ( WPaintMode  mode)

setter for paint mode, also forwards it to the graphics engine

Parameters:
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

Parameters:
shaderthe 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

Parameters:
texture
grid

Definition at line 150 of file WSelectionManager.cpp.

References m_texture, and m_textureGrid.

void WSelectionManager::setTextureOpacity ( float  value)

setter

Parameters:
valuethe 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

Parameters:
flag

Definition at line 162 of file WSelectionManager.cpp.

References m_useTexture.

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().


Member Data Documentation

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().

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().

the texture opacity

Definition at line 258 of file WSelectionManager.h.

Referenced by getTextureOpacity(), and setTextureOpacity().

flag indicating if this additional texture should be used.

Definition at line 263 of file WSelectionManager.h.

Referenced by getUseTexture(), and setUseTexture().


The documentation for this class was generated from the following files: