Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

srm::OrientationMatrix Class Reference

The OrientationMatrix class. The Orientation subclass in matrix 3x3 representation. More...

#include <Orientation.h>

Inheritance diagram for srm::OrientationMatrix:

Inheritance graph
[legend]
Collaboration diagram for srm::OrientationMatrix:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 OrientationMatrix ()
 Default constructor.

 OrientationMatrix (SRM_Long_Float a11, SRM_Long_Float a12, SRM_Long_Float a13, SRM_Long_Float a21, SRM_Long_Float a22, SRM_Long_Float a23, SRM_Long_Float a31, SRM_Long_Float a32, SRM_Long_Float a33)
 Constructor using elements of the matrix (mat) 3x3 parameter.

 OrientationMatrix (const SRM_Matrix_3x3 &params)
 constructor.using matrix 3x3 parameter data structure

 OrientationMatrix (const Orientation &other)
 Copy constructor.

virtual Orientationoperator= (const Orientation &other)
 Assignment operator.

virtual std::string toString () const
 Returns the string for the matrix 3x3 orientation representation.

virtual SRM_Ori_Rep_Type getOriRep () const
 Returns the native orientation representation type.


Static Public Member Functions

bool isValidParams (const SRM_Matrix_3x3 &params)
 Returns true if the matrix parameters represent a valid orientation.

OrientationMatrix compose (const Orientation &left, const Orientation &right)
 Composes the right orientation with the left orientation and returns the result in the output orientation, i.e., composed_ori = left*right.

bool equivParams (const SRM_Matrix_3x3 &params1, const SRM_Matrix_3x3 &params2, SRM_Long_Float tolerance=0.0)
 Matrix element equality, plus or minus tolerance.


Protected Member Functions

virtual void _updateIntData () const
 the virtual function to convert the data from native representation to the internal representation

virtual void _updateRepData ()
 the virtual function to convert the data from internal representation to the native representation


Protected Attributes

SRM_Matrix_3x3 _matrix

Detailed Description

The OrientationMatrix class. The Orientation subclass in matrix 3x3 representation.

Author:
David Shen

Definition at line 310 of file Orientation.h.


Constructor & Destructor Documentation

srm::OrientationMatrix::OrientationMatrix  ) 
 

Default constructor.

The default value is the identity matrix.

srm::OrientationMatrix::OrientationMatrix SRM_Long_Float  a11,
SRM_Long_Float  a12,
SRM_Long_Float  a13,
SRM_Long_Float  a21,
SRM_Long_Float  a22,
SRM_Long_Float  a23,
SRM_Long_Float  a31,
SRM_Long_Float  a32,
SRM_Long_Float  a33
 

Constructor using elements of the matrix (mat) 3x3 parameter.

Note:
the INV(mat)=TRANSPOSE(mat), consequently, mat*TRANSPOSE(mat)=I
Exceptions:
This method throws srm::Exception

srm::OrientationMatrix::OrientationMatrix const SRM_Matrix_3x3 params  ) 
 

constructor.using matrix 3x3 parameter data structure

Note:
the INV(mat)=TRANSPOSE(mat), consequently, mat*TRANSPOSE(mat)=I
Exceptions:
This method throws srm::Exception


Member Function Documentation

OrientationMatrix srm::OrientationMatrix::compose const Orientation left,
const Orientation right
[static]
 

Composes the right orientation with the left orientation and returns the result in the output orientation, i.e., composed_ori = left*right.

Exceptions:
This method throws srm::Exception


The documentation for this class was generated from the following file:
Spatial Reference Model C++ API Version 4.4 - December 7, 2009
Copyright © 2009 SEDRIS Docs by Doxygen 1.3.2