Click or drag to resize
SoMaterialElement Class

Manages several properties that need to be lazily tracked for rendering.

Inheritance Hierarchy
SystemObject
  OIV.InventorSoNetBase
    OIV.Inventor.ElementsSoElement
      OIV.Inventor.ElementsSoReplacedElement
        OIV.Inventor.ElementsSoMaterialElement

Namespace: OIV.Inventor.Elements
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 10.12.3.0 (10.12.3.0)
Syntax
public class SoMaterialElement : SoReplacedElement

The SoMaterialElement type exposes the following members.

Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodStatic memberGetAmbient
Public methodStatic memberGetClassStackIndex Obsolete.

Returns the stack id for this element.

Public methodStatic memberGetColorIndex
Public methodStatic memberGetColorIndices

Public methodStatic memberGetColorMaterial
Public methodStatic memberGetDefaultAmbient

Specify Open Inventor defaults for colors, etc.

Public methodStatic memberGetDefaultAmbientIntensity

Specify Open Inventor defaults for colors, etc.

Public methodStatic memberGetDefaultColorIndex

Specify Open Inventor defaults for colors, etc.

Public methodStatic memberGetDefaultDiffuse

Specify Open Inventor defaults for colors, etc.

Public methodStatic memberGetDefaultEmissive

Specify Open Inventor defaults for colors, etc.

Public methodStatic memberGetDefaultShininess

Specify Open Inventor defaults for colors, etc.

Public methodStatic memberGetDefaultSpecular

Specify Open Inventor defaults for colors, etc.

Public methodStatic memberGetDefaultTransparency

Specify Open Inventor defaults for colors, etc.

Public methodStatic memberGetDiffuse

get() methods get value from Inventor state.

Public methodStatic memberGetEmissive
Public methodGetHashCode
Overrides GetHashCode().
(Inherited from SoNetBase.)
Public methodGetNumColorIndices

Method to inquire about current colors.

Public methodStatic memberGetNumColorIndices(SoState)

Method to inquire about current colors.

Public methodGetNumDiffuse

Method to inquire about current colors.

Public methodStatic memberGetNumDiffuse(SoState)

Return number of diffuse colors.

Public methodStatic memberGetNumTransparencies

Method to inquire about current colors.

Public methodStatic memberGetPackedColors

Return packed colors if any.

Public methodStatic memberGetShininess
Public methodStatic memberGetSpecular
Public methodStatic memberGetTransparency

get() methods get value from Inventor state.

Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberIsTransparent

Method to inquire about current colors.

Public methodPop

Unref buffer object of the popped element.

(Overrides SoElementPop(SoState, SoElement).)
Public methodPush

Copy current material into the pushed element.

(Overrides SoElementPush(SoState).)
Public methodStatic memberSetAmbient
Public methodStatic memberSetColorIndices

Static set method.

Public methodStatic memberSetColorMaterial
Public methodStatic memberSetDiffuse

Static set method.

Public methodStatic memberSetEmissive
Public methodStatic memberSetPacked

Public methodStatic memberSetShininess
Public methodStatic memberSetSpecular
Public methodStatic memberSetTransparency

Static set method.

Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks

This element manages several properties such as colors, that need to be lazily tracked for rendering. Allows Open Inventor property nodes to set these properties without immediately making any rendering calls. Thus we avoid making redundant rendering calls to set, for example, the material color. Open Inventor rendering nodes then request that the values of any properties that are relevant to that shape and "out of date" (not current with rendering state) be sent to the rendering engine.

Includes: Transparencies GLColorMaterial PolygonStipple Color index

See Also