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 | |
Public Member Functions inherited from SoResolutionIndependentViewerProxy | |
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) |
Public Member Functions inherited from SoViewerProxy | |
virtual | ~SoViewerProxy () |
Destructor. | |
virtual void | setCursor (int) |
Set cursor of viewer to pre- or user-defined shape, invalid values will set cursor to default shape. | |
virtual bool | hasShape (int shapeID) |
return true if the cursor shape has already been defined | |
virtual int | defineCursor (const char *, int=-1, int=-1, int=-1) |
Define 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) |
Get 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 if 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) |
Enforce setting the cursor, even from mouseOverUpdates. | |
Protected Attributes | |
ml::OffscreenRenderer * | _offscreenRenderer |
Pointer to the actual viewer. | |
Protected Attributes inherited from SoResolutionIndependentViewerProxy | |
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.