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.
SoViewerProxy()
Protected constructor. Class must be derived to be adapted to actual viewer.
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,...
virtual bool getCurrentCursorPosition(int &x, int &y)
Get 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 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
static const char *const * cursorShapeNames()
return list of strings containing cursor shape names; this includes UNDEFINED_CURSOR,...
static int getPredefinedCursorCount()
get number of predefined cursors from code (instead of requiring a re-compilation of all using librar...
static const ml::EnumValues< cursorShapeEnum > & getCursorShapeEnumValues()
get enum values record for use with ml::TypedEnumField
virtual bool isInitialRendering() const
returns true if the viewer does the initial rendering after it became visible
static int getNextFreeShapeID()
return the next free id for defining your own cursor shape
virtual bool isUserInterationEventInQueue() const
returns if a user interaction event is the the GUI event queue (or in a remote rendering scenario in ...
virtual SoMetaInformationMap * getMetaInformationMap()
returns the current SoMetaInformationMap, which allows storing of the current meta information / rend...
virtual void setForceCursor(int shapeID)
Enforce setting the cursor, even from mouseOverUpdates.
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.