Class TControlPointsCurve

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TControlPointsCurve = class(TCurve)

Description

A basic abstract class for curves determined my some set of ControlPoints. Note: it is not defined in this class any correspondence between values of T (argument for Point function) and ControlPoints.

Hierarchy

Overview

Fields

Public ControlPoints: TVector3SingleList;

Methods

Protected procedure LoadFromElement(const E: TDOMElement); override;
Protected procedure SaveToStream(const Stream: TStream); override;
Public procedure RenderControlPoints; deprecated 'Do not render stuff directly by this method. Instead create TCastleScene, initialize it''s X3D graph based on ControlPoints, and add it to the SceneManager.Items.';
Public function BoundingBox: TBox3D; override;
Public procedure UpdateControlPoints; virtual;
Public procedure RenderConvexHull; deprecated 'Do not render stuff directly by this method. Instead create TCastleScene, initialize it''s X3D graph based on ConvexHullPoints, and add it to the SceneManager.Items.';
Public constructor Create(AOwner: TComponent); override;
Public constructor CreateFromEquation(CasScriptCurve: TCasScriptCurve; ControlPointsCount: Cardinal);
Public destructor Destroy; override;

Properties

Public property ControlPointsColor: TCastleColor read FControlPointsColor write FControlPointsColor; deprecated 'Do not use this, as you should not use RenderControlPoints method.';
Public property ConvexHullColor: TCastleColor read FConvexHullColor write FConvexHullColor; deprecated 'Do not use this, as you should not use RenderConvexHull method.';

Description

Fields

Public ControlPoints: TVector3SingleList;
 

Methods

Protected procedure LoadFromElement(const E: TDOMElement); override;
 
Protected procedure SaveToStream(const Stream: TStream); override;
 
Public procedure RenderControlPoints; deprecated 'Do not render stuff directly by this method. Instead create TCastleScene, initialize it''s X3D graph based on ControlPoints, and add it to the SceneManager.Items.';

Warning: this symbol is deprecated: Do not render stuff directly by this method. Instead create TCastleScene, initialize it's X3D graph based on ControlPoints, and add it to the SceneManager.Items.

Render control points, using ControlPointsColor.

Public function BoundingBox: TBox3D; override;

Bounding box of the curve. In this class, it is simply a BoundingBox of ControlPoints.

Public procedure UpdateControlPoints; virtual;

Always after changing ControlPoints or TBegin or TEnd and before calling Point, BoundingBox (and anything that calls them, e.g. Render calls Point) call this method. It recalculates necessary things. ControlPoints.Count must be >= 2.

When overriding: always call inherited first.

Public procedure RenderConvexHull; deprecated 'Do not render stuff directly by this method. Instead create TCastleScene, initialize it''s X3D graph based on ConvexHullPoints, and add it to the SceneManager.Items.';

Warning: this symbol is deprecated: Do not render stuff directly by this method. Instead create TCastleScene, initialize it's X3D graph based on ConvexHullPoints, and add it to the SceneManager.Items.

Render convex hull polygon, using ConvexHullColor. Ignores Z-coord of ControlPoints.

Public constructor Create(AOwner: TComponent); override;

Constructor.

Public constructor CreateFromEquation(CasScriptCurve: TCasScriptCurve; ControlPointsCount: Cardinal);

Calculate initial control points by sampling given TCasScriptCurve, with analytical curve equation. TBegin and TEnd are copied from CasScriptCurve.

Public destructor Destroy; override;
 

Properties

Public property ControlPointsColor: TCastleColor read FControlPointsColor write FControlPointsColor; deprecated 'Do not use this, as you should not use RenderControlPoints method.';

Warning: this symbol is deprecated: Do not use this, as you should not use RenderControlPoints method.

 
Public property ConvexHullColor: TCastleColor read FConvexHullColor write FConvexHullColor; deprecated 'Do not use this, as you should not use RenderConvexHull method.';

Warning: this symbol is deprecated: Do not use this, as you should not use RenderConvexHull method.

 

Generated by PasDoc 0.14.0.