SoMaterialBinding Class Reference

Node that specifies how multiple materials are bound to shapes. More...

#include <Inventor/nodes/SoMaterialBinding.h>

Inheritance diagram for SoMaterialBinding:
SoNode SoFieldContainer SoBase SoRefCounter SoTypedObject

List of all members.

Public Types

enum  Binding {
  OVERALL = SbVertexAttributeBinding::OVERALL,
  PER_PART = SbVertexAttributeBinding::PER_PART,
  PER_PART_INDEXED = SbVertexAttributeBinding::PER_PART_INDEXED,
  PER_FACE = SbVertexAttributeBinding::PER_FACE,
  PER_FACE_INDEXED = SbVertexAttributeBinding::PER_FACE_INDEXED,
  PER_VERTEX = SbVertexAttributeBinding::PER_VERTEX,

Public Member Functions

virtual SoType getTypeId () const
 SoMaterialBinding ()
virtual void setOverride (const SbBool state)
virtual SbBool isOverride () const

Static Public Member Functions

static SoType getClassTypeId ()

Public Attributes

SoSFEnum value

Detailed Description

Node that specifies how multiple materials are bound to shapes.

This node specifies how the current materials are bound to shapes that follow in the scene graph. Each shape node may interpret bindings differently. The current material always has a base value, which is defined by the first value of all material fields. Since material fields may have multiple values, the binding determines how these values are distributed over a shape.

The bindings for faces and vertices are meaningful only for shapes that are made from faces and vertices. Similarly, the indexed bindings are only used by the shapes that allow indexing.

The bindings apply only to diffuse colors and transparency. Other materials (emissive, specular, ambient, shininess) will have the first value applied to the entire shape, regardless of the material binding or the number provided.

If the number of transparencies is less than the number of diffuse colors, only the first transparency value will be used, regardless of the material binding. If the number of diffuse colors in the state is less than the number required for the given binding, a debug warning will be printed and unpredictable colors will result.




SoMaterial, SoNormalBinding, SoShape, SoVertexProperty, SoTextureCoordinateBinding

Member Enumeration Documentation


Whole object has same material.


One material for each part of object.


One material for each part, indexed.


One material for each face of object.


One material for each face, indexed.


One material for each vertex of object.


One material for each vertex, indexed.


Constructor & Destructor Documentation

SoMaterialBinding::SoMaterialBinding (  ) 

Creates a material binding node with default settings.

Member Function Documentation

static SoType SoMaterialBinding::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoNode.

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

Returns the type identifier for this specific instance.

Reimplemented from SoNode.

virtual SbBool SoMaterialBinding::isOverride (  )  const [inline, virtual]

Returns the state of the override field.

Reimplemented from SoNode.

virtual void SoMaterialBinding::setOverride ( const SbBool  state  )  [inline, virtual]

Set the state of the override field.

see SoNode::setOverride doc.

Reimplemented from SoNode.

Member Data Documentation

Specifies how to bind materials to shapes.

Use enum Binding. Default is OVERALL.

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

Open Inventor Toolkit reference manual, generated on 18 Apr 2021
Copyright © Thermo Fisher Scientific All rights reserved.