MeVisLab Resolution Independence API
|
This class implements access to the state of the SoOffscreenRenderer viewer. More...
#include <SoOffscreenViewerProxy.h>
Public Member Functions | |
SoOffscreenViewerProxy (ml::OffscreenRenderer *offscreenRenderer=nullptr) | |
Constructor. | |
~SoOffscreenViewerProxy () override | |
Destructor. | |
bool | isHighQualityOffscreenRendering () const override |
Returns true if high quality offscreen rendering (e.g., for OffscreenRenderer) is desired. | |
![]() | |
SoResolutionIndependentViewerProxy () | |
Constructor. | |
~SoResolutionIndependentViewerProxy () override | |
Destructor. | |
double | getDevicePixelRatio () override |
Returns the ratio between physical pixels and device-independent pixels for the viewer. | |
void | setDevicePixelRatio (double scaleFactor) |
![]() | |
virtual | ~SoViewerProxy () |
Destructor. | |
virtual void | setCursor (int) |
Sets the cursor of a viewer to pre- or user-defined shape, invalid values will set cursor to default shape. | |
virtual bool | hasShape (int shapeID) |
Returns true if the cursor shape has already been defined. | |
virtual int | defineCursor (const char *, int=-1, int=-1, int=-1) |
Defines new cursor shape - successful operation is only guaranteed with PNG-Images with size 32x32, containing only black, white, and transparent pixels. | |
virtual bool | getCurrentCursorPosition (int &x, int &y) |
Gets current cursor position relative to the viewing window. | |
virtual bool | isInitialRendering () const |
Returns true if the viewer does the initial rendering after it became visible. | |
virtual bool | isUserInterationEventInQueue () const |
Returns whether a user interaction event is the the GUI event queue (or in a remote rendering scenario in the incoming message queue). | |
virtual SoMetaInformationMap * | getMetaInformationMap () |
Returns the current SoMetaInformationMap, which allows storing of the current meta information / render state as key/value pairs. | |
virtual void | setForceCursor (int shapeID) |
Enforces the setting of the cursor, even from mouse-over updates. | |
Protected Attributes | |
ml::OffscreenRenderer * | _offscreenRenderer |
Pointer to the actual viewer. | |
![]() | |
double | _devicePixelRatio |
Device pixel ratio. | |
This class implements access to the state of the SoOffscreenRenderer viewer.
Definition at line 28 of file SoOffscreenViewerProxy.h.
SoOffscreenViewerProxy::SoOffscreenViewerProxy | ( | ml::OffscreenRenderer * | offscreenRenderer = nullptr | ) |
Constructor.
|
inlineoverride |
Destructor.
Definition at line 34 of file SoOffscreenViewerProxy.h.
|
inlineoverridevirtual |
Returns true
if high quality offscreen rendering (e.g., for OffscreenRenderer) is desired.
Reimplemented from SoViewerProxy.
Definition at line 36 of file SoOffscreenViewerProxy.h.
|
protected |
Pointer to the actual viewer.
Definition at line 40 of file SoOffscreenViewerProxy.h.