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 OivGetShapeInstanceMatrix()
OivShapeInstanceColor affects the diffuse color of each instance.
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 OivGetShapeInstanceVisibility()
Enum Constant and Description |
---|
COLOR |
NUM_PREDEFINED_PARAMETERS |
ROTATION |
SCALE |
TRANSLATION |
VISIBILITY |
Modifier and Type | Method and Description |
---|---|
static SoInstanceParameter.PredefinedParameters |
fromValue(int val)
Deprecated.
Use
valueOf(int) instead. |
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 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 null@Deprecated public static SoInstanceParameter.PredefinedParameters fromValue(int val)
valueOf(int)
instead.public static SoInstanceParameter.PredefinedParameters valueOf(int val)
public int getValue()
IntegerValuedEnum
getValue
in interface IntegerValuedEnum
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com