Class TPrecalcCurve

Unit

Declaration

type TPrecalcCurve = class(TSpaceFillingCurve)

Description

Abstract space-filling curve class, helping implementing curves that precalculate points at construction. In descendants, you only need to override GeneratePoints.

Hierarchy

Overview

Methods

Protected procedure GeneratePixels(APixels: PVector2CardinalArray); virtual; abstract;
Public constructor Create(ASizeX, ASizeY: Cardinal); override;
Public destructor Destroy; override;
Public function EndOfPixels: boolean; override;
Public function NextPixel: TVector2Cardinal; override;
Public procedure SkipPixels(SkipCount: Cardinal); override;
Public procedure Reset; override;
Public function PixelsDone: Cardinal; override;

Description

Methods

Protected procedure GeneratePixels(APixels: PVector2CardinalArray); virtual; abstract;

Generate next PixelsCount points. You should generate next PixelsCount points to the Pixels table (it's guaranteed that PixelsCount > 0).

Public constructor Create(ASizeX, ASizeY: Cardinal); override;
 
Public destructor Destroy; override;
 
Public function EndOfPixels: boolean; override;
 
Public function NextPixel: TVector2Cardinal; override;
 
Public procedure SkipPixels(SkipCount: Cardinal); override;
 
Public procedure Reset; override;
 
Public function PixelsDone: Cardinal; override;
 

Generated by PasDoc 0.16.0.