MeVisLabToolboxReference
|
draw and edit a position on the SoView2D More...
#include <SoView2DPosition.h>
Public Member Functions | |
SoView2DPosition () | |
Constructor. | |
void | draw (View2DSliceList *dsl, View2DSlice *dslice, int slice) |
reimplemented from SoView2DExtension | |
bool | evalEvent (SoView2D *view2d, View2DSliceList *slicelist, View2DEvent *ec, View2DEventPhase phase) |
reimplemented from SoView2DExtension | |
bool | ignoreEvent (View2DEvent *ec) |
Overwrite ignoreEvent -> ignore the "ignoreHandledEvents"-Field. | |
Static Public Member Functions | |
static void | initClass () |
inventor runtime type system | |
Public Attributes | |
SoSFVec3f | worldPosition |
selected world position | |
SoSFEnum | drawingModel |
model that shall be used for the position indicator (crosshairs, circle...) | |
SoSFInt32 | drawingModelSize |
size of the position indicator model | |
SoSFInt32 | crossHairSpacing |
spacing in center of the crosshair position indicator | |
SoSFBool | drawEditingRect |
flag to draw mini rect in cursor center | |
SoSFBool | colorAxes |
flag to draw axes in color | |
SoSFColor | coronalColor |
color for coronal view | |
SoSFColor | axialColor |
color for axial view | |
SoSFColor | sagittalColor |
color for sagittal view | |
SoSFBool | colorBorder |
flag to draw colored borders | |
SoSFFloat | colorBorderWidth |
width of the color border | |
SoSFFloat | lineWidth |
line width of the rendered position indicators. | |
SoSFFloat | blendOnto |
blend factor for the slice the position is located on | |
SoSFFloat | blendOutside |
blend factor for the slice the position is not located on | |
SoSFBool | updateOnPress |
update worldPosition on press event | |
SoSFBool | updateOnMotion |
update worldPosition on motion event | |
SoSFBool | updateOnRelease |
update worldPosition on release event | |
SoSFBool | cooperative |
enable cooperative editing | |
SoSFVec3f | firstSliceWorldPosition |
world position on first slice (useful, if numOfSlices in the corresponding viewer is > 1) | |
Protected Member Functions | |
void | setPosition (const SbVec3f &pos, SoView2D *view2d, View2DSliceList *slicelist) |
void | getAxisColor (char orientation, float *color) |
get color of orientation | |
virtual bool | isSensitiveAt (const SoPointerPosition &pos) |
interface forwarded from SoPointingAction: | |
virtual void | startPressAt (const SoPointerPosition &pos) |
virtual void | dragMoveTo (const SoPointerPosition &pos) |
Protected Attributes | |
SbVec3f | _oldWorldPos |
previous world position | |
bool | _isDragging |
flag if position is being dragged |
draw and edit a position on the SoView2D
Definition at line 31 of file SoView2DPosition.h.
SoView2DPosition::SoView2DPosition | ( | ) |
Constructor.
virtual void SoView2DPosition::dragMoveTo | ( | const SoPointerPosition & | pos | ) | [protected, virtual] |
Reimplemented from SoView2DInteractionExtension.
void SoView2DPosition::draw | ( | View2DSliceList * | dsl, |
View2DSlice * | dslice, | ||
int | slice | ||
) | [virtual] |
reimplemented from SoView2DExtension
Reimplemented from SoView2DExtension.
bool SoView2DPosition::evalEvent | ( | SoView2D * | view2d, |
View2DSliceList * | slicelist, | ||
View2DEvent * | ec, | ||
View2DEventPhase | phase | ||
) | [virtual] |
reimplemented from SoView2DExtension
Reimplemented from SoView2DExtension.
void SoView2DPosition::getAxisColor | ( | char | orientation, |
float * | color | ||
) | [protected] |
get color of orientation
bool SoView2DPosition::ignoreEvent | ( | View2DEvent * | ec | ) | [virtual] |
Overwrite ignoreEvent -> ignore the "ignoreHandledEvents"-Field.
Reimplemented from SoView2DExtension.
static void SoView2DPosition::initClass | ( | ) | [static] |
inventor runtime type system
Reimplemented from SoView2DInteractionExtension.
virtual bool SoView2DPosition::isSensitiveAt | ( | const SoPointerPosition & | pos | ) | [protected, virtual] |
interface forwarded from SoPointingAction:
Reimplemented from SoView2DInteractionExtension.
void SoView2DPosition::setPosition | ( | const SbVec3f & | pos, |
SoView2D * | view2d, | ||
View2DSliceList * | slicelist | ||
) | [protected] |
virtual void SoView2DPosition::startPressAt | ( | const SoPointerPosition & | pos | ) | [protected, virtual] |
Reimplemented from SoView2DInteractionExtension.
bool SoView2DPosition::_isDragging [protected] |
flag if position is being dragged
Definition at line 114 of file SoView2DPosition.h.
SbVec3f SoView2DPosition::_oldWorldPos [protected] |
previous world position
Definition at line 112 of file SoView2DPosition.h.
SoSFColor SoView2DPosition::axialColor |
color for axial view
Definition at line 52 of file SoView2DPosition.h.
SoSFFloat SoView2DPosition::blendOnto |
blend factor for the slice the position is located on
Definition at line 65 of file SoView2DPosition.h.
SoSFFloat SoView2DPosition::blendOutside |
blend factor for the slice the position is not located on
Definition at line 67 of file SoView2DPosition.h.
SoSFBool SoView2DPosition::colorAxes |
flag to draw axes in color
Definition at line 48 of file SoView2DPosition.h.
SoSFBool SoView2DPosition::colorBorder |
flag to draw colored borders
Definition at line 57 of file SoView2DPosition.h.
SoSFFloat SoView2DPosition::colorBorderWidth |
width of the color border
Definition at line 59 of file SoView2DPosition.h.
SoSFBool SoView2DPosition::cooperative |
enable cooperative editing
Definition at line 76 of file SoView2DPosition.h.
SoSFColor SoView2DPosition::coronalColor |
color for coronal view
Definition at line 50 of file SoView2DPosition.h.
SoSFInt32 SoView2DPosition::crossHairSpacing |
spacing in center of the crosshair position indicator
Definition at line 44 of file SoView2DPosition.h.
SoSFBool SoView2DPosition::drawEditingRect |
flag to draw mini rect in cursor center
Definition at line 46 of file SoView2DPosition.h.
SoSFEnum SoView2DPosition::drawingModel |
model that shall be used for the position indicator (crosshairs, circle...)
Definition at line 40 of file SoView2DPosition.h.
SoSFInt32 SoView2DPosition::drawingModelSize |
size of the position indicator model
Definition at line 42 of file SoView2DPosition.h.
world position on first slice (useful, if numOfSlices in the corresponding viewer is > 1)
Definition at line 78 of file SoView2DPosition.h.
SoSFFloat SoView2DPosition::lineWidth |
line width of the rendered position indicators.
Definition at line 62 of file SoView2DPosition.h.
SoSFColor SoView2DPosition::sagittalColor |
color for sagittal view
Definition at line 54 of file SoView2DPosition.h.
SoSFBool SoView2DPosition::updateOnMotion |
update worldPosition on motion event
Definition at line 72 of file SoView2DPosition.h.
SoSFBool SoView2DPosition::updateOnPress |
update worldPosition on press event
Definition at line 70 of file SoView2DPosition.h.
SoSFBool SoView2DPosition::updateOnRelease |
update worldPosition on release event
Definition at line 74 of file SoView2DPosition.h.
SoSFVec3f SoView2DPosition::worldPosition |
selected world position
Definition at line 38 of file SoView2DPosition.h.