SoAlphaPolicy Class Reference

VSG extension Alpha (transparency) policy node More...

#include <Inventor/nodes/SoAlphaPolicy.h>

Inheritance diagram for SoAlphaPolicy:
SoNode SoFieldContainer SoBase SoRefCounter SoTypedObject

List of all members.

Public Types

enum  Policy {
  POLICY_AS_IS = 0,
  POLICY_OPAQUE = 1,
  POLICY_DISCARD = 2
}

Public Member Functions

virtual SoType getTypeId () const
 SoAlphaPolicy ()

Static Public Member Functions

static SoType getClassTypeId ()
static Policy getDefaultPolicy ()

Public Attributes

SoSFEnum policy

Detailed Description

VSG extension Alpha (transparency) policy node

This node sets the current alpha (transparency) comparison policy for the renderer. It affects the blending operation to control how (and if) a transparent object should be rendered.

Current available policies include :

SEE ALSO

SoBlendElement


Member Enumeration Documentation

Policy to use.

Enumerator:
POLICY_AS_IS 

Use the fragment's alpha value as is.

POLICY_OPAQUE 

All semi-transparent fragment (alpha > 0) are considered as opaque.

POLICY_DISCARD 

All semi-transparent fragment (alpha < 1) are considered as fully transparent.


Constructor & Destructor Documentation

SoAlphaPolicy::SoAlphaPolicy (  ) 

Default Constructor.


Member Function Documentation

static SoType SoAlphaPolicy::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoNode.

static Policy SoAlphaPolicy::getDefaultPolicy (  )  [static]

Get default alpha policy.

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

Returns the type identifier for this specific instance.

Reimplemented from SoNode.


Member Data Documentation

Policy used Please refer to enum Policy.

Default value is POLICY_AS_IS


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/