vtkMatrix3x3 Class Reference

#include <vtkMatrix3x3.h>

Inheritance diagram for vtkMatrix3x3:

Inheritance graph
[legend]
Collaboration diagram for vtkMatrix3x3:

Collaboration graph
[legend]

List of all members.


Detailed Description

represent and manipulate 3x3 transformation matrices

vtkMatrix3x3 is a class to represent and manipulate 3x3 matrices. Specifically, it is designed to work on 3x3 transformation matrices found in 2D rendering using homogeneous coordinates [x y w].

See also:
vtkTransform2D
Tests:
vtkMatrix3x3 (Tests)

Definition at line 34 of file vtkMatrix3x3.h.

static void DeepCopy (double Elements[9], vtkMatrix3x3 *source)
static void DeepCopy (double Elements[9], const double newElements[9])
void DeepCopy (vtkMatrix3x3 *source)
static void Zero (double Elements[9])
void Zero ()
static void Identity (double Elements[9])
void Identity ()
static void Invert (vtkMatrix3x3 *in, vtkMatrix3x3 *out)
static void Invert (const double inElements[9], double outElements[9])
void Invert ()
static void Transpose (vtkMatrix3x3 *in, vtkMatrix3x3 *out)
static void Transpose (const double inElements[9], double outElements[9])
void Transpose ()
static void Adjoint (const double inElements[9], double outElements[9])
void Adjoint (vtkMatrix3x3 *in, vtkMatrix3x3 *out)
static double Determinant (const double Elements[9])
double Determinant ()

Public Types

typedef vtkObject Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
void SetElement (int i, int j, double value)
double * operator[] (const unsigned int i)
const double * operator[] (unsigned int i) const
bool operator== (const vtkMatrix3x3 &)
bool operator!= (const vtkMatrix3x3 &)
void Adjoint (vtkMatrix3x3 &in, vtkMatrix3x3 &out)
double Determinant (vtkMatrix3x3 &in)
double Determinant (vtkMatrix3x3 *in)
void Invert (vtkMatrix3x3 &in, vtkMatrix3x3 &out)
void Transpose (vtkMatrix3x3 &in, vtkMatrix3x3 &out)
bool IsIdentity ()
double * GetData ()
void DeepCopy (const double Elements[9])
void MultiplyPoint (const float in[3], float out[3])
void MultiplyPoint (const double in[3], double out[3])
double GetElement (int i, int j) const

Static Public Member Functions

static vtkMatrix3x3New ()
static int IsTypeOf (const char *type)
static vtkMatrix3x3SafeDownCast (vtkObject *o)
static void MultiplyPoint (const double Elements[9], const float in[3], float out[3])
static void MultiplyPoint (const double Elements[9], const double in[3], double out[3])
static void PointMultiply (const double Elements[9], const float in[3], float out[3])
static void PointMultiply (const double Elements[9], const double in[3], double out[3])
static void Multiply3x3 (vtkMatrix3x3 *a, vtkMatrix3x3 *b, vtkMatrix3x3 *c)
static void Multiply3x3 (const double a[9], const double b[9], double c[9])

Protected Member Functions

 vtkMatrix3x3 ()
 ~vtkMatrix3x3 ()

Protected Attributes

double Element [3][3]

Member Typedef Documentation

Reimplemented from vtkObject.

Definition at line 49 of file vtkMatrix3x3.h.


Constructor & Destructor Documentation

vtkMatrix3x3::vtkMatrix3x3 (  )  [protected]

vtkMatrix3x3::~vtkMatrix3x3 (  )  [protected]


Member Function Documentation

static vtkMatrix3x3* vtkMatrix3x3::New (  )  [static]

Construct a 3x3 identity matrix.

Reimplemented from vtkObject.

virtual const char* vtkMatrix3x3::GetClassName (  )  [virtual]

Reimplemented from vtkObject.

static int vtkMatrix3x3::IsTypeOf ( const char *  name  )  [static]

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkObject.

virtual int vtkMatrix3x3::IsA ( const char *  name  )  [virtual]

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkObject.

static vtkMatrix3x3* vtkMatrix3x3::SafeDownCast ( vtkObject o  )  [static]

Reimplemented from vtkObject.

void vtkMatrix3x3::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkObject.

void vtkMatrix3x3::DeepCopy ( vtkMatrix3x3 source  )  [inline]

Set the elements of the matrix to the same values as the elements of the source Matrix.

Definition at line 55 of file vtkMatrix3x3.h.

static void vtkMatrix3x3::DeepCopy ( double  Elements[9],
vtkMatrix3x3 source 
) [inline, static]

Set the elements of the matrix to the same values as the elements of the source Matrix.

Definition at line 58 of file vtkMatrix3x3.h.

static void vtkMatrix3x3::DeepCopy ( double  Elements[9],
const double  newElements[9] 
) [static]

Set the elements of the matrix to the same values as the elements of the source Matrix.

void vtkMatrix3x3::DeepCopy ( const double  Elements[9]  )  [inline]

Non-static member function. Assigns *from* elements array

Definition at line 66 of file vtkMatrix3x3.h.

void vtkMatrix3x3::Zero (  )  [inline]

Set all of the elements to zero.

Definition at line 72 of file vtkMatrix3x3.h.

static void vtkMatrix3x3::Zero ( double  Elements[9]  )  [static]

Set all of the elements to zero.

void vtkMatrix3x3::Identity (  )  [inline]

Set equal to Identity matrix

Definition at line 81 of file vtkMatrix3x3.h.

static void vtkMatrix3x3::Identity ( double  Elements[9]  )  [static]

Set equal to Identity matrix

static void vtkMatrix3x3::Invert ( vtkMatrix3x3 in,
vtkMatrix3x3 out 
) [inline, static]

Matrix Inversion (adapted from Richard Carling in "Graphics Gems," Academic Press, 1990).

Definition at line 91 of file vtkMatrix3x3.h.

void vtkMatrix3x3::Invert (  )  [inline]

Matrix Inversion (adapted from Richard Carling in "Graphics Gems," Academic Press, 1990).

Definition at line 93 of file vtkMatrix3x3.h.

static void vtkMatrix3x3::Invert ( const double  inElements[9],
double  outElements[9] 
) [static]

Matrix Inversion (adapted from Richard Carling in "Graphics Gems," Academic Press, 1990).

static void vtkMatrix3x3::Transpose ( vtkMatrix3x3 in,
vtkMatrix3x3 out 
) [inline, static]

Transpose the matrix and put it into out.

Definition at line 103 of file vtkMatrix3x3.h.

void vtkMatrix3x3::Transpose (  )  [inline]

Transpose the matrix and put it into out.

Definition at line 105 of file vtkMatrix3x3.h.

static void vtkMatrix3x3::Transpose ( const double  inElements[9],
double  outElements[9] 
) [static]

Transpose the matrix and put it into out.

void vtkMatrix3x3::MultiplyPoint ( const float  in[3],
float  out[3] 
) [inline]

Multiply a homogeneous coordinate by this matrix, i.e. out = A*in. The in[3] and out[3] can be the same array.

Definition at line 115 of file vtkMatrix3x3.h.

void vtkMatrix3x3::MultiplyPoint ( const double  in[3],
double  out[3] 
) [inline]

Multiply a homogeneous coordinate by this matrix, i.e. out = A*in. The in[3] and out[3] can be the same array.

Definition at line 117 of file vtkMatrix3x3.h.

static void vtkMatrix3x3::MultiplyPoint ( const double  Elements[9],
const float  in[3],
float  out[3] 
) [static]

static void vtkMatrix3x3::MultiplyPoint ( const double  Elements[9],
const double  in[3],
double  out[3] 
) [static]

static void vtkMatrix3x3::Multiply3x3 ( vtkMatrix3x3 a,
vtkMatrix3x3 b,
vtkMatrix3x3 c 
) [inline, static]

Multiplies matrices a and b and stores the result in c (c=a*b).

Definition at line 130 of file vtkMatrix3x3.h.

static void vtkMatrix3x3::Multiply3x3 ( const double  a[9],
const double  b[9],
double  c[9] 
) [static]

Multiplies matrices a and b and stores the result in c (c=a*b).

void vtkMatrix3x3::Adjoint ( vtkMatrix3x3 in,
vtkMatrix3x3 out 
) [inline]

Compute adjoint of the matrix and put it into out.

Definition at line 140 of file vtkMatrix3x3.h.

static void vtkMatrix3x3::Adjoint ( const double  inElements[9],
double  outElements[9] 
) [static]

Compute adjoint of the matrix and put it into out.

double vtkMatrix3x3::Determinant (  )  [inline]

Compute the determinant of the matrix and return it.

Definition at line 149 of file vtkMatrix3x3.h.

static double vtkMatrix3x3::Determinant ( const double  Elements[9]  )  [static]

Compute the determinant of the matrix and return it.

void vtkMatrix3x3::SetElement ( int  i,
int  j,
double  value 
) [inline]

Sets the element i,j in the matrix.

Definition at line 207 of file vtkMatrix3x3.h.

double vtkMatrix3x3::GetElement ( int  i,
int  j 
) const [inline]

Returns the element i,j from the matrix.

Definition at line 160 of file vtkMatrix3x3.h.

double* vtkMatrix3x3::operator[] ( const unsigned int  i  )  [inline]

Definition at line 165 of file vtkMatrix3x3.h.

const double* vtkMatrix3x3::operator[] ( unsigned int  i  )  const [inline]

Definition at line 167 of file vtkMatrix3x3.h.

bool vtkMatrix3x3::operator== ( const vtkMatrix3x3 other  )  [inline]

Definition at line 231 of file vtkMatrix3x3.h.

bool vtkMatrix3x3::operator!= ( const vtkMatrix3x3 other  )  [inline]

Definition at line 246 of file vtkMatrix3x3.h.

void vtkMatrix3x3::Adjoint ( vtkMatrix3x3 in,
vtkMatrix3x3 out 
) [inline]

Definition at line 171 of file vtkMatrix3x3.h.

double vtkMatrix3x3::Determinant ( vtkMatrix3x3 in  )  [inline]

Definition at line 173 of file vtkMatrix3x3.h.

double vtkMatrix3x3::Determinant ( vtkMatrix3x3 in  )  [inline]

Definition at line 175 of file vtkMatrix3x3.h.

void vtkMatrix3x3::Invert ( vtkMatrix3x3 in,
vtkMatrix3x3 out 
) [inline]

Definition at line 177 of file vtkMatrix3x3.h.

void vtkMatrix3x3::Transpose ( vtkMatrix3x3 in,
vtkMatrix3x3 out 
) [inline]

Definition at line 179 of file vtkMatrix3x3.h.

static void vtkMatrix3x3::PointMultiply ( const double  Elements[9],
const float  in[3],
float  out[3] 
) [static]

static void vtkMatrix3x3::PointMultiply ( const double  Elements[9],
const double  in[3],
double  out[3] 
) [static]

bool vtkMatrix3x3::IsIdentity (  )  [inline]

Definition at line 216 of file vtkMatrix3x3.h.

double* vtkMatrix3x3::GetData (  )  [inline]

Return a pointer to the first element of the matrix (double[9]).

Definition at line 192 of file vtkMatrix3x3.h.


Member Data Documentation

double vtkMatrix3x3::Element[3][3] [protected]

Definition at line 199 of file vtkMatrix3x3.h.


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

Generated on Wed Aug 24 11:47:03 2011 for VTK by  doxygen 1.5.6