![]() |
anatomist
5.1.2
3D neuroimaging data viewer
|
ViewState holds information about how a view wants to see an object. More...
#include <anatomist/window/viewstate.h>
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 SliceViewState * | sliceVS () |
virtual const SliceViewState * | sliceVS () const |
Public Attributes | |
std::vector< float > | timedims |
AWindow * | window |
glSelectRenderMode | selectRenderMode |
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.
Definition at line 68 of file viewstate.h.
anatomist::ViewState::ViewState | ( | float | t = 0 , |
AWindow * | win = 0 , |
||
glSelectRenderMode | = glSELECTRENDER_NONE |
||
) |
anatomist::ViewState::ViewState | ( | const std::vector< float > & | timedims, |
AWindow * | win = 0 , |
||
glSelectRenderMode | = glSELECTRENDER_NONE |
||
) |
|
virtual |
|
inlinevirtual |
Reimplemented in anatomist::SliceViewState.
Definition at line 86 of file viewstate.h.
|
inlinevirtual |
Reimplemented in anatomist::SliceViewState.
Definition at line 87 of file viewstate.h.
glSelectRenderMode anatomist::ViewState::selectRenderMode |
Definition at line 91 of file viewstate.h.
std::vector<float> anatomist::ViewState::timedims |
Definition at line 89 of file viewstate.h.
Referenced by anatomist::ASurface< D >::glNormalArray(), anatomist::ASurface< D >::glNumNormal(), anatomist::ASurface< D >::glNumPolygon(), anatomist::ASurface< D >::glNumVertex(), anatomist::ASurface< D >::glPolygonArray(), and anatomist::ASurface< D >::glVertexArray().
AWindow* anatomist::ViewState::window |
Definition at line 90 of file viewstate.h.