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

An AC3D Model. More...

#include <Ac3d_file_reader.h>

Classes

struct  Surface
 A Surface. More...
 

Public Member Functions

 Ac3d_model ()=default
 
 Ac3d_model (const Ac3d_model &)=delete
 
Ac3d_modeloperator= (const Ac3d_model &)=delete
 
std::string & name ()
 Accessor - the Name, mostly useful for debugging. More...
 
Math::Local_pointoffset ()
 Accessor - Offset from the parent model. If this is the parent model then the offset will be (0,0,0) More...
 
const Math::Local_pointoffset () const
 
std::vector< Math::Local_point > & points ()
 Accessor - the Points that make up the model. More...
 
const std::vector< Math::Local_point > & points () const
 
std::vector< Surface > & surfaces ()
 Accessor - the surfaces that make up the model. More...
 
const std::vector< Surface > & surfaces () const
 
const std::vector< std::unique_ptr< const Ac3d_model > > & kids () const
 Accessor - child models. More...
 
void push_kid (std::unique_ptr< const Ac3d_model > kid)
 

Detailed Description

An AC3D Model.

Respresents a model as described by the AC3D file format. AC3D files contains a number of points and then a list of surfaces that index those points. For example if point number 10 is used in 3 surfaces, then all of those surfaces will include the number 10 in their description. To put the model back together, you need the point array and the surface array. That info is stored in this object.

Constructor & Destructor Documentation

Dubious::Utility::Ac3d_model::Ac3d_model ( )
default
Dubious::Utility::Ac3d_model::Ac3d_model ( const Ac3d_model )
delete

Member Function Documentation

const std::vector<std::unique_ptr<const Ac3d_model> >& Dubious::Utility::Ac3d_model::kids ( ) const
inline

Accessor - child models.

std::string& Dubious::Utility::Ac3d_model::name ( )
inline

Accessor - the Name, mostly useful for debugging.

Math::Local_point& Dubious::Utility::Ac3d_model::offset ( )
inline

Accessor - Offset from the parent model. If this is the parent model then the offset will be (0,0,0)

const Math::Local_point& Dubious::Utility::Ac3d_model::offset ( ) const
inline
Ac3d_model& Dubious::Utility::Ac3d_model::operator= ( const Ac3d_model )
delete
std::vector<Math::Local_point>& Dubious::Utility::Ac3d_model::points ( )
inline

Accessor - the Points that make up the model.

const std::vector<Math::Local_point>& Dubious::Utility::Ac3d_model::points ( ) const
inline
void Dubious::Utility::Ac3d_model::push_kid ( std::unique_ptr< const Ac3d_model kid)
inline
std::vector<Surface>& Dubious::Utility::Ac3d_model::surfaces ( )
inline

Accessor - the surfaces that make up the model.

const std::vector<Surface>& Dubious::Utility::Ac3d_model::surfaces ( ) const
inline

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