Radium Engine  1.5.20
Loading...
Searching...
No Matches
Ra::IO::AssimpCameraDataLoader Class Reference

#include <IO/AssimpLoader/AssimpCameraDataLoader.hpp>

+ Collaboration diagram for Ra::IO::AssimpCameraDataLoader:

Public Member Functions

 AssimpCameraDataLoader (const bool VERBOSE_MODE=false)
 
void loadData (const aiScene *scene, std::vector< std::unique_ptr< Core::Asset::Camera > > &data) override
 Convert all the camera data from scene into data.
 

Protected Member Functions

bool sceneHasCamera (const aiScene *scene) const
 Return true if the given scene has camera data.
 
uint sceneCameraSize (const aiScene *scene) const
 Return the number of cameras in the given scene.
 
void loadCameraData (const aiScene *scene, const aiCamera &camera, Core::Asset::Camera &data)
 Fill data with the CameraData from camera.
 
Core::Matrix4 loadCameraFrame (const aiScene *scene, const Core::Matrix4 &parentFrame, const aiCamera &node) const
 Return the Camera transformation, in world space, for data from the scene.
 

Detailed Description

The AssimpCameraDataLoader converts camera data from the Assimp format to the Asset::Camera format.

Definition at line 28 of file AssimpCameraDataLoader.hpp.

Constructor & Destructor Documentation

◆ AssimpCameraDataLoader()

Ra::IO::AssimpCameraDataLoader::AssimpCameraDataLoader ( const bool VERBOSE_MODE = false)
explicit

Definition at line 16 of file AssimpCameraDataLoader.cpp.

Member Function Documentation

◆ loadCameraData()

void Ra::IO::AssimpCameraDataLoader::loadCameraData ( const aiScene * scene,
const aiCamera & camera,
Core::Asset::Camera & data )
protected

Fill data with the CameraData from camera.

Definition at line 60 of file AssimpCameraDataLoader.cpp.

+ Here is the call graph for this function:

◆ loadCameraFrame()

Core::Matrix4 Ra::IO::AssimpCameraDataLoader::loadCameraFrame ( const aiScene * scene,
const Core::Matrix4 & parentFrame,
const aiCamera & node ) const
protected

Return the Camera transformation, in world space, for data from the scene.

Definition at line 95 of file AssimpCameraDataLoader.cpp.

◆ loadData()

void Ra::IO::AssimpCameraDataLoader::loadData ( const aiScene * scene,
std::vector< std::unique_ptr< Core::Asset::Camera > > & data )
override

Convert all the camera data from scene into data.

Todo
process camera name to feed component name

Definition at line 21 of file AssimpCameraDataLoader.cpp.

◆ sceneCameraSize()

uint Ra::IO::AssimpCameraDataLoader::sceneCameraSize ( const aiScene * scene) const
protected

Return the number of cameras in the given scene.

Definition at line 56 of file AssimpCameraDataLoader.cpp.

◆ sceneHasCamera()

bool Ra::IO::AssimpCameraDataLoader::sceneHasCamera ( const aiScene * scene) const
inlineprotected

Return true if the given scene has camera data.

Definition at line 52 of file AssimpCameraDataLoader.cpp.


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