DubiousEngine  0.2.0
Simple Game Engine
Dubious::Utility::Ac3d_file_reader Class Reference

An object that can read an AC3D file. More...

#include <Ac3d_file_reader.h>

Public Member Functions

 Ac3d_file_reader ()=delete
 
 ~Ac3d_file_reader ()=delete
 
 Ac3d_file_reader (const Ac3d_file_reader &)=delete
 
Ac3d_file_readeroperator= (const Ac3d_file_reader &)=delete
 

Static Public Member Functions

static std::unique_ptr< const Ac3d_fileread_file (const File_path &file_name)
 Read the specified file and return an AC3DFilePtr. More...
 
static std::unique_ptr< const Ac3d_filetest_cube (float width, float height, float depth)
 Create a test cube. More...
 
static std::unique_ptr< const Ac3d_filetest_cube_group (float edge_length)
 Create a test model that has 3 cubes in a group. More...
 

Detailed Description

An object that can read an AC3D file.

This class can be used to read AC3D files into an AC3DFile object. Note that it is not a robust solution. It does not support all features, and it only supports specifically created models. One important limitation is that a model must be composed only of triangles. Also, you must choose the Re-Center option for your model so that all children will be centered around their middle. This class can not be created, it can only be used to read a file.

Constructor & Destructor Documentation

Dubious::Utility::Ac3d_file_reader::Ac3d_file_reader ( )
delete
Dubious::Utility::Ac3d_file_reader::~Ac3d_file_reader ( )
delete
Dubious::Utility::Ac3d_file_reader::Ac3d_file_reader ( const Ac3d_file_reader )
delete

Member Function Documentation

Ac3d_file_reader& Dubious::Utility::Ac3d_file_reader::operator= ( const Ac3d_file_reader )
delete
std::unique_ptr< const Ac3d_file > Dubious::Utility::Ac3d_file_reader::read_file ( const File_path file_name)
static

Read the specified file and return an AC3DFilePtr.

Parameters
file_name- [in] path and file name of the AC3D file
Returns
a pointer to the file information
std::unique_ptr< const Ac3d_file > Dubious::Utility::Ac3d_file_reader::test_cube ( float  width,
float  height,
float  depth 
)
static

Create a test cube.

Parameters
width- [in] edge width
height- [in] edge height
depth- [in] edge depth
Returns
a pointer to the file information
std::unique_ptr< const Ac3d_file > Dubious::Utility::Ac3d_file_reader::test_cube_group ( float  edge_length)
static

Create a test model that has 3 cubes in a group.

Parameters
edge_length- [in] edge length
Returns
a pointer to the file information

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