public class SoSFEnum<EnumType extends java.lang.Enum<EnumType> & IntegerValuedEnum> extends SoSField
SoSFEnums are written to file as a mnemonic enumerated type name. The name differs among uses of this field in various node or engine classes. See the reference pages for specific nodes or engines for the names (e.g. SoDrawStyle
).
See also:
SoField.FieldTypes
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoSFEnum(SoFieldContainer fieldContainer,
java.lang.String fieldName,
SoField.FieldTypes fieldType,
java.lang.Class<EnumType> enumClass,
EnumType defaultValue)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
int |
getValue()
Returns this field's value.
|
EnumType |
getValue(java.lang.Class<EnumType> enumType) |
void |
setValue(EnumType newValue)
Sets this field to newValue.
|
void |
setValue(int newValue)
Sets this field to
newValue.
|
void |
setValue(java.lang.String name)
Sets this field to contain the given mnemonic name, passed in as a name or string.
|
appendConnection, appendConnection, connectFrom, connectFrom, disconnect, disconnect, disconnect, enableConnection, get, getConnectedEngine, getConnectedField, getContainer, getNumConnections, getValueSize, isConnected, isConnectedFromEngine, isConnectedFromField, isConnectedFromVRMLInterp, isConnectionEnabled, isDefault, isIgnored, set, setIgnored, touch
dispose, getNativeResourceHandle
public SoSFEnum(SoFieldContainer fieldContainer, java.lang.String fieldName, SoField.FieldTypes fieldType, java.lang.Class<EnumType> enumClass, EnumType defaultValue)
public void setValue(EnumType newValue)
public int getValue()
public void setValue(int newValue)
public void setValue(java.lang.String name)
Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com