Class TCurve
Unit
CastleCurves
Declaration
type TCurve = class(TObject)
Description
3D curve, a set of points defined by a continous function Point for arguments within [TBegin, TEnd].
Hierarchy
Overview
Methods
Properties
 |
property TBegin: Single read FTBegin write FTBegin default 0; |
 |
property TEnd: Single read FTEnd write FTEnd default 1; |
 |
property DefaultSegments: Cardinal
read FDefaultSegments write FDefaultSegments default 10; |
Description
Methods
 |
procedure LoadFromElement(const E: TDOMElement); virtual; |
|
 |
procedure SaveToStream(const Stream: TStream); virtual; |
|
 |
function Point(const t: Float): TVector3; virtual; abstract; |
Curve function, for each parameter value determine the 3D point. This determines the actual shape of the curve.
|
 |
function PointOfSegment(i, Segments: Cardinal): TVector3; |
Curve function to work with rendered line segments begin/end points. This is simply a more specialized version of Point, it scales the argument such that you get Point(TBegin) for I = 0 and you get Point(TEnd) for I = Segments.
|
 |
constructor Create; |
|
 |
function BoundingBox: TBox3D; virtual; abstract; |
|
Properties
 |
property TBegin: Single read FTBegin write FTBegin default 0; |
The valid range of curve function argument. Must be TBegin <= TEnd.
|
 |
property TEnd: Single read FTEnd write FTEnd default 1; |
|
 |
property DefaultSegments: Cardinal
read FDefaultSegments write FDefaultSegments default 10; |
Default number of segments, used when rendering by T3D interface (that is, Render(Frustum, TransparentGroup...) method.)
|
Generated by PasDoc 0.15.0.
|