Package com.openinventor.inventor.nodes
Enum Class SoInstanceParameter.PredefinedParameters
java.lang.Object
java.lang.Enum<SoInstanceParameter.PredefinedParameters>
com.openinventor.inventor.nodes.SoInstanceParameter.PredefinedParameters
- All Implemented Interfaces:
IntegerValuedEnum
,Serializable
,Comparable<SoInstanceParameter.PredefinedParameters>
,Constable
- Enclosing class:
SoInstanceParameter
public static enum SoInstanceParameter.PredefinedParameters
extends Enum<SoInstanceParameter.PredefinedParameters>
implements IntegerValuedEnum
List of predefined per-instance attribute names.
The names corresponding to the following enum symbols can be queried by mean of the
getPredefinedParameterName()
method. They correspond to a set of predefined parameter names that are automatically managed/interpreted:
- OivShapeInstanceTranslation: Handles an array of vec3f translation to apply to vertices of each instance.
- OivShapeInstanceScale: Handles an array of vec3f scale factor applied to vertices of each instance.
- OivShapeInstanceRotation: Handles an array of vec4f quaternion applied to vertices of each instance.
- OivShapeInstanceColor: Handles an array of vec3f color applied to vertices of each instance.
- OivShapeInstanceTransparency: Handles an array of float transparency applied to vertices of each instance.
- OivShapeInstanceVisibility: Handles an array of int32 visibility flag to apply to each instance.
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()
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionint
getValue()
Returns the integer value of the enum constant.valueOf
(int val) Returns the enum constant of this type with the specified integer valueReturns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
TRANSLATION
-
ROTATION
-
SCALE
-
VISIBILITY
-
COLOR
-
TRANSPARENCY
-
NUM_PREDEFINED_PARAMETERS
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
valueOf
Returns the enum constant of this type with the specified integer value- Returns:
- the enum constant of this type with the specified integer value.
-
getValue
public int getValue()Description copied from interface:IntegerValuedEnum
Returns the integer value of the enum constant.- Specified by:
getValue
in interfaceIntegerValuedEnum
- Returns:
- the integer value of the enum constant.
-