OpenWalnut  1.5.0dev
Public Member Functions | Private Member Functions | Private Attributes | List of all members
WSelectionManager Class Reference

manages the several selection tools More...

#include <WSelectionManager.h>

+ Collaboration diagram for WSelectionManager:

Public Member Functions

 WSelectionManager ()
 standard constructor More...
 
virtual ~WSelectionManager ()
 destructor More...
 
std::shared_ptr< WCrosshairgetCrosshair ()
 Return the current position of the point selection. More...
 
int getFrontSector ()
 function returns an index of the direction one is currently looking at the scene More...
 
void setPaintMode (WPaintMode mode)
 setter for paint mode, also forwards it to the graphics engine More...
 
WPaintMode getPaintMode ()
 getter for paint mode More...
 
void setTexture (osg::ref_ptr< osg::Texture3D > texture, std::shared_ptr< WGridRegular3D >grid)
 setter for texture and grid More...
 
std::shared_ptr< WGridRegular3DgetGrid ()
 getter More...
 
void setUseTexture (bool flag=true)
 setter More...
 
bool getUseTexture ()
 getter More...
 
float getTextureOpacity ()
 getter More...
 
void setTextureOpacity (float value)
 setter More...
 
WPropDouble getPropAxialPos ()
 The property controlling the current axial position of slices. More...
 
WPropDouble getPropCoronalPos ()
 The property controlling the current coronal position of slices. More...
 
WPropDouble getPropSagittalPos ()
 The property controlling the current sagittal position of slices. More...
 
WPropBool getPropAxialShow ()
 The property controlling the current axial visible-flag. More...
 
WPropBool getPropCoronalShow ()
 The property controlling the current coronal visible-flag. More...
 
WPropBool getPropSagittalShow ()
 The property controlling the current sagittal visible-flag. More...
 
void setShader (int shader)
 setter for the shader index to be used with the custom texture More...
 
int getShader ()
 getter More...
 

Private Member Functions

void updateCrosshairPosition ()
 Updates the crosshair position. More...
 

Private Attributes

std::shared_ptr< WCrosshairm_crosshair
 stores pointer to crosshair More...
 
WProperties::SPtr m_sliceGroup
 Contains the slice related properties. More...
 
WPropDouble m_axialPos
 Axial slice position. More...
 
WPropDouble m_coronalPos
 Coronal slice position. More...
 
WPropDouble m_sagittalPos
 Sagittal slice position. More...
 
WPropBool m_axialShow
 Axial visible-flag. More...
 
WPropBool m_coronalShow
 Coronal visible-flag. More...
 
WPropBool m_sagittalShow
 Sagittal visible-flag. More...
 
boost::signals2::connection m_axialUpdateConnection
 The connection for the axial property. More...
 
boost::signals2::connection m_coronalUpdateConnection
 The connection for the coronal property. More...
 
boost::signals2::connection m_sagittalUpdateConnection
 The connection for the sagittal property. More...
 
WPaintMode m_paintMode
 stores the currently selected paint mode More...
 
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 More...
 
std::shared_ptr< WGridRegular3Dm_textureGrid
 stores a pointer to the grid to be used together with the texture More...
 
float m_textureOpacity
 the texture opacity More...
 
bool m_useTexture
 flag indicating if this additional texture should be used. More...
 
int m_shader
 index of the shader to use with the texture More...
 

Detailed Description

manages the several selection tools

Definition at line 51 of file WSelectionManager.h.

Constructor & Destructor Documentation

◆ WSelectionManager()

WSelectionManager::WSelectionManager ( )

◆ ~WSelectionManager()

WSelectionManager::~WSelectionManager ( )
virtual

destructor

Definition at line 71 of file WSelectionManager.cpp.

Member Function Documentation

◆ getCrosshair()

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

Return the current position of the point selection.

Returns
the crosshair

Definition at line 75 of file WSelectionManager.cpp.

References m_crosshair.

◆ getFrontSector()

int WSelectionManager::getFrontSector ( )

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

Returns
index

Definition at line 80 of file WSelectionManager.cpp.

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

+ Here is the call graph for this function:

◆ getGrid()

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

getter

Returns
grid

Definition at line 158 of file WSelectionManager.cpp.

References m_textureGrid.

◆ getPaintMode()

WPaintMode WSelectionManager::getPaintMode ( )

getter for paint mode

Returns
the mode

Definition at line 146 of file WSelectionManager.cpp.

References m_paintMode.

◆ getPropAxialPos()

WPropDouble WSelectionManager::getPropAxialPos ( )

The property controlling the current axial position of slices.

Returns
property as double

Definition at line 192 of file WSelectionManager.cpp.

References m_axialPos.

◆ getPropAxialShow()

WPropBool WSelectionManager::getPropAxialShow ( )

The property controlling the current axial visible-flag.

Returns
property as bool

Definition at line 207 of file WSelectionManager.cpp.

References m_axialShow.

◆ getPropCoronalPos()

WPropDouble WSelectionManager::getPropCoronalPos ( )

The property controlling the current coronal position of slices.

Returns
property as double

Definition at line 197 of file WSelectionManager.cpp.

References m_coronalPos.

◆ getPropCoronalShow()

WPropBool WSelectionManager::getPropCoronalShow ( )

The property controlling the current coronal visible-flag.

Returns
property as bool

Definition at line 212 of file WSelectionManager.cpp.

References m_coronalShow.

◆ getPropSagittalPos()

WPropDouble WSelectionManager::getPropSagittalPos ( )

The property controlling the current sagittal position of slices.

Returns
property as double

Definition at line 202 of file WSelectionManager.cpp.

References m_sagittalPos.

◆ getPropSagittalShow()

WPropBool WSelectionManager::getPropSagittalShow ( )

The property controlling the current sagittal visible-flag.

Returns
property as bool

Definition at line 217 of file WSelectionManager.cpp.

References m_sagittalShow.

◆ getShader()

int WSelectionManager::getShader ( )

getter

Returns
shader index

Definition at line 227 of file WSelectionManager.cpp.

References m_shader.

◆ getTextureOpacity()

float WSelectionManager::getTextureOpacity ( )

getter

Returns
the opacity

Definition at line 174 of file WSelectionManager.cpp.

References m_textureOpacity.

◆ getUseTexture()

bool WSelectionManager::getUseTexture ( )

getter

Returns
flag

Definition at line 168 of file WSelectionManager.cpp.

References m_useTexture.

◆ setPaintMode()

void WSelectionManager::setPaintMode ( WPaintMode  mode)

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

Parameters
mode

Definition at line 137 of file WSelectionManager.cpp.

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

+ Here is the call graph for this function:

◆ setShader()

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 222 of file WSelectionManager.cpp.

References m_shader.

◆ setTexture()

void WSelectionManager::setTexture ( osg::ref_ptr< osg::Texture3D >  texture,
std::shared_ptr< WGridRegular3D grid 
)

setter for texture and grid

Parameters
texture
grid

Definition at line 151 of file WSelectionManager.cpp.

References m_texture, and m_textureGrid.

◆ setTextureOpacity()

void WSelectionManager::setTextureOpacity ( float  value)

setter

Parameters
valuethe new opacity to use with the texture

Definition at line 179 of file WSelectionManager.cpp.

References m_textureOpacity.

◆ setUseTexture()

void WSelectionManager::setUseTexture ( bool  flag = true)

setter

Parameters
flag

Definition at line 163 of file WSelectionManager.cpp.

References m_useTexture.

◆ updateCrosshairPosition()

void WSelectionManager::updateCrosshairPosition ( )
private

Updates the crosshair position.

Definition at line 232 of file WSelectionManager.cpp.

References m_axialPos, m_coronalPos, m_crosshair, and m_sagittalPos.

Referenced by WSelectionManager().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_axialPos

WPropDouble WSelectionManager::m_axialPos
private

Axial slice position.

Definition at line 202 of file WSelectionManager.h.

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

◆ m_axialShow

WPropBool WSelectionManager::m_axialShow
private

Axial visible-flag.

Definition at line 217 of file WSelectionManager.h.

Referenced by getPropAxialShow(), and WSelectionManager().

◆ m_axialUpdateConnection

boost::signals2::connection WSelectionManager::m_axialUpdateConnection
private

The connection for the axial property.

Definition at line 232 of file WSelectionManager.h.

Referenced by WSelectionManager().

◆ m_coronalPos

WPropDouble WSelectionManager::m_coronalPos
private

Coronal slice position.

Definition at line 207 of file WSelectionManager.h.

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

◆ m_coronalShow

WPropBool WSelectionManager::m_coronalShow
private

Coronal visible-flag.

Definition at line 222 of file WSelectionManager.h.

Referenced by getPropCoronalShow(), and WSelectionManager().

◆ m_coronalUpdateConnection

boost::signals2::connection WSelectionManager::m_coronalUpdateConnection
private

The connection for the coronal property.

Definition at line 237 of file WSelectionManager.h.

Referenced by WSelectionManager().

◆ m_crosshair

std::shared_ptr< WCrosshair > WSelectionManager::m_crosshair
private

stores pointer to crosshair

Definition at line 192 of file WSelectionManager.h.

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

◆ m_paintMode

WPaintMode WSelectionManager::m_paintMode
private

stores the currently selected paint mode

Definition at line 244 of file WSelectionManager.h.

Referenced by getPaintMode(), and setPaintMode().

◆ m_sagittalPos

WPropDouble WSelectionManager::m_sagittalPos
private

Sagittal slice position.

Definition at line 212 of file WSelectionManager.h.

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

◆ m_sagittalShow

WPropBool WSelectionManager::m_sagittalShow
private

Sagittal visible-flag.

Definition at line 227 of file WSelectionManager.h.

Referenced by getPropSagittalShow(), and WSelectionManager().

◆ m_sagittalUpdateConnection

boost::signals2::connection WSelectionManager::m_sagittalUpdateConnection
private

The connection for the sagittal property.

Definition at line 242 of file WSelectionManager.h.

Referenced by WSelectionManager().

◆ m_shader

int WSelectionManager::m_shader
private

index of the shader to use with the texture

Definition at line 270 of file WSelectionManager.h.

Referenced by getShader(), and setShader().

◆ m_sliceGroup

WProperties::SPtr WSelectionManager::m_sliceGroup
private

Contains the slice related properties.

Definition at line 197 of file WSelectionManager.h.

Referenced by WSelectionManager().

◆ m_texture

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 250 of file WSelectionManager.h.

Referenced by setTexture().

◆ m_textureGrid

std::shared_ptr< WGridRegular3D > WSelectionManager::m_textureGrid
private

stores a pointer to the grid to be used together with the texture

Definition at line 255 of file WSelectionManager.h.

Referenced by getGrid(), and setTexture().

◆ m_textureOpacity

float WSelectionManager::m_textureOpacity
private

the texture opacity

Definition at line 260 of file WSelectionManager.h.

Referenced by getTextureOpacity(), and setTextureOpacity().

◆ m_useTexture

bool WSelectionManager::m_useTexture
private

flag indicating if this additional texture should be used.

Definition at line 265 of file WSelectionManager.h.

Referenced by getUseTexture(), and setUseTexture().


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