public class SoShapeStyleElement extends SoElement
NeedNormals: 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
Modifier and Type | Field and Description |
---|---|
static int |
BBOX_BIT
Deprecated.
Use
SoShapeStyleElement.Flags.BBOX_BIT instead. |
static int |
DELAY_TRANSP_BIT
Deprecated.
Use
SoShapeStyleElement.Flags.DELAY_TRANSP_BIT instead. |
static int |
INVISIBLE_BIT
Deprecated.
Use
SoShapeStyleElement.Flags.INVISIBLE_BIT instead. |
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.
|
static boolean |
isScreenDoor(SoState state)
Returns true if screen door is set.
|
boolean |
mightNotRender()
Returns true if shapes may not render for some reason.
|
boolean |
needNormals()
Returns true if need normals.
|
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 |
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, pop
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
@Deprecated public static final int INVISIBLE_BIT
SoShapeStyleElement.Flags.INVISIBLE_BIT
instead.@Deprecated public static final int BBOX_BIT
SoShapeStyleElement.Flags.BBOX_BIT
instead.@Deprecated public static final int DELAY_TRANSP_BIT
SoShapeStyleElement.Flags.DELAY_TRANSP_BIT
instead.public static void setTextureEnabled(SoState state, boolean value)
public static void setTexture3Enabled(SoState state, boolean value)
public boolean needTexCoords()
public static void setTextureFunction(SoState state, boolean value)
public boolean needTexCoords3()
public static void setTextureEnabled(SoState state, boolean value, int unit)
public static void setComplexityType(SoState state, int value)
public static void setTexture3Enabled(SoState state, boolean value, int unit)
public static void setTransparencyType(SoState state, int value)
@Deprecated public static int getClassStackIndex()
public boolean mightNotRender()
public static void setDrawStyle(SoState state, int value)
public static SoShapeStyleElement get(SoState state)
public boolean needTexCoords(int unit)
public boolean needTexCoords3(int unit)
public void push(SoState state)
public boolean needNormals()
public int getRenderCaseMask()
public static void setLightModel(SoState state, int value)
public static void setTextureFunction(SoState state, boolean value, int unit)
public static boolean isScreenDoor(SoState state)
public static void setOverrides(SoState state, boolean value)
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com