Gorilla.Exporter
Unit Gorilla.Exporter.pasClasses
- EGorillaExportException = class ( Exception )
- TGorillaExporter = class ( TObject )
Mics. types
- type TGorillaExporterClass = class of TGorillaExporter;
TGorillaExporter
Basis exporter class. Ancestor for all export formats.
Remarks
Get the specific exporter, depending on a registered file-extension.uses Gorilla.STL.Exporter; LExporter := TGorillaExporter.GetExporter('.stl');Setup exporter specific settings.
TGorillaSTLExporter(LExporter).Binary := true;Afterwards call SaveToFile or SaveToStream method.
LExporter.SaveToFile(LMyModelDef, 'c:\model.stl');
Remarks
To request all registered exportes use: TGorillaExporter.FileTypesAncestors
Members
Fields
Methods
- public constructor Create ( ) ;
- public destructor Destroy ( ) ;
- protected procedure DoOnExporterNotify ( ASender : TObject; const AItem : TGorillaExporter; AAction : TCollectionNotification ) ; class;
- class private procedure Create@ ( ) ; class constructor noself;
- class private procedure Destroy@ ( ) ; class destructor noself;
- public function GetExporter ( const AExt : string ) : TGorillaExporter ; class virtual;
- public procedure RegisterExporter ( const AExt : string; const AExporter : TGorillaExporter ) ; class overload virtual;
- public procedure RegisterExporter ( const AExt : string; const AExporter : TGorillaExporterClass ) ; class overload virtual;
- public procedure UnregisterExporter ( const AExt : string; const AExporter : TGorillaExporterClass ) ; class virtual;
- public procedure SaveToFile ( const AModel : TModelDef; const AFileName : string ) ; abstract virtual;
- public procedure SaveToStream ( const AModel : TModelDef; const AStream : TStream ) ; abstract virtual;