16#ifndef _VIEW_MANAGER_H_
17#define _VIEW_MANAGER_H_
19#include <Inventor/nodes/SoGroup.h>
20#include <Medical/InventorMedical.h>
161 void setViewport(
int index,
float xorig,
float yorig,
float xsize,
float ysize );
189 unsigned int m_buttonsPressed;
192 int m_eventViewIndex;
193 int m_captureViewIndex;
196 static void sensorCB(
void* data,
SoSensor* sensor );
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> (Preview feature...
Base class for all group nodes.
virtual void replaceChild(int index, SoNode *newChild)
Replaces child with given index with new child.
virtual void addChild(SoNode *child)
Adds a child as last one in group.
virtual void insertChild(SoNode *child, int newChildIndex)
Adds a child so that it becomes the one with the given index.
Allows nodes in a graph to receive input events.
Abstract base class for all database nodes.
Sensor class that can be attached to Open Inventor nodes.
Abstract base class for picking objects in a scene.
Abstract base class for Open Inventor sensors.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> (Preview feature...
int getLastEventViewIndex() const
Returns the index of the view that handled the last event.
ViewManager()
Constructor.
void setViewport(int index, SbVec4f &vport)
Convenience method to set the viewport of a view.
void setEventCaptureView(int viewIndex)
Set event capture view.
int getNumViews() const
Returns the current number of views being managed.
static void exitClass()
Finish using the class.
void addView(const SceneView *newView)
Add a view.
SceneView * getView(int index) const
Returns the view with the specified index.
SceneView * getView(const SbVec2f &position) const
Returns the first view containing the specified pixel coordinate.
void setViewport(int index, float xorig, float yorig, float xsize, float ysize)
Convenience method to set the viewport of a view.
SbVec2f getLastEventPosition() const
Returns the position of the last event handled (in pixels).
int getViewIndex(const SbVec2f &position) const
Returns a view index for the specified pixel coordinate.
int getViewIndex(const SceneView *view) const
Returns the index of the specified view.
static void initClass()
Initialize the class.