13 #ifndef SO_VIEWER_PROXY_H
14 #define SO_VIEWER_PROXY_H
19 #include <ThirdPartyWarningsDisable.h>
20 #include <Inventor/SbBasic.h>
21 #include <ThirdPartyWarningsRestore.h>
38 UNDEFINED_CURSOR = -1,
159 PREDEFINED_CURSOR_COUNT
198 int = -1,
int = -1,
int = -1) {
return -1; }
#define INVENTORWRAPPER_API
Library initialization and export macros for platform independecy of project.
void setDevicePixelRatio(double scaleFactor)
SoResolutionIndependentViewerProxy()
Constructor.
~SoResolutionIndependentViewerProxy() override
Destructor.
double _devicePixelRatio
Device pixel ratio.
This class gives access to state of a viewer during scene graph traversal.
static const ml::EnumValues< cursorShapeEnum > & getCursorShapeEnumValues()
Returns enum values record for use with ml::TypedEnumField.
SoViewerProxy()
Protected constructor. Class must be derived to be adapted to actual viewer.
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,...
virtual bool getCurrentCursorPosition(int &x, int &y)
Gets current cursor position relative to the viewing window.
cursorShapeEnum
Pre-defined cursor shapes; note that you must adapt the list of names in SoViewerProxy....
virtual bool isHighQualityOffscreenRendering() const
Returns true if high quality offscreen rendering (e.g., for OffscreenRenderer) is desired.
virtual ~SoViewerProxy()
Destructor.
virtual SoMetaInformationMap * getMetaInformationMap()
Returns the current SoMetaInformationMap, which allows storing of the current meta information / rend...
virtual void setCursor(int)
Sets the cursor of a viewer to pre- or user-defined shape, invalid values will set cursor to default ...
virtual bool hasShape(int shapeID)
Returns true if the cursor shape has already been defined.
static int getPredefinedCursorCount()
Returns number of predefined cursors from code (instead of requiring a re-compilation of all using li...
static const char *const * cursorShapeNames()
Returns a list of strings containing cursor shape names; this includes UNDEFINED_CURSOR,...
virtual bool isInitialRendering() const
Returns true if the viewer does the initial rendering after it became visible.
static int getNextFreeShapeID()
Returns the next free ID for defining custom cursor shape.
virtual bool isUserInterationEventInQueue() const
Returns whether a user interaction event is the the GUI event queue (or in a remote rendering scenari...
virtual void setForceCursor(int shapeID)
Enforces the setting of the cursor, even from mouse-over updates.
Helper class that stores a list of typed enum values and their string names.
double getDevicePixelRatio() override
Returns the ratio between physical pixels and device-independent pixels for the viewer.
virtual double getDevicePixelRatio()
Returns the ratio between physical pixels and device-independent pixels for the viewer.