27#include <Inventor/nodekits/SoBaseKit.h>
28#include <Inventor/fields/SoSFVec2f.h>
29#include <Inventor/SbViewportRegion.h>
30#include <Inventor/Gui/SoGui.h>
105 SO_KIT_CATALOG_ENTRY_HEADER(cameraKit);
150 { m_isSensitiveOnEvents = flag; }
156 {
return m_isSensitiveOnEvents; }
181 static SbBool viewingEventCB(
void* SO_UNUSED_PARAM(viewer),
void* SO_UNUSED_PARAM(anyEvent) ) {
return FALSE; }
187 static void initClasses();
188 static void initClass();
189 static void exitClass() ;
190 static void exitClasses() ;
193 static PoBaseView* getViewCore(
SoGuiViewer* viewer,
int mouseX,
int mouseY,
bool testSensitiveToEvents =
true);
195 virtual SbBool getViewportIsEnabled()
const;
196 virtual const SbVec2f getViewportOrigin()
const;
197 virtual const SbVec2f getViewportSize()
const;
201 virtual void setDefaultOnNonWritingFields();
211 SO_KIT_CATALOG_ENTRY_HEADER(catchActionCallback);
214 static void catchActionCB(
void *,
SoAction *);
215 static void normalizeMousePoint(
SoGuiViewer* viewer,
216 int mouseX,
int mouseY,
217 float& x,
float& y );
221 static SbVec2s m_currentLogicalViewportSize;
222 SbBool m_isSensitiveOnEvents;
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Abstract base cl...
static PoBaseView * getView(SoGuiViewer *viewer, int mouseX, int mouseY)
Returns the view (if any) that contains the given mouse cursor position.
SbBool isSensitiveOnEvents() const
Returns true if the view is sensitive to events.
void setCamera(SoGuiViewer *viewer)
Sets the camera of the view on the viewer.
void sensitiveOnEvents(SbBool flag)
Specifies if the view is sensitive to events.
SoSFVec2f viewportOrigin
Lower-left corner coordinates of the viewport of the view.
SoSFVec2f viewportSize
Size of the viewport of the view.
static SoDEPRECATED SbBool viewingEventCB(void *viewer, void *anyEvent)
The callback is automatically registered in the So<XXX>Viewer classes.
SbBool isPointWithinViewport(float x, float y) const
Indicates if a point defined in the normalized space [0-1]x[0-1] is in the viewport of the view.
Abstract base class for all actions.
Base class for all node kits.
Field containing a two-dimensional vector.