anatomist  5.1.2
3D neuroimaging data viewer
anatomist::ViewState Struct Reference

ViewState holds information about how a view wants to see an object. More...

#include <anatomist/window/viewstate.h>

Inheritance diagram for anatomist::ViewState:
Collaboration diagram for anatomist::ViewState:

Public Types

enum  glSelectRenderMode { glSELECTRENDER_NONE , glSELECTRENDER_OBJECT , glSELECTRENDER_OBJECTS , glSELECTRENDER_POLYGON }
 

Public Member Functions

 ViewState (float t=0, AWindow *win=0, glSelectRenderMode=glSELECTRENDER_NONE)
 
 ViewState (const std::vector< float > &timedims, AWindow *win=0, glSelectRenderMode=glSELECTRENDER_NONE)
 
virtual ~ViewState ()
 
virtual SliceViewStatesliceVS ()
 
virtual const SliceViewStatesliceVS () const
 

Public Attributes

std::vector< float > timedims
 
AWindowwindow
 
glSelectRenderMode selectRenderMode
 

Detailed Description

ViewState holds information about how a view wants to see an object.

The most common information is time because most (if not all) views want to represent differently an object at different time positions. But for some view/object combinations, more information will be needed to qualify the way the object will show: a volume in a 2D window will only diaplay a slice, so slice position and orientation will be needed in this case. More specific information is possible by subclassing ViewState.

ViewState objects are created by the views who ask for OpenGL display lists, so the view must exactly know which information it can provide to the object to have a specific display.

Definition at line 66 of file viewstate.h.

Member Enumeration Documentation

◆ glSelectRenderMode

Enumerator
glSELECTRENDER_NONE 

no selection

glSELECTRENDER_OBJECT 

select a single object

glSELECTRENDER_OBJECTS 

select multiple objects in a neighbourhood

glSELECTRENDER_POLYGON 

select a polygon in a mesh

Definition at line 68 of file viewstate.h.

Constructor & Destructor Documentation

◆ ViewState() [1/2]

anatomist::ViewState::ViewState ( float  t = 0,
AWindow win = 0,
glSelectRenderMode  = glSELECTRENDER_NONE 
)

◆ ViewState() [2/2]

anatomist::ViewState::ViewState ( const std::vector< float > &  timedims,
AWindow win = 0,
glSelectRenderMode  = glSELECTRENDER_NONE 
)

◆ ~ViewState()

virtual anatomist::ViewState::~ViewState ( )
virtual

Member Function Documentation

◆ sliceVS() [1/2]

virtual SliceViewState* anatomist::ViewState::sliceVS ( )
inlinevirtual

Reimplemented in anatomist::SliceViewState.

Definition at line 86 of file viewstate.h.

◆ sliceVS() [2/2]

virtual const SliceViewState* anatomist::ViewState::sliceVS ( ) const
inlinevirtual

Reimplemented in anatomist::SliceViewState.

Definition at line 87 of file viewstate.h.

Member Data Documentation

◆ selectRenderMode

glSelectRenderMode anatomist::ViewState::selectRenderMode

Definition at line 91 of file viewstate.h.

◆ timedims

◆ window

AWindow* anatomist::ViewState::window

Definition at line 90 of file viewstate.h.


The documentation for this struct was generated from the following file: