Class TBGRALayerCustomOriginal
Unit
Declaration
type TBGRALayerCustomOriginal = class(TObject)
Description
Abtract class for an original that renders a layer in a layered image
Hierarchy
- TObject
- TBGRALayerCustomOriginal
Overview
Fields
FGuid: TGuid; |
Methods
constructor Create; virtual; |
|
destructor Destroy; override; |
|
class function CanConvertToSVG: boolean; virtual; |
|
function ConvertToSVG(const AMatrix: TAffineMatrix; out AOffset: TPoint): TObject; virtual; |
|
function CreateEditor: TBGRAOriginalEditor; virtual; |
|
function Duplicate: TBGRALayerCustomOriginal; virtual; |
|
function GetRenderBounds(ADestRect: TRect; AMatrix: TAffineMatrix): TRect; virtual; abstract; |
|
function IsInfiniteSurface: boolean; virtual; |
|
class function StorageClassName: RawByteString; virtual; abstract; |
|
function GetGuid: TGuid; |
|
procedure ConfigureEditor(AEditor: TBGRAOriginalEditor); virtual; |
|
procedure LoadFromFile(AFilenameUTF8: string); virtual; |
|
procedure LoadFromResource(AFilename: string); |
|
procedure LoadFromStorage(AStorage: TBGRACustomOriginalStorage); virtual; abstract; |
|
procedure LoadFromStream(AStream: TStream); virtual; |
|
procedure Render(ADest: TBGRABitmap; ARenderOffset: TPoint; AMatrix: TAffineMatrix; ADraft: boolean); virtual; |
|
procedure Render(ADest: TBGRABitmap; AMatrix: TAffineMatrix; ADraft: boolean); virtual; |
|
procedure SaveToFile(AFilenameUTF8: string); virtual; |
|
procedure SaveToStorage(AStorage: TBGRACustomOriginalStorage); virtual; abstract; |
|
procedure SaveToStream(AStream: TStream); virtual; |
|
procedure NotifyChange(ABounds: TRectF; ADiff: TBGRAOriginalDiff = nil); overload; |
|
procedure NotifyChange(ADiff: TBGRAOriginalDiff = nil); overload; |
|
procedure NotifyEditorChange; |
|
procedure SetGuid(AValue: TGuid); |
Properties
property DiffExpected: boolean read GetDiffExpected; |
|
property Guid: TGuid read GetGuid write SetGuid; |
|
property OnChange: TOriginalChangeEvent read FOnChange write SetOnChange; |
|
property OnEditingChange: TOriginalEditingChangeEvent read FOnEditingChange write FOnEditingChange; |
|
property RenderStorage: TBGRACustomOriginalStorage read FRenderStorage write SetRenderStorage; |
Description
Fields
FGuid: TGuid; |
|
This item has no description. |
Methods
constructor Create; virtual; |
|
This item has no description. |
destructor Destroy; override; |
|
This item has no description. |
class function CanConvertToSVG: boolean; virtual; |
|
This item has no description. |
function ConvertToSVG(const AMatrix: TAffineMatrix; out AOffset: TPoint): TObject; virtual; |
|
This item has no description. |
function CreateEditor: TBGRAOriginalEditor; virtual; |
|
This item has no description. |
function Duplicate: TBGRALayerCustomOriginal; virtual; |
|
This item has no description. |
function GetRenderBounds(ADestRect: TRect; AMatrix: TAffineMatrix): TRect; virtual; abstract; |
|
This item has no description. |
function IsInfiniteSurface: boolean; virtual; |
|
This item has no description. |
class function StorageClassName: RawByteString; virtual; abstract; |
|
This item has no description. |
function GetGuid: TGuid; |
|
This item has no description. |
procedure ConfigureEditor(AEditor: TBGRAOriginalEditor); virtual; |
|
This item has no description. |
procedure LoadFromFile(AFilenameUTF8: string); virtual; |
|
This item has no description. |
procedure LoadFromResource(AFilename: string); |
|
This item has no description. |
procedure LoadFromStorage(AStorage: TBGRACustomOriginalStorage); virtual; abstract; |
|
This item has no description. |
procedure LoadFromStream(AStream: TStream); virtual; |
|
This item has no description. |
procedure Render(ADest: TBGRABitmap; ARenderOffset: TPoint; AMatrix: TAffineMatrix; ADraft: boolean); virtual; |
|
This item has no description. |
procedure Render(ADest: TBGRABitmap; AMatrix: TAffineMatrix; ADraft: boolean); virtual; |
|
one of the two Render functions must be overriden |
procedure SaveToFile(AFilenameUTF8: string); virtual; |
|
This item has no description. |
procedure SaveToStorage(AStorage: TBGRACustomOriginalStorage); virtual; abstract; |
|
This item has no description. |
procedure SaveToStream(AStream: TStream); virtual; |
|
This item has no description. |
procedure NotifyChange(ABounds: TRectF; ADiff: TBGRAOriginalDiff = nil); overload; |
|
This item has no description. |
procedure NotifyChange(ADiff: TBGRAOriginalDiff = nil); overload; |
|
This item has no description. |
procedure NotifyEditorChange; |
|
This item has no description. |
procedure SetGuid(AValue: TGuid); |
|
This item has no description. |
Properties
property DiffExpected: boolean read GetDiffExpected; |
|
This item has no description. |
property Guid: TGuid read GetGuid write SetGuid; |
|
This item has no description. |
property OnChange: TOriginalChangeEvent read FOnChange write SetOnChange; |
|
This item has no description. |
property OnEditingChange: TOriginalEditingChangeEvent read FOnEditingChange write FOnEditingChange; |
|
This item has no description. |
property RenderStorage: TBGRACustomOriginalStorage read FRenderStorage write SetRenderStorage; |
|
This item has no description. |