IDatasmithMeshElement defines an actual geometry. 更多...
#include <IDatasmithSceneElements.h>
类 IDatasmithMeshElement 继承关系图:Public 成员函数 | |
| virtual float | GetArea () const =0 |
| Get the total surface area | |
| virtual float | GetDepth () const =0 |
| Get the bounding box depth | |
| virtual FVector | GetDimensions () const =0 |
| Get the bounding box dimension of the mesh, in a vector in the form of (Width, Height, Depth ) | |
| virtual const TCHAR * | GetFile () const =0 |
| Get the output filename, it can be absolute or relative to the scene file | |
| virtual FMD5Hash | GetFileHash () const =0 |
| Return a MD5 hash of the content of the Mesh Element. 更多... | |
| virtual float | GetHeight () const =0 |
| Get the bounding box height | |
| virtual int32 | GetLightmapCoordinateIndex () const =0 |
| Get the UV channel that will be used for the lightmap | |
| virtual int32 | GetLightmapSourceUV () const =0 |
| Get the source UV channel that will be used at import to generate the lightmap UVs | |
| virtual const TCHAR * | GetMaterial (int32 SlotId) const =0 |
| Get the name of the material mapped to slot Id, return nullptr if slot isn't mapped | |
| virtual TSharedPtr< const IDatasmithMaterialIDElement > | GetMaterialSlotAt (int32 Index) const =0 |
| Get the material mapping for slot Index | |
| virtual int32 | GetMaterialSlotCount () const =0 |
| Get the number of material slot set on this mesh | |
| virtual float | GetWidth () const =0 |
| Get the bounding box width | |
| virtual void | SetDimensions (const float InArea, const float InWidth, const float InHeight, const float InDepth)=0 |
| Set surface area and bounding box dimensions to be used on lightmap size calculation. 更多... | |
| virtual void | SetFile (const TCHAR *InFile)=0 |
| Set the output filename, it can be absolute or relative to the scene file | |
| virtual void | SetFileHash (FMD5Hash Hash)=0 |
| Set the MD5 hash of the current mesh file. 更多... | |
| virtual void | SetLightmapCoordinateIndex (int32 UVChannel)=0 |
| Set the UV channel that will be used for the lightmap Note: If the lightmap coordinate index is something greater than -1 it will make the importer skip the lightmap generation | |
| virtual void | SetLightmapSourceUV (int32 UVChannel)=0 |
| Set the source UV channel that will be used at import to generate the lightmap UVs | |
| virtual void | SetMaterial (const TCHAR *MaterialPathName, int32 SlotId)=0 |
| Set the material slot Id to use the material MaterialPathName | |
Public 成员函数 继承自 IDatasmithElement | |
| virtual FMD5Hash | CalculateElementHash (bool bForce)=0 |
| Return a MD5 hash of the content of the Element. 更多... | |
| virtual const TCHAR * | GetLabel () const =0 |
| Gets the element label used in the UI | |
| virtual const TCHAR * | GetName () const =0 |
| Gets the element name | |
| virtual bool | IsA (EDatasmithElementType Type) const =0 |
| returns if this DatasmithElement is of a specified type | |
| virtual bool | IsSubType (uint64 SubType) const =0 |
| returns if this DatasmithElement is of a specified subtype of its EDatasmithElementType | |
| virtual void | SetLabel (const TCHAR *InLabel)=0 |
| Sets the element label used in the UI | |
| virtual void | SetName (const TCHAR *InName)=0 |
| Sets the element name | |
Public 成员函数 继承自 DirectLink::ISceneGraphNode | |
| FSceneGraphId | GetNodeId () const |
| References | |
| virtual const FParameterStore & | GetStore () const =0 |
| data | |
| virtual TSharedPtr< FSceneGraphSharedState > | MakeSharedState () const |
| Related nodes share a common object | |
Protected 成员函数 | |
| virtual int32 | GetLODCount () const =0 |
| Get number of LODs | |
| virtual void | SetLODCount (int32 Count)=0 |
| Set number of LODs | |
IDatasmithMeshElement defines an actual geometry.
It won't add any instance to your scene, you'll need IDatasmithMeshActorElement for this. Notice that several IDatasmithMeshActorElements could use the this geometry.
|
pure virtual |
Return a MD5 hash of the content of the Mesh Element.
Used in CalculateElementHash to quickly identify Element with identical content
|
pure virtual |
Set surface area and bounding box dimensions to be used on lightmap size calculation.
| InArea | total surface area |
| InWidth | bounding box width |
| InHeight | bounding box height |
| InDepth | bounding box depth |
|
pure virtual |
Set the MD5 hash of the current mesh file.
This should be a hash of its content.