public class SoShapeStyleElement extends SoElement
NeedNormals: true if lighting is on
NeedTangents: true if lighting is on
NeedTexCoords: true if texturing and texcoords not generated by GL
MightNotRender: true if:
See also:
Modifier and Type | Class and Description |
---|---|
static class |
SoShapeStyleElement.Flags
flags
|
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Modifier and Type | Method and Description |
---|---|
static SoShapeStyleElement |
get(SoState state)
Get a readable instance.
|
static int |
getClassStackIndex()
Deprecated.
As of Open Inventor 9.3 replaced by SoElement.getClassStackIndex(Class)
|
int |
getRenderCaseMask()
Returns a mask that can be used by the SoVertexPropertyCache class (see SoVertexProperty.h for the SoRenderInfo class) to quickly mask out the normal or texture coordinate cases if normals or texture coordinates aren't needed.
|
boolean |
mightNotRender()
Returns true if shapes may not render for some reason.
|
boolean |
needNormals()
Returns true if need normals.
|
boolean |
needTangents()
Returns true if need tangents.
|
boolean |
needTexCoords()
Calls needTexCoords((int)0).
|
boolean |
needTexCoords(int unit)
Returns true if need texture coordinates.
|
boolean |
needTexCoords3()
Calls needTexCoords3((int)0).
|
boolean |
needTexCoords3(int unit)
Returns true if need 3D texture coordinates.
|
void |
pop(SoState state,
SoElement prevTopElement)
Pops element.
|
void |
push(SoState state)
Pushes element.
|
static void |
setComplexityType(SoState state,
int value)
API used by other elements.
|
static void |
setDrawStyle(SoState state,
int value)
API used by other elements.
|
static void |
setLightModel(SoState state,
int value)
API used by other elements.
|
static void |
setOverrides(SoState state,
boolean value)
Set value is true if either diffuse, transparency, or materialbinding are overridden; otherwise false.
|
static void |
setTexture3Enabled(SoState state,
boolean value)
Calls setTexture3Enabled(state, value, (int)0).
|
static void |
setTexture3Enabled(SoState state,
boolean value,
int unit)
API used by other elements.
|
static void |
setTextureEnabled(SoState state,
boolean value)
Calls setTextureEnabled(state, value, (int)0).
|
static void |
setTextureEnabled(SoState state,
boolean value,
int unit)
API used by other elements.
|
static void |
setTextureFunction(SoState state,
boolean value)
Calls setTextureFunction(state, value, (int)0).
|
static void |
setTextureFunction(SoState state,
boolean value,
int unit)
API used by other elements.
|
static void |
setTransparencyType(SoState state,
int value)
API used by other elements.
|
getClassStackIndex
dispose, getNativeResourceHandle
public static void setTextureFunction(SoState state, boolean value)
public boolean needTexCoords()
public static void setTexture3Enabled(SoState state, boolean value)
public static void setTextureEnabled(SoState state, boolean value)
public boolean needTexCoords3()
public void pop(SoState state, SoElement prevTopElement)
public static void setTextureFunction(SoState state, boolean value, int unit)
@Deprecated public static int getClassStackIndex()
public static void setLightModel(SoState state, int value)
public static void setTextureEnabled(SoState state, boolean value, int unit)
public static void setOverrides(SoState state, boolean value)
public void push(SoState state)
public boolean mightNotRender()
public static void setTransparencyType(SoState state, int value)
public boolean needTexCoords(int unit)
public boolean needTangents()
public boolean needNormals()
public static void setTexture3Enabled(SoState state, boolean value, int unit)
public int getRenderCaseMask()
public static SoShapeStyleElement get(SoState state)
public static void setDrawStyle(SoState state, int value)
public static void setComplexityType(SoState state, int value)
public boolean needTexCoords3(int unit)
Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com