Castle Game EngineIntroduction Units Class Hierarchy Classes, Interfaces, Objects and Records Types Variables Constants Functions and Procedures Identifiers
|
Class TControlPointsCurve
Unit
CastleCurves
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
Methods
 |
procedure LoadFromElement(const E: TDOMElement); override; |
 |
procedure SaveToStream(const Stream: TStream); override; |
 |
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.'; |
 |
function BoundingBox: TBox3D; override; |
 |
procedure UpdateControlPoints; virtual; |
 |
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.'; |
 |
constructor Create(AOwner: TComponent); override; |
 |
constructor CreateFromEquation(CasScriptCurve: TCasScriptCurve; ControlPointsCount: Cardinal); |
 |
destructor Destroy; override; |
Properties
 |
property ControlPointsColor: TCastleColor read FControlPointsColor write FControlPointsColor; deprecated 'Do not use this, as you should not use RenderControlPoints method.'; |
 |
property ConvexHullColor: TCastleColor read FConvexHullColor write FConvexHullColor; deprecated 'Do not use this, as you should not use RenderConvexHull method.'; |
Description
Fields
Methods
 |
procedure LoadFromElement(const E: TDOMElement); override; |
|
|
 |
procedure SaveToStream(const Stream: TStream); override; |
|
|
 |
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.
|
 |
function BoundingBox: TBox3D; override; |
|
Bounding box of the curve. In this class, it is simply a BoundingBox of ControlPoints.
|
 |
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.
|
 |
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.
|
 |
constructor Create(AOwner: TComponent); override; |
|
Constructor.
|
 |
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.
|
 |
destructor Destroy; override; |
|
|
Properties
 |
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. |
 |
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.
|