Class TSwitchNode

Unit

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

Protected function DirectEnumerateActive(Func: TEnumerateChildrenFunction): Pointer; override;
Public constructor Create(const AX3DName: String = ''; const ABaseUrl: String = ''); override;
Public class function ForVRMLVersion(const Version: TX3DVersion): boolean; override;
Public function TransformationChange: TNodeTransformationChange; override;
Public procedure CreateNode; override;
Public class function ClassX3DType: string; override;

Properties

Public property FdWhichChoice: TSFInt32 read FFdWhichChoice;
Public property WhichChoice: Integer read GetWhichChoice write SetWhichChoice;

Description

Methods

Protected function DirectEnumerateActive(Func: TEnumerateChildrenFunction): Pointer; override;
 
Public constructor Create(const AX3DName: String = ''; const ABaseUrl: String = ''); override;
 
Public class function ForVRMLVersion(const Version: TX3DVersion): boolean; override;
 
Public function TransformationChange: TNodeTransformationChange; override;
 
Public procedure CreateNode; override;
 
Public class function ClassX3DType: string; override;
 

Properties

Public property FdWhichChoice: TSFInt32 read FFdWhichChoice;

Internal wrapper for property WhichChoice. This wrapper API may change, we advise to access simpler WhichChoice instead.

Public property WhichChoice: Integer read GetWhichChoice write SetWhichChoice;
 

Generated by PasDoc 0.16.0.