Class TLcdOpenFlightSwitchNode
java.lang.Object
com.luciad.format.object3d.openflight.model.TLcdOpenFlightNode
com.luciad.format.object3d.openflight.model.TLcdOpenFlightTransformableNode
com.luciad.format.object3d.openflight.model.TLcdOpenFlightSwitchNode
- All Implemented Interfaces:
ILcd3DMeshNode
,ILcdOpenFlightNode
A switch node. This node defines "on/off" switches for its children. If a
child is "switched off", it should not be considered during scene graph
traversal.
Please refer to the OpenFlight specification for more details on the semantics of this node and its properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(ALcdOpenFlightSceneVisitor aVisitor) Accepts an OpenFlight visitor.int
int
long[]
getMasks()
int
boolean
isChildEnabled
(int aChildIndex) Returns true if the specified child node is "switched on".void
setCurrentMask
(int aCurrentMask) void
setMaskCount
(int aMaskCount) void
setMasks
(long[] aMasks) void
setWordsPerMask
(int aWordsPerMask) Methods inherited from class com.luciad.format.object3d.openflight.model.TLcdOpenFlightTransformableNode
getTransformation, setTransformation
Methods inherited from class com.luciad.format.object3d.openflight.model.TLcdOpenFlightNode
addChild, getChild, getChildCount, getChildren, getID, getMeshes, getParent, setID, setParent, toString
-
Constructor Details
-
TLcdOpenFlightSwitchNode
-
-
Method Details
-
getCurrentMask
public int getCurrentMask() -
setCurrentMask
public void setCurrentMask(int aCurrentMask) -
getMaskCount
public int getMaskCount() -
setMaskCount
public void setMaskCount(int aMaskCount) -
getWordsPerMask
public int getWordsPerMask() -
setWordsPerMask
public void setWordsPerMask(int aWordsPerMask) -
getMasks
public long[] getMasks() -
setMasks
public void setMasks(long[] aMasks) -
isChildEnabled
public boolean isChildEnabled(int aChildIndex) Returns true if the specified child node is "switched on".- Parameters:
aChildIndex
- the index of the child node to be checked
-
accept
Description copied from interface:ILcdOpenFlightNode
Accepts an OpenFlight visitor. A typical implementation of this method should callaVisitor.visit(this)
.- Specified by:
accept
in interfaceILcdOpenFlightNode
- Overrides:
accept
in classTLcdOpenFlightTransformableNode
- Parameters:
aVisitor
- the visitor to accept
-