|
MeVisLab Toolbox Reference
|
#include <SoViewportRegion.h>
Public Member Functions | |
| SoViewportRegion () | |
| Constructor. | |
| void | getBoundingBox (SoGetBoundingBoxAction *action) override |
| Get bounding box. | |
| void | GLRenderBelowPath (SoGLRenderAction *action) override |
| Reimplemented GLRenderBelowPath to render child graph with modified viewportSize. | |
| void | handleEvent (SoHandleEventAction *action) override |
| Handle event is reimplemented to forward events with modified viewportSize. | |
| void | connectViewportRegionDefinitionCallback (CallbackFunctionPtr cb, void *p) |
| Called by wrapper to create connection. | |
| void | resetViewportRegion () |
| resets _prevInVPR and therfore forces recomputation of the viewport region | |
Static Public Member Functions | |
| static void | initClass () |
| Initializes this class (called on dll initialization). | |
Public Attributes | |
| SoSFBool | on |
| ! Fields | |
| SoSFBool | modifyVP |
| Enable/Disable viewport region modification. | |
| SoSFBool | usePreviousVP |
| Enable/Disable relative viewport region modification. | |
| SoSFBool | autoScaleAbsoluteValuesHiDPI |
| Enable automatic rescaling of absolute values in high DPI rendering. | |
| SoSFBool | cacheViewportRegion |
| Enable caching of viewport region. | |
| SoSFBool | useViewportRegionDefinitionCallback |
| Enable usage of callback function for viewport region definition. | |
| SoSFEnum | xPositionMode |
| Define how specify the viewport region in the x-dimension. | |
| SoSFFloat | x1 |
| First value for viewport region definition in the x-dimension (right border, left border or center) | |
| SoSFEnum | x1ReferenceMode |
| Reference for x1. | |
| SoSFEnum | x1DomainMode |
| Domain of x1. | |
| SoSFFloat | x2 |
| Second value for viewport region definition in the x-dimension (width or right border) | |
| SoSFEnum | x2ReferenceMode |
| Reference for x2. | |
| SoSFEnum | x2DomainMode |
| Domain of x1. | |
| SoSFEnum | yPositionMode |
| Define how specify the viewport region in the y-dimension. | |
| SoSFFloat | y1 |
| First value for viewport region definition in the y-dimension (lower border, upper border or center) | |
| SoSFEnum | y1ReferenceMode |
| Reference for y1. | |
| SoSFEnum | y1DomainMode |
| Domain of y1. | |
| SoSFFloat | y2 |
| Second value for viewport region definition in the y-dimension (height or upper border) | |
| SoSFEnum | y2ReferenceMode |
| Reference for y2. | |
| SoSFEnum | y2DomainMode |
| Domain of y2. | |
| SoSFEnum | projectionType |
| Used ProjectionType. | |
| SoSFBool | renderDelayedPaths |
| Enable/Disable delayed path rendering. | |
| SoSFBool | detectMouseOver |
| Enable/Disable mouse over detection. | |
| SoSFBool | mouseOverViewport |
| Indicates if the mouse is over the viewport region. | |
| SoSFBool | forwardEvents |
| Enable/Disable forwarding of events to children. | |
| SoSFBool | forwardEventsInViewportOnly |
| If true, only events that occurred in the viewport region will be forwarded. | |
| SoSFBool | keepViewportWhileDragging |
| Do not change into/out of viewport while dragging (hold mouse button pressed) | |
| SoSFBool | mapEventToViewport |
| Enable/Disable mapping of event coordinates to the viewport region. | |
| SoSFBool | consumeEventsInViewport |
| Enable/Disable consumption of handled events. | |
| SoSFBool | enableBorder |
| Enable/Disable drawing of a border. | |
| SoSFInt32 | borderWidth |
| Width of the border. | |
| SoSFColor | borderColor |
| Color used for drawing the border. | |
| SoSFFloat | borderAlpha |
| Alpha used for drawing the border. | |
| SoSFBool | enableBackground |
| Enable/Disable drawing of a background. | |
| SoSFColor | backgroundColor |
| Color used for drawing the background. | |
| SoSFFloat | backgroundAlpha |
| Alpha used for drawing the background. | |
Protected Member Functions | |
| ~SoViewportRegion () override | |
| Destructor. | |
| SbViewportRegion | getViewportRegion (SoState *state) |
| Computes the ViewportRegion. | |
| int | getInterpretedPosition (float value, int width, int height, bool isY, ReferenceMode refMode, DomainMode domMode) |
| Interprets value as position in relation to given size based on the ReferenceMode and the DomainMode. | |
| int | getInterpretedSize (float value, int width, int height, DomainMode domMode) |
| Interprets value as size in relation to given size based on the DomainMode. | |
| void | onVPRFieldChanged (SoField *) |
| Called on changes of fields that may influence the viewport region definition. | |
Protected Attributes | |
| ProjectionType | _prevProjType |
| SbViewVolume::ProjectionType | _projType |
| SbViewportRegion | _prevInVPR |
| SbViewportRegion | _prevOutVPR |
| SoRef< SoCamera > | _insetCam |
Definition at line 41 of file SoViewportRegion.h.
| Enumerator | |
|---|---|
| DOMAIN_MODE_ABSOLUTE | |
| DOMAIN_MODE_RELATIVE_TO_HEIGHT | |
| DOMAIN_MODE_RELATIVE_TO_WIDTH | |
| DOMAIN_MODE_RELATIVE_TO_MIN | |
| DOMAIN_MODE_RELATIVE_TO_MAX | |
Definition at line 72 of file SoViewportRegion.h.
| Enumerator | |
|---|---|
| POSITION_MODE_MIN_AND_MAX | |
| POSITION_MODE_CENTER_AND_SIZE | |
| POSITION_MODE_MIN_AND_SIZE | |
| POSITION_MODE_MAX_AND_SIZE | |
Definition at line 56 of file SoViewportRegion.h.
| Enumerator | |
|---|---|
| ORTHOGRAPHIC | |
| PERSPECTIVE | |
| AUTO | same type as previous camera in state |
| UNMODIFIED | use cam as specified in child graph |
Definition at line 81 of file SoViewportRegion.h.
| Enumerator | |
|---|---|
| REFERENCE_MODE_MIN | |
| REFERENCE_MODE_CENTER | |
| REFERENCE_MODE_MAX | |
Definition at line 65 of file SoViewportRegion.h.
| SoViewportRegion::SoViewportRegion | ( | ) |
Constructor.
|
overrideprotected |
Destructor.
|
inline |
Called by wrapper to create connection.
Definition at line 210 of file SoViewportRegion.h.
|
override |
Get bounding box.
|
protected |
Interprets value as position in relation to given size based on the ReferenceMode and the DomainMode.
|
protected |
Interprets value as size in relation to given size based on the DomainMode.
|
protected |
Computes the ViewportRegion.
|
override |
Reimplemented GLRenderBelowPath to render child graph with modified viewportSize.
|
override |
Handle event is reimplemented to forward events with modified viewportSize.
Initializes this class (called on dll initialization).
Called on changes of fields that may influence the viewport region definition.
Definition at line 244 of file SoViewportRegion.h.
|
inline |
resets _prevInVPR and therfore forces recomputation of the viewport region
Definition at line 218 of file SoViewportRegion.h.
References mlrange_cast().
Definition at line 232 of file SoViewportRegion.h.
|
protected |
Definition at line 230 of file SoViewportRegion.h.
|
protected |
Definition at line 230 of file SoViewportRegion.h.
|
protected |
Definition at line 228 of file SoViewportRegion.h.
|
protected |
Definition at line 229 of file SoViewportRegion.h.
| SoSFBool SoViewportRegion::autoScaleAbsoluteValuesHiDPI |
Enable automatic rescaling of absolute values in high DPI rendering.
Definition at line 100 of file SoViewportRegion.h.
| SoSFFloat SoViewportRegion::backgroundAlpha |
Alpha used for drawing the background.
Definition at line 196 of file SoViewportRegion.h.
| SoSFColor SoViewportRegion::backgroundColor |
Color used for drawing the background.
Definition at line 193 of file SoViewportRegion.h.
| SoSFFloat SoViewportRegion::borderAlpha |
Alpha used for drawing the border.
Definition at line 187 of file SoViewportRegion.h.
| SoSFColor SoViewportRegion::borderColor |
Color used for drawing the border.
Definition at line 184 of file SoViewportRegion.h.
| SoSFInt32 SoViewportRegion::borderWidth |
Width of the border.
Definition at line 181 of file SoViewportRegion.h.
| SoSFBool SoViewportRegion::cacheViewportRegion |
Enable caching of viewport region.
Definition at line 103 of file SoViewportRegion.h.
| SoSFBool SoViewportRegion::consumeEventsInViewport |
Enable/Disable consumption of handled events.
Definition at line 175 of file SoViewportRegion.h.
| SoSFBool SoViewportRegion::detectMouseOver |
Enable/Disable mouse over detection.
Definition at line 157 of file SoViewportRegion.h.
| SoSFBool SoViewportRegion::enableBackground |
Enable/Disable drawing of a background.
Definition at line 190 of file SoViewportRegion.h.
| SoSFBool SoViewportRegion::enableBorder |
Enable/Disable drawing of a border.
Definition at line 178 of file SoViewportRegion.h.
| SoSFBool SoViewportRegion::forwardEvents |
Enable/Disable forwarding of events to children.
Definition at line 163 of file SoViewportRegion.h.
| SoSFBool SoViewportRegion::forwardEventsInViewportOnly |
If true, only events that occurred in the viewport region will be forwarded.
Definition at line 166 of file SoViewportRegion.h.
| SoSFBool SoViewportRegion::keepViewportWhileDragging |
Do not change into/out of viewport while dragging (hold mouse button pressed)
Definition at line 169 of file SoViewportRegion.h.
| SoSFBool SoViewportRegion::mapEventToViewport |
Enable/Disable mapping of event coordinates to the viewport region.
Definition at line 172 of file SoViewportRegion.h.
| SoSFBool SoViewportRegion::modifyVP |
Enable/Disable viewport region modification.
Definition at line 94 of file SoViewportRegion.h.
| SoSFBool SoViewportRegion::mouseOverViewport |
Indicates if the mouse is over the viewport region.
Definition at line 160 of file SoViewportRegion.h.
| SoSFBool SoViewportRegion::on |
| SoSFEnum SoViewportRegion::projectionType |
Used ProjectionType.
Definition at line 151 of file SoViewportRegion.h.
| SoSFBool SoViewportRegion::renderDelayedPaths |
Enable/Disable delayed path rendering.
Definition at line 154 of file SoViewportRegion.h.
| SoSFBool SoViewportRegion::usePreviousVP |
Enable/Disable relative viewport region modification.
Definition at line 97 of file SoViewportRegion.h.
| SoSFBool SoViewportRegion::useViewportRegionDefinitionCallback |
Enable usage of callback function for viewport region definition.
Definition at line 106 of file SoViewportRegion.h.
| SoSFFloat SoViewportRegion::x1 |
First value for viewport region definition in the x-dimension (right border, left border or center)
Definition at line 112 of file SoViewportRegion.h.
| SoSFEnum SoViewportRegion::x1DomainMode |
Domain of x1.
Definition at line 118 of file SoViewportRegion.h.
| SoSFEnum SoViewportRegion::x1ReferenceMode |
Reference for x1.
Definition at line 115 of file SoViewportRegion.h.
| SoSFFloat SoViewportRegion::x2 |
Second value for viewport region definition in the x-dimension (width or right border)
Definition at line 121 of file SoViewportRegion.h.
| SoSFEnum SoViewportRegion::x2DomainMode |
Domain of x1.
Definition at line 127 of file SoViewportRegion.h.
| SoSFEnum SoViewportRegion::x2ReferenceMode |
Reference for x2.
Definition at line 124 of file SoViewportRegion.h.
| SoSFEnum SoViewportRegion::xPositionMode |
Define how specify the viewport region in the x-dimension.
Definition at line 109 of file SoViewportRegion.h.
| SoSFFloat SoViewportRegion::y1 |
First value for viewport region definition in the y-dimension (lower border, upper border or center)
Definition at line 133 of file SoViewportRegion.h.
| SoSFEnum SoViewportRegion::y1DomainMode |
Domain of y1.
Definition at line 139 of file SoViewportRegion.h.
| SoSFEnum SoViewportRegion::y1ReferenceMode |
Reference for y1.
Definition at line 136 of file SoViewportRegion.h.
| SoSFFloat SoViewportRegion::y2 |
Second value for viewport region definition in the y-dimension (height or upper border)
Definition at line 142 of file SoViewportRegion.h.
| SoSFEnum SoViewportRegion::y2DomainMode |
Domain of y2.
Definition at line 148 of file SoViewportRegion.h.
| SoSFEnum SoViewportRegion::y2ReferenceMode |
Reference for y2.
Definition at line 145 of file SoViewportRegion.h.
| SoSFEnum SoViewportRegion::yPositionMode |
Define how specify the viewport region in the y-dimension.
Definition at line 130 of file SoViewportRegion.h.