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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(ALcdOpenFlightSceneVisitor aVisitor) Accepts an OpenFlight visitor.intintlong[]getMasks()intbooleanisChildEnabled(int aChildIndex) Returns true if the specified child node is "switched on".voidsetCurrentMask(int aCurrentMask) voidsetMaskCount(int aMaskCount) voidsetMasks(long[] aMasks) voidsetWordsPerMask(int aWordsPerMask) Methods inherited from class com.luciad.format.object3d.openflight.model.TLcdOpenFlightTransformableNode
getTransformation, setTransformationMethods 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:ILcdOpenFlightNodeAccepts an OpenFlight visitor. A typical implementation of this method should callaVisitor.visit(this).- Specified by:
acceptin interfaceILcdOpenFlightNode- Overrides:
acceptin classTLcdOpenFlightTransformableNode- Parameters:
aVisitor- the visitor to accept
-