MeVisLabToolboxReference
SoView2DBorder Class Reference

SoView2D extension that draws a border with variable width and highlighting of focused viewport. More...

#include <SoView2DBorder.h>

Inheritance diagram for SoView2DBorder:
SoView2DExtension SoView2DBorderHighlight

List of all members.

Public Member Functions

 SoView2DBorder ()
void draw (View2DSliceList *dsl, View2DSlice *dslice, int slice)
 Draws a border on the given slice.
virtual void updateValues ()
 Update fields to local variables, may be reimplemented if you want to update additional local vars.

Static Public Member Functions

static void initClass ()
 Initializes this class.

Public Attributes

SoSFFloat borderWidth
 The width of the border in pixels.
SoSFBool evaluateFocus
 Flag indicating if the focus should be evaluated.
SoSFColor focusColor
 Color that should be used for drawing if the view has the focus.
SoSFFloat focusBorderWidth
 The width of the border that should be used for drawing if the view has the focus.

Protected Member Functions

void drawBorder (View2DSlice *dslice, const float *rgbaColor, float width)
 render the border on slice with given color, alpha and line width

Protected Attributes

float _rgbFocusColor [4]
 Color of the object for viewers with focus, update on each field change by _nodeSensor.

Detailed Description

SoView2D extension that draws a border with variable width and highlighting of focused viewport.

Author:
Florian Link

Definition at line 24 of file SoView2DBorder.h.


Constructor & Destructor Documentation

SoView2DBorder::SoView2DBorder ( )

Member Function Documentation

void SoView2DBorder::draw ( View2DSliceList dsl,
View2DSlice dslice,
int  slice 
) [virtual]

Draws a border on the given slice.

Reimplemented from SoView2DExtension.

Reimplemented in SoView2DBorderHighlight.

void SoView2DBorder::drawBorder ( View2DSlice dslice,
const float *  rgbaColor,
float  width 
) [protected]

render the border on slice with given color, alpha and line width

static void SoView2DBorder::initClass ( ) [static]

Initializes this class.

Reimplemented from SoView2DExtension.

Reimplemented in SoView2DBorderHighlight.

virtual void SoView2DBorder::updateValues ( ) [virtual]

Update fields to local variables, may be reimplemented if you want to update additional local vars.

Reimplemented from SoView2DExtension.

Reimplemented in SoView2DBorderHighlight.


Member Data Documentation

float SoView2DBorder::_rgbFocusColor[4] [protected]

Color of the object for viewers with focus, update on each field change by _nodeSensor.

Definition at line 58 of file SoView2DBorder.h.

The width of the border in pixels.

Definition at line 30 of file SoView2DBorder.h.

Flag indicating if the focus should be evaluated.

Definition at line 33 of file SoView2DBorder.h.

The width of the border that should be used for drawing if the view has the focus.

Definition at line 39 of file SoView2DBorder.h.

Color that should be used for drawing if the view has the focus.

Definition at line 36 of file SoView2DBorder.h.


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