Matrix Class Reference

An affine 4x4 matrix. More...

#include <ecgeometry.h>

Inheritance diagram for Matrix:

EclipseObject

List of all members.

Public Member Functions

 Matrix ()
 Default constructor Sets this matrix to identity.
 Matrix (float *a_pValues)
 Floating array constructor.
 ~Matrix ()
 Destruction.
void SetRow (int a_nRow, float *a_pValues)
 Sets the values of a given row.
const YRMatrix4x4AsYRMatrix () const
 Provides access to our YRMatrix4x4 internal object.
virtual PYOBJECT PyAsString ()
 Python text representation method This function must be implemented by all children.

Static Public Member Functions

static bool PyTypeCheck (PYOBJECT a_pObject)
 Python type check Verifies that the provided python object encapsulates our class.

Static Public Attributes

static const Matrix Identity
 Identity matrix.

Protected Member Functions

virtual void DeleteObject ()
 Child message hook for reference-count based destruction.


Detailed Description

An affine 4x4 matrix.

Author:
Dan Torres 1/7/2009

Definition at line 160 of file ecgeometry.h.


Constructor & Destructor Documentation

Matrix::Matrix ( float *  a_pValues  ) 

Floating array constructor.

Parameters:
a_pValues an array of 16 floats to populate this matrix with. Row major.


Member Function Documentation

virtual void Matrix::DeleteObject (  )  [protected, virtual]

Child message hook for reference-count based destruction.

The child class is responsible for deleting any instance to which this this function is called.

Reimplemented from EclipseObject.

virtual PYOBJECT Matrix::PyAsString (  )  [virtual]

Python text representation method This function must be implemented by all children.

Returns:
A python string object with a description of ourselves

Reimplemented from EclipseObject.

static bool Matrix::PyTypeCheck ( PYOBJECT  a_pObject  )  [static]

Python type check Verifies that the provided python object encapsulates our class.

Returns:
True if the provided object type is the same as ours

Reimplemented from EclipseObject.

void Matrix::SetRow ( int  a_nRow,
float *  a_pValues 
)

Sets the values of a given row.

Parameters:
a_nRow Zero based row index
a_pValues An array of four floats


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

Generated on Tue Jan 20 17:57:58 2009 for EclipseRay by  doxygen 1.5.7.1