SoColorMask Class Reference

VSG extension Enable and disable writing of frame buffer color components More...

#include <Inventor/nodes/SoColorMask.h>

Inheritance diagram for SoColorMask:
SoNode SoFieldContainer SoBase SoRefCounter SoTypedObject

List of all members.

Public Member Functions

virtual SoType getTypeId () const
 SoColorMask ()

Static Public Member Functions

static SoType getClassTypeId ()

Public Attributes

SoSFBool red
SoSFBool green
SoSFBool blue
SoSFBool alpha

Detailed Description

VSG extension Enable and disable writing of frame buffer color components

Specifies whether individual color components in the frame buffer will be modified during rendering.

The color mask will affect all draw buffers.

"Hidden Line Rendering" is a typical use case where a SoColorMask can be useful: faces are first rendered with red, green, blue and alpha masks to FALSE, so that only depth is written. Then, the shape is rendered in wireframe mode, with all masks to TRUE.

To control modifying the depth buffer during rendering see SoDepthBuffer.

FILE FORMAT/DEFAULT

SEE ALSO

SoDrawStyle, SoDepthBuffer

NOTE: node available since Open Inventor 10.4

See related examples:

HiddenLineDemo


Constructor & Destructor Documentation

SoColorMask::SoColorMask (  ) 

Member Function Documentation

static SoType SoColorMask::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoNode.

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

Returns the type identifier for this specific instance.

Reimplemented from SoNode.


Member Data Documentation

Specifies whether or not the alpha component can be written into the frame buffer.

The default value is TRUE, indicating that the color component can be written.

Specifies whether or not the blue component can be written into the frame buffer.

The default value is TRUE, indicating that the color component can be written.

Specifies whether or not the green component can be written into the frame buffer.

The default value is TRUE, indicating that the color component can be written.

Specifies whether or not the red component can be written into the frame buffer.

The default value is TRUE, indicating that the color component can be written.


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

Open Inventor Toolkit reference manual, generated on 22 Dec 2020
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/