Class TSwitchNode
Unit
X3DNodes
Declaration
type TSwitchNode = class(TAbstractGroupingNode)
Description
Choose only one (or none) of the child nodes for processing. This allows to choose between a number of nodes for processing (rendering, collision detection), and/or to hide some nodes.
Compatibility node: this class is used for both VRML 97 and X3D. Although field name changed for X3D (in VRML 97, "children" was called "choice"), this is handled seamlessly using our TX3DFieldOrEvent.AddAlternativeField mechanism. In other words, programmer simply works with FdChildren field, and when reading/writing VRML file we take care to actually use either "children" or "choice" name, depending on used VRML version.
Hierarchy
Overview
Methods
Properties
Description
Methods
 |
constructor Create(const AX3DName: String = ''; const ABaseUrl: String = ''); override; |
|
 |
class function ForVRMLVersion(const Version: TX3DVersion): boolean; override; |
|
 |
procedure CreateNode; override; |
|
 |
class function ClassX3DType: string; override; |
|
Properties
 |
property FdWhichChoice: TSFInt32 read FFdWhichChoice; |
Internal wrapper for property WhichChoice. This wrapper API may change, we advise to access simpler WhichChoice instead.
|
 |
property WhichChoice: Integer read GetWhichChoice write SetWhichChoice; |
|
Generated by PasDoc 0.16.0.