Class TAbstractTouchSensorNode
Unit
X3DNodes
Declaration
type TAbstractTouchSensorNode = class(TAbstractPointingDeviceSensorNode)
Description
Base type for all touch-style pointing device sensors.
Hierarchy
Overview
Methods
|
constructor Create(const AX3DName: string = ''; const ABaseUrl: string = ''); override; |
|
procedure CreateNode; override; |
|
class function ClassX3DType: string; override; |
Properties
Description
Methods
|
constructor Create(const AX3DName: string = ''; const ABaseUrl: string = ''); override; |
|
|
procedure CreateNode; override; |
Automatically generated node properties.
Do not edit this file manually! To add new properties: - add them to the text files in tools/internal/x3d-nodes-to-pascal/nodes-specification/ , - and regenerate include files by running x3d-nodes-to-pascal
|
|
class function ClassX3DType: string; override; |
|
Properties
|
property OnClick: TNotifyEvent read FOnClick write FOnClick; |
Event generated when we register a "click" on the shapes within the same group as this TouchSensor node. The "click" definition corresponds to the X3D touchTime event generation.
Note that, in order to register clicks, TCastleScene must be configured to process events (TCastleSceneCore.ProcessEvents) and be able to detect clicks on particular shapes (TCastleSceneCore.Spatial should contain ssDynamicCollisions). Usually you will initialize scene like this:
MyScene := TCastleScene.Create(...);
MyScene.Load(...);
MyScene.Spatial := [ssRendering, ssDynamicCollisions];
MyScene.ProcessEvents := true;
|
Generated by PasDoc 0.16.0.