Class TModelFormat
Unit
Declaration
type TModelFormat = class(TObject)
Description
Information about a model format, used with RegisterModelFormat.
Hierarchy
- TObject
 - TModelFormat
 
Overview
Fields
![]()  | 
OnLoad: TModelLoadEvent; | 
![]()  | 
OnLoadForceMemoryStream: Boolean; | 
![]()  | 
OnSave: TModelSaveEvent; | 
![]()  | 
MimeTypes: TCastleStringList; | 
![]()  | 
FileFilterName: String; | 
![]()  | 
Extensions: TCastleStringList; | 
Methods
![]()  | 
constructor Create; | 
![]()  | 
destructor Destroy; override; | 
Description
Fields
![]()  | 
OnLoad: TModelLoadEvent; | 
| 
 How to load given model format (from TStream to TX3DRootNode). May be unassigned if we cannot load it.  | |
![]()  | 
OnLoadForceMemoryStream: Boolean; | 
| 
 
Does the OnLoad event require a TStream within which we can freely seek. If   | |
![]()  | 
OnSave: TModelSaveEvent; | 
| 
 How to save given model format (from TX3DRootNode to TStream). May be unassigned if we cannot save it.  | |
![]()  | 
MimeTypes: TCastleStringList; | 
| 
 List of MIME types. At least one MIME type must be provided here, at the time you call RegisterModelFormat.  | |
![]()  | 
FileFilterName: String; | 
| 
 File filter name, like "X3D classic (*.x3dv)". Must be non-empty. It's your choice whether to show here extensions, and if yes -> it's your responsibility to make sure they match information in Extensions and map to one of the MIME types specified in MimeTypes. To map extensions -> MIME types, add the map to UriMimeExtensions.  | |
![]()  | 
Extensions: TCastleStringList; | 
| 
 
List of file  If the model filenames contains multiple  It's your responsibility to make sure that all  To map   | |
Methods
![]()  | 
constructor Create; | 
![]()  | 
destructor Destroy; override; | 
Generated by PasDoc 0.16.0.
