Search Results for

    Show / Hide Table of Contents

    Class ModelLODBase

    Base class for mesh LOD objects. Contains a collection of the meshes.

    Inheritance
    Object
    ScriptingObject
    ModelLODBase
    Inherited Members
    ScriptingObject::_gcHandle
    ScriptingObject::_id
    ScriptingObject::_type
    ScriptingObject::CanCast(const ScriptingTypeHandle& from, const ScriptingTypeHandle& to)
    ScriptingObject::CanCast(const MClass* from, const MClass* to)
    ScriptingObject::Cast(ScriptingObject* obj)
    ScriptingObject::ChangeID(const Guid& newId)
    ScriptingObject::CreateManaged()
    ScriptingObject::CreateManagedInternal()
    ScriptingObject::Deleted
    Object::DeleteObject(float timeToLive = 0.0f, bool useGameTime=false)
    Object::DeleteObjectNow()
    ScriptingObject::DestroyManaged()
    Object::Flags
    ScriptingObject::FromInterface(void* interfaceObj, const ScriptingTypeHandle& interfaceType)
    ScriptingObject::FromInterface(T* interfaceObj)
    ScriptingObject::GetClass()
    ScriptingObject::GetID()
    ScriptingObject::GetManagedInstance()
    ScriptingObject::GetOrCreateManagedInstance()
    ScriptingObject::GetType()
    ScriptingObject::GetTypeHandle()
    ScriptingObject::HasManagedInstance()
    ScriptingObject::Is(const ScriptingTypeHandle& type)
    ScriptingObject::Is(const MClass* type)
    ScriptingObject::Is()
    ScriptingObject::IsRegistered()
    ScriptingObject::NewObject(const ScriptingTypeHandle& typeHandle)
    ScriptingObject::NewObject()
    ScriptingObject::OnDeleteObject()
    ScriptingObject::OnManagedInstanceDeleted()
    ScriptingObject::OnScriptingDispose()
    ScriptingObject::RegisterObject()
    ScriptingObject::ScriptingObject(const SpawnParams& params)
    ScriptingObject::SetManagedInstance(MObject* instance)
    ModelLODBase
    ScriptingObject::ToInterface(ScriptingObject* obj, const ScriptingTypeHandle& interfaceType)
    ScriptingObject::ToInterface(ScriptingObject* obj)
    ScriptingObject::ToManaged(const ScriptingObject* obj)
    ScriptingObject::ToNative(MObject* obj)
    ScriptingObject::ToString()
    ScriptingObject::UnregisterObject()
    Object::~Object()
    ScriptingObject::~ScriptingObject()
    Assembly: FlaxEngine.dll
    File: Engine/Content/Assets/ModelBase.h
    Syntax
    public class ModelLODBase : public ScriptingObject

    Constructors

    ModelLODBase(const SpawnParams& params)

    Declaration
    protected ModelLODBase(const SpawnParams& params)
    Parameters
    SpawnParams params

    Fields

    _lodIndex

    Declaration
    protected int32 _lodIndex = 0
    Field Value
    int32

    ScreenSize

    The screen size to switch LODs. Bottom limit of the model screen size to render this LOD.

    Declaration
    public float ScreenSize = 1.0f
    Field Value
    float

    Methods

    GetBox()

    Gets the bounding box combined for all meshes in this model LOD.

    Declaration
    public BoundingBox GetBox() const
    Returns
    BoundingBox

    GetBox(const Matrix& world)

    Get model bounding box in transformed world matrix.

    Declaration
    public BoundingBox GetBox(const Matrix& world) const
    Parameters
    Matrix world

    World matrix

    Returns
    BoundingBox

    Bounding box

    GetBox(const Transform& transform, const class MeshDeformation* deformation=nullptr)

    Get model bounding box in transformed world.

    Declaration
    public BoundingBox GetBox(const Transform& transform, const class MeshDeformation* deformation=nullptr) const
    Parameters
    Transform transform

    The instance transformation.

    class MeshDeformation deformation

    The meshes deformation container (optional).

    Returns
    BoundingBox

    Bounding box

    GetLODIndex()

    Gets the model LOD index.

    Declaration
    public int32 GetLODIndex() const
    Returns
    int32

    GetMesh(int32 index)

    Gets the specific mesh in this LOD.

    Declaration
    public virtual MeshBase* GetMesh(int32 index) const = 0
    Parameters
    int32 index

    Returns
    MeshBase

    GetMeshes(Array<const MeshBase* >& meshes)

    Gets the meshes in this LOD.

    Declaration
    public virtual void GetMeshes(Array<const MeshBase* >& meshes) const = 0
    Parameters
    Array<MeshBase > meshes

    GetMeshes(Array<MeshBase* >& meshes)

    Gets the meshes in this LOD.

    Declaration
    public virtual void GetMeshes(Array<MeshBase* >& meshes) = 0
    Parameters
    Array<MeshBase > meshes

    GetMeshesCount()

    Gets the amount of meshes in this LOD.

    Declaration
    public virtual int32 GetMeshesCount() const = 0
    Returns
    int32

    HasAnyMeshInitialized()

    Determines whether any mesh has been initialized.

    Declaration
    public bool HasAnyMeshInitialized() const
    Returns
    bool

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat