Русский | English

Class TCastleLine2DBase

Unit

Declaration

type TCastleLine2DBase = class(TCastleAbstractPrimitive)

Description

Base class for shapes that are defined by a set of vertices Points. Inherited classes should override the ReLoad method.) A property editor is provided for the Points vertex set It is also possible to edit a set of vertices from the CGE editor window. To enter edit mode, use "verb" (Edit mode ON) - right-click on the object in the object hierarchy window.

Hierarchy

Overview

Methods

Protected procedure SetLineType(NewLineType:TCastleLineType); virtual;
Public procedure Clear; virtual;
Public procedure CustomSerialization(const SerializationProcess: TSerializationProcess); override;
Public procedure ReLoad; virtual;
Public procedure SavePointsToFile(const FileName:string);
Public procedure LoadPointsFromFile(const FileName:string);
Public function SelfIntersections:boolean;
Public constructor Create(AOwner: TComponent); override;
Public destructor Destroy; override;
Public function PropertySections(const PropertyName: String): TPropertySections; override;

Properties

Public property EditMode: boolean read FEditMode write FEditMode;
Published property LineType: TCastleLineType read FLineType write SetLineType default ltOpen;
Published property Points: TVector2List read FPoints write FPoints;

Description

Methods

Protected procedure SetLineType(NewLineType:TCastleLineType); virtual;
 
Public procedure Clear; virtual;

Delete all points

Public procedure CustomSerialization(const SerializationProcess: TSerializationProcess); override;
 
Public procedure ReLoad; virtual;

Build geometry again. Inherited classes should override this method

Public procedure SavePointsToFile(const FileName:string);

Save points Points to a file

Public procedure LoadPointsFromFile(const FileName:string);

Load points Points from a file

Public function SelfIntersections:boolean;

Checking for self-intersection.

Public constructor Create(AOwner: TComponent); override;
 
Public destructor Destroy; override;
 
Public function PropertySections(const PropertyName: String): TPropertySections; override;
 

Properties

Public property EditMode: boolean read FEditMode write FEditMode;

Is editing mode enabled

Published property LineType: TCastleLineType read FLineType write SetLineType default ltOpen;

Line type (open line, closed line)

Published property Points: TVector2List read FPoints write FPoints;

Points (vertices). Inherited classes should build geometry based on them


Generated by PasDoc 0.16.0.