public class SoSFBitMask<EnumType extends java.lang.Enum<EnumType> & IntegerValuedEnum> extends SoSFEnum<EnumType>
The bit-wise "&" and "|" operators should be used when testing and setting flags in a mask. For example:
SoSFBitMasks are written to file as one or more mnemonic enumerated type names, in this format:// Add sides to the set of parts rendered text.parts.setValue( text.parts.getValue() | SoText3.PartType.SIDES.getValue() ); // Remove sides from the set of parts rendered text.parts.setValue( text.parts.getValue() & ~SoText3.PartType.SIDES.getValue() );
If only one flag is used in a mask, the parentheses are optional. These names differ among uses of this field in various node or engine classes. See their reference pages for the names.( flag1 | flag2 | ... )
The field values may also be represented as integers, but this is not guaranteed to be portable.
See also:
SoField.FieldTypes
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoSFBitMask()
Deprecated.
As of Open Inventor 9.3 Use constructor with SoFieldContainer instead.
|
SoSFBitMask(SoFieldContainer fieldContainer,
java.lang.String fieldName,
SoField.FieldTypes fieldType,
java.lang.Class<EnumType> enumClass,
EnumType defaultValue)
Default constructor.
|
equals, getValue, getValue, getValueSize, setValue, setValue, setValue
appendConnection, appendConnection, appendConnection, connectFrom, connectFrom, connectFrom, disconnect, disconnect, disconnect, disconnect, enableConnection, get, getConnectedEngine, getConnectedField, getConnectedVRMLInterp, getContainer, getNumConnections, isConnected, isConnectedFromEngine, isConnectedFromField, isConnectedFromVRMLInterp, isConnectionEnabled, isDefault, isIgnored, set, setIgnored, touch
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
@Deprecated public SoSFBitMask()
public SoSFBitMask(SoFieldContainer fieldContainer, java.lang.String fieldName, SoField.FieldTypes fieldType, java.lang.Class<EnumType> enumClass, EnumType defaultValue)
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com