OpenWalnut 1.2.5
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 47 of file WSelectionManager.h.


Constructor & Destructor Documentation

WSelectionManager::WSelectionManager ( )
WSelectionManager::~WSelectionManager ( ) [virtual]

destructor

Definition at line 76 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 80 of file WSelectionManager.cpp.

References m_crosshair.

int WSelectionManager::getFrontSector ( )

function returns an index of the direction one is currently looking at the scene

Returns:
index

Definition at line 85 of file WSelectionManager.cpp.

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

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

getter

Returns:
grid

Definition at line 163 of file WSelectionManager.cpp.

References m_textureGrid.

WPaintMode WSelectionManager::getPaintMode ( )

getter for paint mode

Returns:
the mode

Definition at line 151 of file WSelectionManager.cpp.

References m_paintMode.

WPropDouble WSelectionManager::getPropAxialPos ( )

The property controlling the current axial position of slices.

Returns:
property as double

Definition at line 197 of file WSelectionManager.cpp.

References m_axialPos.

WPropBool WSelectionManager::getPropAxialShow ( )

The property controlling the current axial visible-flag.

Returns:
property as bool

Definition at line 212 of file WSelectionManager.cpp.

References m_axialShow.

WPropDouble WSelectionManager::getPropCoronalPos ( )

The property controlling the current coronal position of slices.

Returns:
property as double

Definition at line 202 of file WSelectionManager.cpp.

References m_coronalPos.

WPropBool WSelectionManager::getPropCoronalShow ( )

The property controlling the current coronal visible-flag.

Returns:
property as bool

Definition at line 217 of file WSelectionManager.cpp.

References m_coronalShow.

WPropDouble WSelectionManager::getPropSagittalPos ( )

The property controlling the current sagittal position of slices.

Returns:
property as double

Definition at line 207 of file WSelectionManager.cpp.

References m_sagittalPos.

WPropBool WSelectionManager::getPropSagittalShow ( )

The property controlling the current sagittal visible-flag.

Returns:
property as bool

Definition at line 222 of file WSelectionManager.cpp.

References m_sagittalShow.

int WSelectionManager::getShader ( )

getter

Returns:
shader index

Definition at line 232 of file WSelectionManager.cpp.

References m_shader.

float WSelectionManager::getTextureOpacity ( )

getter

Returns:
the opacity

Definition at line 179 of file WSelectionManager.cpp.

References m_textureOpacity.

bool WSelectionManager::getUseTexture ( )

getter

Returns:
flag

Definition at line 173 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 142 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 227 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 156 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 184 of file WSelectionManager.cpp.

References m_textureOpacity.

void WSelectionManager::setUseTexture ( bool  flag = true)

setter

Parameters:
flag

Definition at line 168 of file WSelectionManager.cpp.

References m_useTexture.

void WSelectionManager::updateCrosshairPosition ( ) [private]

Updates the crosshair position.

Definition at line 237 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 198 of file WSelectionManager.h.

Referenced by getPropAxialPos(), updateCrosshairPosition(), and WSelectionManager().

WPropBool WSelectionManager::m_axialShow [private]

Axial visible-flag.

Definition at line 213 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 228 of file WSelectionManager.h.

Referenced by WSelectionManager().

WPropDouble WSelectionManager::m_coronalPos [private]

Coronal slice position.

Definition at line 203 of file WSelectionManager.h.

Referenced by getPropCoronalPos(), updateCrosshairPosition(), and WSelectionManager().

WPropBool WSelectionManager::m_coronalShow [private]

Coronal visible-flag.

Definition at line 218 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 233 of file WSelectionManager.h.

Referenced by WSelectionManager().

boost::shared_ptr< WCrosshair > WSelectionManager::m_crosshair [private]

stores pointer to crosshair

Definition at line 188 of file WSelectionManager.h.

Referenced by getCrosshair(), updateCrosshairPosition(), and WSelectionManager().

WPaintMode WSelectionManager::m_paintMode [private]

stores the currently selected paint mode

Definition at line 240 of file WSelectionManager.h.

Referenced by getPaintMode(), and setPaintMode().

WPropDouble WSelectionManager::m_sagittalPos [private]

Sagittal slice position.

Definition at line 208 of file WSelectionManager.h.

Referenced by getPropSagittalPos(), updateCrosshairPosition(), and WSelectionManager().

WPropBool WSelectionManager::m_sagittalShow [private]

Sagittal visible-flag.

Definition at line 223 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 238 of file WSelectionManager.h.

Referenced by WSelectionManager().

index of the shader to use with the texture

Definition at line 266 of file WSelectionManager.h.

Referenced by getShader(), and setShader().

Contains the slice related properties.

Definition at line 193 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 246 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 251 of file WSelectionManager.h.

Referenced by getGrid(), and setTexture().

the texture opacity

Definition at line 256 of file WSelectionManager.h.

Referenced by getTextureOpacity(), and setTextureOpacity().

flag indicating if this additional texture should be used.

Definition at line 261 of file WSelectionManager.h.

Referenced by getUseTexture(), and setUseTexture().


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends