61 float _rgbFocusColor[4];
#define SOVIEW2D_API
File to resolve system dependencies in View2D library.
SoView2D extension that draws a border with variable width and highlighting of focused viewport.
void updateValues() override
Update fields to local variables, may be reimplemented if you want to update additional local vars.
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.
SoSFFloat borderWidth
The width of the border in pixels.
void drawBorder(View2DSlice *dslice, const float *rgbaColor, float width)
render the border on slice with given color, alpha and line width
void draw(View2DSliceList *dsl, View2DSlice *dslice, int slice) override
Draws a border on the given slice.
SoSFBool evaluateFocus
Flag indicating if the focus should be evaluated.
SoView2DExtension Base class for all View2DExtensions used for drawing and event handling on the View...
a list that holds all View2DSlice objects (lazily created) of a SoView2D
a single slice that is stored in a View2DSliceList, typically created by a View2DSliceList
Target mlrange_cast(Source arg)
Generic version of checked ML casts.