Class TCurveTypesSingleton

Unit

Declaration

type TCurveTypesSingleton = class(TInterfacedObject, ICurveFactory, ICurveTypeIterator, ICurveTypeSelector)

Description

Class-singleton containing information about curve types. Should be inherited from TCompoenent to

Hierarchy

  • TInterfacedObject
  • TCurveTypesSingleton

Overview

Fields

Private FCurrentCurveType: TCurveType;
Private FCurveTypes: TList;
Private FSelectedCurveType: TCurveType;

Methods

Private constructor Init;
Public class function CreateCurveFactory: ICurveFactory;
Public class function CreateCurveTypeIterator: ICurveTypeIterator;
Public class function CreateCurveTypeSelector: ICurveTypeSelector;
Public function EndCurveType: boolean;
Public function GetCurveTypeId: TCurveTypeId;
Public function GetCurveTypeName: string;
Public function GetCurveTypeTag(CurveTypeId: TCurveTypeId): integer;
Public function GetSelectedCurveType: TCurveTypeId;
Public function GetSelectedExtremumMode: TExtremumMode;
Public procedure FirstCurveType;
Public procedure NextCurveType;
Public procedure RegisterCurveType(CurveClass: TCurveClass);
Public procedure SelectCurveType(TypeId: TCurveTypeId);

Description

Fields

Private FCurrentCurveType: TCurveType;

Current curve type used in iteration.

Private FCurveTypes: TList;
 
Private FSelectedCurveType: TCurveType;

Curve type selected by user.

Methods

Private constructor Init;
 
Public class function CreateCurveFactory: ICurveFactory;
 
Public class function CreateCurveTypeIterator: ICurveTypeIterator;
 
Public class function CreateCurveTypeSelector: ICurveTypeSelector;
 
Public function EndCurveType: boolean;
 
Public function GetCurveTypeId: TCurveTypeId;
 
Public function GetCurveTypeName: string;
 
Public function GetCurveTypeTag(CurveTypeId: TCurveTypeId): integer;
 
Public function GetSelectedCurveType: TCurveTypeId;

Returns value of FCurrentCurveType. The value should be checked on Nil.

Public function GetSelectedExtremumMode: TExtremumMode;
 
Public procedure FirstCurveType;

Implementation of ICurveTypeIterator.

Public procedure NextCurveType;
 
Public procedure RegisterCurveType(CurveClass: TCurveClass);

function CreatePointsSet(TypeId: TCurveTypeId): TNamedPointsSet; virtual; abstract;

Public procedure SelectCurveType(TypeId: TCurveTypeId);

Implementation of ICurveTypeSelector.


Generated by PasDoc 0.15.0.