public static enum SoInstanceParameter.PredefinedParameters extends java.lang.Enum<SoInstanceParameter.PredefinedParameters> implements IntegerValuedEnum
getPredefinedParameterName()
method. They correspond to a set of predefined parameter names that are automatically managed/interpreted:
OivShapeInstanceTranslation, OivShapeInstanceScale and OivShapeInstanceRotation are combined together to create an equivalent matrix available in GLSL shaders with the function
If no parameters are present then an identity matrix is returned.mat4 OivInstanceMatrix()
OivShapeInstanceColor and OivShapeInstanceTransparency affect, respectively, the diffuse color and the transparency of each instance. Note that when one of these parameters is defined, it overrides the diffuse color or the transparency value of a SoMaterial
node.
OivShapeInstanceVisibility affects the visibility of each instance (i.e. 0 means hidden and a value greater than zero means visible). This attribute is available in GLSL shaders with the function
.int OivInstanceVisibility()
Enum Constant and Description |
---|
COLOR |
NUM_PREDEFINED_PARAMETERS |
ROTATION |
SCALE |
TRANSLATION |
TRANSPARENCY |
VISIBILITY |
Modifier and Type | Method and Description |
---|---|
int |
getValue()
Returns the integer value of the enum constant.
|
static SoInstanceParameter.PredefinedParameters |
valueOf(int val)
Returns the enum constant of this type with the specified integer value
|
static SoInstanceParameter.PredefinedParameters |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SoInstanceParameter.PredefinedParameters[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SoInstanceParameter.PredefinedParameters TRANSLATION
public static final SoInstanceParameter.PredefinedParameters ROTATION
public static final SoInstanceParameter.PredefinedParameters SCALE
public static final SoInstanceParameter.PredefinedParameters VISIBILITY
public static final SoInstanceParameter.PredefinedParameters COLOR
public static final SoInstanceParameter.PredefinedParameters TRANSPARENCY
public static final SoInstanceParameter.PredefinedParameters NUM_PREDEFINED_PARAMETERS
public static SoInstanceParameter.PredefinedParameters[] values()
for (SoInstanceParameter.PredefinedParameters c : SoInstanceParameter.PredefinedParameters.values()) System.out.println(c);
public static SoInstanceParameter.PredefinedParameters valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static SoInstanceParameter.PredefinedParameters valueOf(int val)
public int getValue()
IntegerValuedEnum
getValue
in interface IntegerValuedEnum
Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com