Castle Game Engine: CastleShapes: Class TShapeTreeSwitch

# Class TShapeTreeSwitch
Description | Hierarchy | Fields | Methods | Properties
## Unit CastleShapes ## Declaration `type TShapeTreeSwitch = class(TShapeTreeGroup)` ## Description Node of the TShapeTree representing an alternative, choosing one (or none) child from it's children list as active. It's ideal for representing the VRML >= 2.0 Switch node (not possible for VRML 1.0 Switch node, as it may affect also other nodes after Switch). Actually, it even has a SwitchNode link that is used to decide which child to choose (using SwitchNode.FdWhichChoice). ## Hierarchy TObject TShapeTree TShapeTreeGroup TShapeTreeSwitch ## Overview ### Methods
| `procedure Traverse(Func: TShapeTraverseFunc; const OnlyActive: boolean; const OnlyVisible: boolean = false; const OnlyCollidable: boolean = false); override;`
| `function ShapesCount(const OnlyActive: boolean; const OnlyVisible: boolean = false; const OnlyCollidable: boolean = false): Cardinal; override;`
### Properties
| `property SwitchNode: TSwitchNode read FSwitchNode write FSwitchNode;`
## Description ### Methods
| `procedure Traverse(Func: TShapeTraverseFunc; const OnlyActive: boolean; const OnlyVisible: boolean = false; const OnlyCollidable: boolean = false); override;`
| `function ShapesCount(const OnlyActive: boolean; const OnlyVisible: boolean = false; const OnlyCollidable: boolean = false): Cardinal; override;`
### Properties
| `property SwitchNode: TSwitchNode read FSwitchNode write FSwitchNode;`
Generated by PasDoc 0.13.0 on 2015-06-15 04:43:12