167 void setViewport(
float origX,
float origY,
float sizeX,
float sizeY );
217 void viewportFieldChanged();
219 void updateOurViewport();
220 static void callback(
void* userData,
SoAction* action);
244 static void sensorCB(
void* data,
SoSensor* sensor );
#define SO_NODE_HEADER(className)
Switch group node: traverses only the child indicated by integer "whichChild" field.
Class for representing a viewport.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> (Preview feature...
SoSFBool drawBorder
Enable drawing a border around the view's viewport.
SoSFVec2f viewportSize
Viewport size (normalized device coordinates 0..1).
void enableEventHandling(SbBool onoff)
Enable handling events.
const SbViewportRegion & getViewportRegion() const
Returns the actual viewport in pixels.
const SbVec4f & getViewportPixels() const
Returns the actual viewport in pixels.
SoSFVec2f viewportOrigin
Viewport origin (normalized device coordinates 0..1).
SoSFBool active
Enable rendering the view.
void setViewport(const SbVec4f &viewport)
Convenience method to set viewport in normalized coordinates with one call.
void setViewport(float origX, float origY, float sizeX, float sizeY)
Convenience method to set viewport in normalized coordinates with one call.
const SbVec4f & getViewport() const
Returns the current viewport as a convenient single object.
static void exitClass()
Finish using the class.
static void initClass()
Initialize the class.
Abstract base class for all actions.
virtual void removeChild(int index)
Removes child with given index from group.
virtual void replaceChild(int index, SoNode *newChild)
Replaces child with given index with new child.
virtual SoNode * getChild(int index) const
Returns pointer the child node with the given index.
virtual void addChild(SoNode *child)
Adds a child as last one in group.
virtual int findChild(const SoNode *child) const
Finds index of given child within group.
virtual void insertChild(SoNode *child, int newChildIndex)
Adds a child so that it becomes the one with the given index.
virtual int getNumChildren() const
Returns number of children.
virtual void removeAllChildren()
Removes all children from group.
Abstract base class for all database nodes.
Sensor class that can be attached to Open Inventor nodes.
Smart pointer for any class inheriting SoRefCounter.
Field containing a single Boolean value.
Field containing a two-dimensional vector.
Abstract base class for Open Inventor sensors.
Group node that saves and restores traversal state.
#define INVENTORMEDICAL_API