SoViewportClipping Class Reference

Viewport clipping node. More...

#include <Inventor/nodes/SoViewportClipping.h>

Inheritance diagram for SoViewportClipping:
SoNode SoFieldContainer SoBase SoRefCounter SoTypedObject

List of all members.

Public Member Functions

virtual SoType getTypeId () const
 SoViewportClipping ()

Static Public Member Functions

static SoType getClassTypeId ()

Public Attributes

SoSFVec2f origin
SoSFVec2f size

Detailed Description

Viewport clipping node.

This node specifies a clipping region on the screen defined by a position and a size in pixels. Any portion of a primitive outside this region will not be rendered.

Note that this clipping is applied in screen space after viewing and view clipping. (For OpenGL programmers, think of it as a call to glScissor.)

The clipping region also limits the effect of clearing the depth buffer using an SoDepthBuffer node.

NOTE: node available since Open Inventor 8.6

FILE FORMAT/DEFAULT

ACTION BEHAVIOR

SEE ALSO

SoViewport

See related examples:

ViewportClipping


Constructor & Destructor Documentation

SoViewportClipping::SoViewportClipping (  ) 

Constructor.


Member Function Documentation

static SoType SoViewportClipping::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoNode.

virtual SoType SoViewportClipping::getTypeId (  )  const [virtual]

Returns the type identifier for this specific instance.

Reimplemented from SoNode.


Member Data Documentation

Specifies the position of the clip region in pixels.

(Although this is a float field, the values really are pixels, not normalized units.) Default is 0,0.

Specifies the size of the clip region in pixels.

(Although this is a float field, the values really are pixels, not normalized units.) Default is 0,0.


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

Open Inventor Toolkit reference manual, generated on 15 Mar 2023
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/