Viewport clipping node. More...
#include <Inventor/nodes/SoViewportClipping.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
SoViewportClipping () | |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Public Attributes | |
SoSFVec2f | origin |
SoSFVec2f | size |
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.6origin | 0 0 |
size | 0 0 |
SoViewportClipping::SoViewportClipping | ( | ) |
Constructor.
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.
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.