Pioneer
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Protected Member Functions | List of all members
ModelViewer Class Reference

#include <ModelViewer.h>

Inheritance diagram for ModelViewer:
Inheritance graph
[legend]
Collaboration diagram for ModelViewer:
Collaboration graph
[legend]

Public Types

enum class  CameraPreset : uint8_t {
  Front , Back , Left , Right ,
  Top , Bottom
}
 

Public Member Functions

 ModelViewer (ModelViewerApp *app, LuaManager *l)
 
void SetModel (const std::string &modelName)
 
bool SetRandomColor ()
 
void ResetCamera ()
 
void ChangeCameraPreset (CameraPreset preset)
 
- Public Member Functions inherited from Application::Lifecycle
 Lifecycle ()
 
 Lifecycle (bool profilerAccumulate)
 
virtual ~Lifecycle ()
 
void RequestEndLifecycle ()
 
- Public Member Functions inherited from RefCounted
 RefCounted ()
 
virtual ~RefCounted ()
 
void IncRefCount () const
 
void DecRefCount () const
 
int GetRefCount () const
 
- Public Member Functions inherited from LuaWrappable
virtual ~LuaWrappable ()
 

Protected Member Functions

void Start () override
 
void Update (float deltaTime) override
 
void End () override
 
void SetupAxes ()
 
void HandleInput ()
 
- Protected Member Functions inherited from Application::Lifecycle
virtual void Start ()
 
virtual void Update (float deltaTime)=0
 
virtual void End ()
 
void SetNextLifecycle (RefCountedPtr< Lifecycle > l)
 
bool GetProfilerAccumulate () const
 
void SetProfilerAccumulate (bool enable)
 

Member Enumeration Documentation

◆ CameraPreset

enum class ModelViewer::CameraPreset : uint8_t
strong
Enumerator
Front 
Back 
Left 
Right 
Top 
Bottom 

Constructor & Destructor Documentation

◆ ModelViewer()

ModelViewer::ModelViewer ( ModelViewerApp app,
LuaManager l 
)

Member Function Documentation

◆ ChangeCameraPreset()

void ModelViewer::ChangeCameraPreset ( CameraPreset  preset)

◆ End()

void ModelViewer::End ( )
overrideprotectedvirtual

Reimplemented from Application::Lifecycle.

◆ HandleInput()

void ModelViewer::HandleInput ( )
protected
Here is the call graph for this function:

◆ ResetCamera()

void ModelViewer::ResetCamera ( )

◆ SetModel()

void ModelViewer::SetModel ( const std::string &  modelName)
Here is the call graph for this function:

◆ SetRandomColor()

bool ModelViewer::SetRandomColor ( )
Here is the call graph for this function:

◆ SetupAxes()

void ModelViewer::SetupAxes ( )
protected
Here is the call graph for this function:

◆ Start()

void ModelViewer::Start ( )
overrideprotectedvirtual

Reimplemented from Application::Lifecycle.

◆ Update()

void ModelViewer::Update ( float  deltaTime)
overrideprotectedvirtual

Implements Application::Lifecycle.

Here is the call graph for this function:

The documentation for this class was generated from the following files: