Gorilla.DAE.Model
Unit Gorilla.DAE.Model.pasClasses
- TDAETexture = class ( TObject )
- TGEEffect = class ( TObject )
- TDAEMesh = class ( TMeshDef )
- TDAEVisualNode = class ( TObject )
- TDAEResolvedNode = class ( TDAEVisualNode )
- TDAEJointNode = class ( TDAEVisualNode )
- TDAEJoint = class ( TJointDef )
- TDAEJointRef = class ( TJointRefDef )
- TDAESkin = class ( TSkinDef )
- TDAEController = class ( TControllerDef )
- TDAEVisualScene = class ( TObject )
- TDAEAnimationStage = class ( TAnimationStageDef )
- TDAEModel = class ( TModelDef )
- EDAEError = class ( Exception )
Records
- record TDAEVertexSource
- record TDAESurface
- record TGEMap
- record TSourceSemantic
- record TDAEVertices
- record TDAEVertexWeight
Enumerations
- enum TDAEExporter = ( ThreeDStudioMax, Maya, Unknown ) ;
- enum TGEPhongMapMode = ( Emission, Ambient, Diffuse, Specular, Shininess, Reflective, Reflectivity, Transparent, Transparency, Displacement ) ;
- enum TSourceMode = ( Vertex, Normal, BiNormal, Tangent, TexCoord, Color ) ;
- enum TDAEUpAxisType = ( X, Y, Z ) ;
Mics. types
- type TDAEMeshDynArray = array of TDAEMesh;
- type TDAEControllerDynArray = array of TDAEController;
- type TDAELightDynArray = array of TLightDef;
- type TDAECameraDynArray = array of TCameraDef;
- type PDAEVertexSource = pointer to TDAEVertexSource;
- type TDAESurfaceArray = array of TDAESurface;
- type TDAEVertexSourceDynArray = array of TDAEVertexSource;
- type PSourceSemantic = pointer to TSourceSemantic;
- type TSourceSemantics = array of TSourceSemantic;
- type TSourceSemanticDynArray = array of TSourceSemantic;
- type TSourceSemanticList = array of TSourceSemantic;
- type TDAEVisualNodeDynArray = array of TDAEVisualNode;
- type TDAEJointNodeDynArray = array of TDAEJointNode;
- type PDAEVertexWeight = pointer to TDAEVertexWeight;
- type TDAEVisualSceneDynArray = array of TDAEVisualScene;
TDAETexture
Ancestors
Members
TDAEMesh
Ancestors
Members
Fields
Methods
Properties
TDAEVisualNode
Ancestors
Members
Fields
- protected FTransformation :
TMatrix3D
- protected FMesh :
TDAEMeshDynArray
- protected FLights :
TDAELightDynArray
- protected FCameras :
TDAECameraDynArray
- protected FChildren :
TDAEVisualNodeDynArray
- protected FId :
string
- protected FName :
string
- protected FSid :
string
- protected FNodeUrls :
:TDAEVisualNode.:1
- protected FOwner :
TObject
- protected FParent :
TDAEVisualNode
Methods
- public constructor Create ( AParent : TDAEVisualNode ) ;
- public destructor Destroy ( ) ;
- public function FindChildNode
(
const
AIdent :
string
)
: TDAEVisualNode
;
Find child node by id, name OR sid
- public function FindChildNodeById
(
const
AId :
string
)
: TDAEVisualNode
;
Find child node only by id attribute
- public function FindChildNodeByName
(
const
AName :
string
)
: TDAEVisualNode
;
Find child node only by name attribute
- public function FindChildNodeBySid
(
const
ASid :
string
)
: TDAEVisualNode
;
Find child node only by sid attribute
- public function GetTransformation
(
)
: TMatrix3D
;
virtual;
Returns the absolute transformation matrix by climbing upwards the node tree and multiplying all matrices in hierarchy.
Properties
TDAEResolvedNode
A resolved visual node is a reference to another node in the global tree. Due to multiple node usage we need a special node type for referencing.
Ancestors
Members
TDAEJointNode
Ancestors
TDAEJoint
Ancestors
TDAEJointRef
Ancestors
Members
TDAESkin
Ancestors
Members
TDAEController
Ancestors
Members
Fields
- private FArmature :
string
- private FHumanoidNode :
TDAEVisualNode
- private FJointNodes :
TDAEJointNodeDynArray
Methods
- public function GetJointIndexById ( const AId : string ) : Integer ;
- public procedure LoadJoints ( const AModel : TDAEModel; const AHumanoidNode : TDAEVisualNode ) ;
- public procedure GetAffectedJointVerticesAndWeights ( const AJoint : TJointRefDef; out AVertices : TIntegerDynArray; out AWeights : TFloatDynArray ) ;
Properties
TDAEVisualScene
Ancestors
Members
Fields
Properties
TDAEAnimationStage
Ancestors
Members
TDAEModel
Ancestors
Members
Fields
- private FExporter :
TDAEExporter
- private FUpAxis :
TDAEUpAxisType
- private FImageList :
TObjectList<Gorilla.DAE.Model.TDAETexture>
- private FEffects :
:TDAEModel.:1
- private FModels :
:TDAEModel.:2
- private FAllNodes :
TDAEVisualNodeDynArray
- private FSceneList :
TDAEVisualSceneDynArray
- private FCurrentHumanoid :
THumanoidDef
- private FDefaultMaterial :
TMaterialDef
- private FFormatSettings :
TFormatSettings
Methods
- public constructor Create ( const AOwner : TMeshDef; const APackage : TObject ) ;
- public destructor Destroy ( ) ;
- private function GetVertexSource ( const AVertex : TSourceSemantics; const ASemantics : TSourceSemantics ) : TVertexCache ; virtual;
- private function LoadPolygons ( const AParent : TDAEMesh; ASubMesh : IXMLPolygons_type; const AVertex : TSourceSemantics; const ASources : TDAEVertexSourceDynArray; const AIndex : Integer; const AIsSubMesh : Boolean ) : TDAEMesh ;
- private function LoadTriangles ( const AParent : TDAEMesh; ASubMesh : IXMLTriangles_type; const AVertex : TSourceSemantics; const ASources : TDAEVertexSourceDynArray; const AIndex : Integer; const AIsSubMesh : Boolean ) : TDAEMesh ;
- private function LoadPolylist ( const AParent : TDAEMesh; ASubMesh : IXMLPolylist_type; const AVertex : TSourceSemantics; const ASources : TDAEVertexSourceDynArray; const AIndex : Integer; const AIsSubMesh : Boolean ) : TDAEMesh ;
- private function FindEffectById ( const AName : string ) : TGEEffect ;
- private function FindImageById ( const AName : string ) : TDAETexture ;
- private function FindMeshById ( const AName : string; const AThrowException : Boolean ) : TDAEMesh ; virtual;
- private function FindNode ( const AIdent : string ) : TDAEVisualNode ;
- private function FindNodeById ( const AName : string; const AThrowExcept : Boolean = True ) : TDAEVisualNode ;
- private function FindSourceNode ( AList : IXMLSource_typeList; const AId : string ) : IXMLSource_type ;
- private function GetMesh ( AGeometry : IXMLGeometry_type ) : TDAEMesh ; overload;
- private function GetLight ( ALight : IXMLLight_type ) : TLightDef ;
- private function GetCamera ( ACamera : IXMLCamera_type ) : TCameraDef ;
- private function GetImage ( AImage : IXMLImage_type ) : TDAETexture ;
- private function GetMaterial ( AMaterial : IXMLMaterial_type ) : TMaterialDef ;
- private function GetEffect ( AEffect : IXMLEffect_type ) : TGEEffect ;
- private function GetScene ( ACollada : IXMLCOLLADA; AScene : IXMLVisual_scene_type ) : TDAEVisualScene ;
- private function GetNode ( ANode : IXMLNode_type; const AParentNode : TDAEVisualNode; const AParentJoint : TDAEJoint ) : TDAEVisualNode ;
- private procedure AfterGetNode ( ACollada : IXMLCOLLADA; ANode : IXMLNode_type ) ;
- private function GetSkin ( const AController : TDAEController; ASkin : IXMLSkin_type ) : TDAESkin ;
- private function GetController ( AController : IXMLController_type ) : TDAEController ;
- private function GetAnimation ( AAnimation : IXMLAnimation_type ) : TDAEAnimationStage ;
- private procedure AddNode ( const ANode : TDAEVisualNode ) ;
- private procedure ResolveNodeUrls ( ) ;
- private procedure ImportFromLightLib ( ALightLib : IXMLLibrary_lights_type ) ;
- private procedure ImportFromCameraLib ( ACameraLib : IXMLLibrary_cameras_type ) ;
- private procedure ImportFromGeometryLib ( AGeometryLib : IXMLLibrary_geometries_type ) ;
- private procedure ImportFromImageLib ( AImageLib : IXMLLibrary_images_type ) ;
- private procedure ImportFromMaterialLib ( AMaterialLib : IXMLLibrary_materials_type ) ;
- private procedure ImportFromEffectLib ( AEffectLib : IXMLLibrary_effects_type ) ;
- private procedure ImportFromSceneLib ( ACollada : IXMLCOLLADA; ASceneLib : IXMLLibrary_visual_scenes_type ) ;
- private procedure ImportFromNodeLib ( ACollada : IXMLCOLLADA; ANodesLib : IXMLLibrary_nodes_type ) ;
- private procedure ImportExporter ( AAssetLib : IXMLAsset_type ) ;
- private procedure ImportFromCot ( var AMap : TGEMap; AMapCot : IXMLFx_common_color_or_texture_type; const ASurfaces : TDAESurfaceArray ) ;
- private procedure ImportFromAnimationsLib ( AAnimationsLib : IXMLLibrary_animations_type ) ;
- private procedure ResolveAnimationReference ( const AAnim : TAnimationDef ) ;
- private procedure ResolveAnimationReferences ( ) ;
- public procedure LoadFromStream ( const AStream : TStream; const APath : string; AOpts : TGorillaLoadOptions ) ; virtual;
- public procedure LoadFromFile ( const AFileName : string; AOpts : TGorillaLoadOptions ) ; virtual;
- public function AddAnimationFromStream ( AStream : TStream; const AFileName : string ) : TAnimationDef ; virtual;