Classes | Public Member Functions | Private Attributes

object::RotationList Class Reference

RotationList is a sequence of matrix rotations. More...

#include <_src_object_rotation_list.hh>

List of all members.

Classes

class  Rotation
 Defines a rotation (axis and radian). More...

Public Member Functions

 RotationList (void)
 ~RotationList ()
void Clear (void)
void Parse (std::ifstream &strm)
void AddRotation (const Rotation &rotation)
void Apply (Object &object) const
void Apply (Matrix &m) const

Private Attributes

std::list< RotationmRotationList

Detailed Description

RotationList is a sequence of matrix rotations.

RotationList is useful to set the initial orientation of a 3D model. RotationLists are defined in .conf files (Conf members).

Example of a rotation list defined in a .conf file: AircraftRotationList YY -90.0 XX 90.0 YY 8.5

Also RotationList can be applied to a general matrix (isn't limited to Object) by using RotationList::Apply(Matrix&).


Constructor & Destructor Documentation

object::RotationList::RotationList ( void   ) 

ctor/dtor.

object::RotationList::~RotationList (  ) 

Member Function Documentation

void object::RotationList::AddRotation ( const Rotation rotation  ) 

Append a rotation (around an axis) to list.

void object::RotationList::Apply ( Matrix m  )  const

Apply a series of rotations to a Matrix.

void object::RotationList::Apply ( Object object  )  const

Apply a series of rotations to a 3D Object. Apply(Matrix&) cannot be reused since it uses MatrixRotateLocal<>() which may be inappropriate for some Object-derivatives.

void object::RotationList::Clear ( void   )  [inline]
void object::RotationList::Parse ( std::ifstream &  strm  ) 

Parse a rotation list from a line in a stream in this format: { axis degree axis degree ... } This method is used to parse .conf files.


Member Data Documentation


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Palomino Flight Simulator documents generated by doxygen 1.7.1 on Tue May 15 2012 22:40:12