GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  SOMATERIALBINDING (3)

NAME

SoMaterialBinding — node that specifies how multiple materials are bound to shapes

CONTENTS

Inherits From
Synopsis
Description
Fields
Methods
Action Behavior
File Format/defaults
See Also

INHERITS FROM

SoBase > SoFieldContainer > SoNode > SoMaterialBinding

SYNOPSIS

#include <Inventor/nodes/SoMaterialBinding.h>

enum Binding {     SoMaterialBinding::OVERALL    
                              SoMaterialBinding::OVERALL    Whole object has same material    
SoMaterialBinding::PER_PART    
                              SoMaterialBinding::PER_PART   One material for each part of object    
SoMaterialBinding::PER_PART_INDEXED    
                              SoMaterialBinding::PER_PART_INDEXED One material for each part, indexed    
SoMaterialBinding::PER_FACE    
                              SoMaterialBinding::PER_FACE   One material for each face of object    
SoMaterialBinding::PER_FACE_INDEXED    
                              SoMaterialBinding::PER_FACE_INDEXED One material for each face, indexed    
SoMaterialBinding::PER_VERTEX    
                              SoMaterialBinding::PER_VERTEX One material for each vertex of object    
SoMaterialBinding::PER_VERTEX_INDEXED    
                              SoMaterialBinding::PER_VERTEX_INDEXED One material for each vertex, indexed
}

Fields from class SoMaterialBinding:

    SoSFEnum    
                    
SoSFEnum             value

Methods from class SoMaterialBinding:

       
                    
                     SoMaterialBinding()    
static SoType    
                    
static SoType        getClassTypeId()

Methods from class SoNode:

    void    
                    
void                 setOverride(SbBool state)    
SbBool    
                    
SbBool               isOverride() const    
SoNode *    
                    
SoNode *             copy(SbBool copyConnections = FALSE) const    
virtual SbBool    
                    
virtual SbBool       affectsState() const    
static SoNode *    
                    
static SoNode *      getByName(const SbName &name)    
static int    
                    
static int           getByName(const SbName &name, SoNodeList &list)

Methods from class SoFieldContainer:

    void    
                    
void                 setToDefaults()    
SbBool    
                    
SbBool               hasDefaultValues() const    
SbBool    
                    
SbBool               fieldsAreEqual(const SoFieldContainer *fc) const    
void    
                    
void                 copyFieldValues(const SoFieldContainer *fc, SbBool copyConnections = FALSE)    
SbBool    
                    
SbBool               set(const char *fieldDataString)    
void    
                    
void                 get(SbString &fieldDataString)    
virtual int    
                    
virtual int          getFields(SoFieldList &resultList) const    
virtual SoField *    
                    
virtual SoField *    getField(const SbName &fieldName) const    
SbBool    
                    
SbBool               getFieldName(const SoField *field, SbName &fieldName) const    
SbBool    
                    
SbBool               isNotifyEnabled() const    
SbBool    
                    
SbBool               enableNotify(SbBool flag)

Methods from class SoBase:

    void    
                    
void                 ref()    
void    
                    
void                 unref() const    
void    
                    
void                 unrefNoDelete() const    
void    
                    
void                 touch()    
virtual SoType    
                    
virtual SoType       getTypeId() const    
SbBool    
                    
SbBool               isOfType(SoType type) const    
virtual void    
                    
virtual void         setName(const SbName &name)    
virtual SbName    
                    
virtual SbName       getName() const

DESCRIPTION

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.

FIELDS

    SoSFEnum    
                    
SoSFEnum             value
Specifies how to bind materials to shapes.

METHODS

       
                    
                     SoMaterialBinding()
Creates a material binding node with default settings.

    static SoType    
                    
static SoType        getClassTypeId()
Returns type identifier for this class.

ACTION BEHAVIOR

SoGLRenderAction, SoCallbackAction
Sets the current material binding type.

FILE FORMAT/DEFAULTS

MaterialBinding {



value  OVERALL


}

SEE ALSO

SoMaterial, SoNormalBinding, SoShape, SoTextureCoordinateBinding

Search for    or go to Top of page |  Section 3 |  Main Index


SOMATERIALBINDING(3IV) (-->)

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.