SmallChange  1.0.0
A collection of extensions to Coin3D
Loading...
Searching...
No Matches
ViewportRegion Class Reference

The ViewportRegion class is used to specify a sub-viewport. More...

#include <Inventor/nodes/ViewportRegion.h>

Inheritance diagram for ViewportRegion:
SoNode

Public Member Functions

 ViewportRegion (void)
 
virtual void callback (SoCallbackAction *action)
 
virtual void doAction (SoAction *action)
 
virtual void getMatrix (SoGetMatrixAction *action)
 
virtual void GLRender (SoGLRenderAction *action)
 
virtual void handleEvent (SoHandleEventAction *action)
 
virtual void pick (SoPickAction *action)
 

Static Public Member Functions

static void initClass (void)
 

Public Attributes

SoSFBool clampSize
 
SoSFColor clearColor
 
SoSFBool clearColorBuffer
 
SoSFBool clearDepthBuffer
 
SoSFBool flipX
 
SoSFBool flipY
 
SoSFVec2f origin
 
SoSFVec2f pixelOrigin
 
SoSFVec2f pixelSize
 
SoSFVec2f size
 

Protected Member Functions

virtual ~ViewportRegion ()
 
virtual void notify (SoNotList *list)
 

Detailed Description

The ViewportRegion class is used to specify a sub-viewport.

Constructor & Destructor Documentation

◆ ViewportRegion()

ViewportRegion::ViewportRegion ( void )

Constructor.

◆ ~ViewportRegion()

ViewportRegion::~ViewportRegion ( )
protectedvirtual

Destructor.

Member Function Documentation

◆ doAction()

void ViewportRegion::doAction ( SoAction * action)
virtual

Generic traversal method for this node.

◆ getMatrix()

void ViewportRegion::getMatrix ( SoGetMatrixAction * action)
virtual

Coin method. Updates SoViewportElement.

◆ GLRender()

void ViewportRegion::GLRender ( SoGLRenderAction * action)
virtual

Coin method. Updates SoGLViewportElement.

◆ handleEvent()

void ViewportRegion::handleEvent ( SoHandleEventAction * action)
virtual

Coin method. Updates SoViewportElement.

◆ initClass()

void ViewportRegion::initClass ( void )
static

Required Coin method.

◆ pick()

void ViewportRegion::pick ( SoPickAction * action)
virtual

Coin method. Updates SoViewportElement.

Member Data Documentation

◆ clearColor

SoSFColor ViewportRegion::clearColor

The color used when clearing color buffer. Default is (0,0,0).

◆ clearColorBuffer

SoSFBool ViewportRegion::clearColorBuffer

Set to TRUE to clear color buffer for the new viewport when node is traversed.

◆ clearDepthBuffer

SoSFBool ViewportRegion::clearDepthBuffer

Set to TRUE to clear depth buffer for the new viewport when node is traversed.

◆ flipX

SoSFBool ViewportRegion::flipX

Invert the x coordinate. Normally x=0 is at the left, setting this to TRUE will make x=0 at the right.

◆ flipY

SoSFBool ViewportRegion::flipY

Invert the y coordinate. Normally y=0 is at the bottom, setting this to TRUE will make y=0 at the top.

◆ origin

SoSFVec2f ViewportRegion::origin

Origin of new viewport. (0,0) is lower left corner of current viewport. (1,1) is upper right. Default value is (0,0). The field last written into of origin and pixelOrigin will be used to set the origin when the node is traversed.

See also
pixelOrigin

◆ pixelOrigin

SoSFVec2f ViewportRegion::pixelOrigin

Can be used to set origin directly, in pixels from lower left corner of viewport window. Default value is (0,0).

See also
origin

◆ pixelSize

SoSFVec2f ViewportRegion::pixelSize

Can be used to set size directly, in pixels. Default value is (128,128).

See also
size

◆ size

SoSFVec2f ViewportRegion::size

Size of new viewport. (1,1) will create a viewport with the same size as the current. Default value is (1,1). The field last written into of size and pixelSize will be used to set the size when the node is traversed.

See also
pixelSize

The documentation for this class was generated from the following files: