Class TBGRALayerCustomOriginal

Unit

Declaration

type TBGRALayerCustomOriginal = class(TObject)

Description

Abtract class for an original that renders a layer in a layered image

Hierarchy

Overview

Fields

Protected FGuid: TGuid;

Methods

Public constructor Create; virtual;
Public destructor Destroy; override;
Public class function CanConvertToSVG: boolean; virtual;
Public function ConvertToSVG(const AMatrix: TAffineMatrix; out AOffset: TPoint): TObject; virtual;
Public function CreateEditor: TBGRAOriginalEditor; virtual;
Public function Duplicate: TBGRALayerCustomOriginal; virtual;
Public function GetRenderBounds(ADestRect: TRect; AMatrix: TAffineMatrix): TRect; virtual; abstract;
Public function IsInfiniteSurface: boolean; virtual;
Public class function StorageClassName: RawByteString; virtual; abstract;
Protected function GetGuid: TGuid;
Public procedure ConfigureEditor(AEditor: TBGRAOriginalEditor); virtual;
Public procedure LoadFromFile(AFilenameUTF8: string); virtual;
Public procedure LoadFromResource(AFilename: string);
Public procedure LoadFromStorage(AStorage: TBGRACustomOriginalStorage); virtual; abstract;
Public procedure LoadFromStream(AStream: TStream); virtual;
Public procedure Render(ADest: TBGRABitmap; ARenderOffset: TPoint; AMatrix: TAffineMatrix; ADraft: boolean); virtual;
Public procedure Render(ADest: TBGRABitmap; AMatrix: TAffineMatrix; ADraft: boolean); virtual;
Public procedure SaveToFile(AFilenameUTF8: string); virtual;
Public procedure SaveToStorage(AStorage: TBGRACustomOriginalStorage); virtual; abstract;
Public procedure SaveToStream(AStream: TStream); virtual;
Protected procedure NotifyChange(ABounds: TRectF; ADiff: TBGRAOriginalDiff = nil); overload;
Protected procedure NotifyChange(ADiff: TBGRAOriginalDiff = nil); overload;
Protected procedure NotifyEditorChange;
Protected procedure SetGuid(AValue: TGuid);

Properties

Protected property DiffExpected: boolean read GetDiffExpected;
Public property Guid: TGuid read GetGuid write SetGuid;
Public property OnChange: TOriginalChangeEvent read FOnChange write SetOnChange;
Public property OnEditingChange: TOriginalEditingChangeEvent read FOnEditingChange write FOnEditingChange;
Public property RenderStorage: TBGRACustomOriginalStorage read FRenderStorage write SetRenderStorage;

Description

Fields

Protected FGuid: TGuid;

This item has no description.

Methods

Public constructor Create; virtual;

This item has no description.

Public destructor Destroy; override;

This item has no description.

Public class function CanConvertToSVG: boolean; virtual;

This item has no description.

Public function ConvertToSVG(const AMatrix: TAffineMatrix; out AOffset: TPoint): TObject; virtual;

This item has no description.

Public function CreateEditor: TBGRAOriginalEditor; virtual;

This item has no description.

Public function Duplicate: TBGRALayerCustomOriginal; virtual;

This item has no description.

Public function GetRenderBounds(ADestRect: TRect; AMatrix: TAffineMatrix): TRect; virtual; abstract;

This item has no description.

Public function IsInfiniteSurface: boolean; virtual;

This item has no description.

Public class function StorageClassName: RawByteString; virtual; abstract;

This item has no description.

Protected function GetGuid: TGuid;

This item has no description.

Public procedure ConfigureEditor(AEditor: TBGRAOriginalEditor); virtual;

This item has no description.

Public procedure LoadFromFile(AFilenameUTF8: string); virtual;

This item has no description.

Public procedure LoadFromResource(AFilename: string);

This item has no description.

Public procedure LoadFromStorage(AStorage: TBGRACustomOriginalStorage); virtual; abstract;

This item has no description.

Public procedure LoadFromStream(AStream: TStream); virtual;

This item has no description.

Public procedure Render(ADest: TBGRABitmap; ARenderOffset: TPoint; AMatrix: TAffineMatrix; ADraft: boolean); virtual;

This item has no description.

Public procedure Render(ADest: TBGRABitmap; AMatrix: TAffineMatrix; ADraft: boolean); virtual;

one of the two Render functions must be overriden

Public procedure SaveToFile(AFilenameUTF8: string); virtual;

This item has no description.

Public procedure SaveToStorage(AStorage: TBGRACustomOriginalStorage); virtual; abstract;

This item has no description.

Public procedure SaveToStream(AStream: TStream); virtual;

This item has no description.

Protected procedure NotifyChange(ABounds: TRectF; ADiff: TBGRAOriginalDiff = nil); overload;

This item has no description.

Protected procedure NotifyChange(ADiff: TBGRAOriginalDiff = nil); overload;

This item has no description.

Protected procedure NotifyEditorChange;

This item has no description.

Protected procedure SetGuid(AValue: TGuid);

This item has no description.

Properties

Protected property DiffExpected: boolean read GetDiffExpected;

This item has no description.

Public property Guid: TGuid read GetGuid write SetGuid;

This item has no description.

Public property OnChange: TOriginalChangeEvent read FOnChange write SetOnChange;

This item has no description.

Public property OnEditingChange: TOriginalEditingChangeEvent read FOnEditingChange write FOnEditingChange;

This item has no description.

Public property RenderStorage: TBGRACustomOriginalStorage read FRenderStorage write SetRenderStorage;

This item has no description.