Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members   Related Pages  

vtkMatrix4x4 Class Reference

represent and manipulate 4x4 transformation matrices. More...

#include <vtkMatrix4x4.h>

Inheritance diagram for vtkMatrix4x4:

Inheritance graph
[legend]
Collaboration diagram for vtkMatrix4x4:

Collaboration graph
[legend]
List of all members.

Public Methods

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
void DeepCopy (vtkMatrix4x4 *source)
void DeepCopy (const double Elements[16])
void Zero ()
void Identity ()
void Invert ()
void Transpose ()
void MultiplyPoint (const float in[4], float out[4])
void MultiplyPoint (const double in[4], double out[4])
float * MultiplyPoint (const float in[4])
float * MultiplyFloatPoint (const float in[4])
double * MultiplyDoublePoint (const double in[4])
void Adjoint (vtkMatrix4x4 *in, vtkMatrix4x4 *out)
double Determinant ()
void SetElement (int i, int j, double value)
double GetElement (int i, int j) const
void PointMultiply (const float in[4], float out[4])
void PointMultiply (const double in[4], double out[4])
double * operator[] (const unsigned int i)
const double * operator[] (unsigned int i) const
void operator= (double element)
void Adjoint (vtkMatrix4x4 &in, vtkMatrix4x4 &out)
double Determinant (vtkMatrix4x4 &in)
double Determinant (vtkMatrix4x4 *in)
void Invert (vtkMatrix4x4 &in, vtkMatrix4x4 &out)
void Transpose (vtkMatrix4x4 &in, vtkMatrix4x4 &out)

Static Public Methods

vtkMatrix4x4 * New ()
int IsTypeOf (const char *type)
vtkMatrix4x4 * SafeDownCast (vtkObject *o)
void DeepCopy (double Elements[16], vtkMatrix4x4 *source)
void DeepCopy (double Elements[16], const double newElements[16])
void Zero (double Elements[16])
void Identity (double Elements[16])
void Invert (vtkMatrix4x4 *in, vtkMatrix4x4 *out)
void Invert (const double inElements[16], double outElements[16])
void Transpose (vtkMatrix4x4 *in, vtkMatrix4x4 *out)
void Transpose (const double inElements[16], double outElements[16])
void MultiplyPoint (const double Elements[16], const float in[4], float out[4])
void MultiplyPoint (const double Elements[16], const double in[4], double out[4])
void Multiply4x4 (vtkMatrix4x4 *a, vtkMatrix4x4 *b, vtkMatrix4x4 *c)
void Multiply4x4 (const double a[16], const double b[16], double c[16])
void Adjoint (const double inElements[16], double outElements[16])
double Determinant (const double Elements[16])
void PointMultiply (const double Elements[16], const float in[4], float out[4])
void PointMultiply (const double Elements[16], const double in[4], double out[4])

Public Attributes

double Element [4][4]

Protected Methods

 vtkMatrix4x4 ()
 ~vtkMatrix4x4 ()
 vtkMatrix4x4 (const vtkMatrix4x4 &)
void operator= (const vtkMatrix4x4 &source)

Protected Attributes

float FloatPoint [4]
double DoublePoint [4]

Detailed Description

represent and manipulate 4x4 transformation matrices.

Date:
2000/12/10 20:08:13
Revision:
1.56

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

See also:
vtkTransform
Examples:
vtkMatrix4x4 (examples)


Member Function Documentation

void vtkMatrix4x4::Adjoint vtkMatrix4x4 *    in,
vtkMatrix4x4 *    out
[inline]
 

Compute adjoint of the matrix and put it into out.

void vtkMatrix4x4::DeepCopy const double    Elements[16] [inline]
 

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

void vtkMatrix4x4::DeepCopy vtkMatrix4x4 *    source [inline]
 

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

double vtkMatrix4x4::Determinant   [inline]
 

Compute the determinant of the matrix and return it.

virtual const char* vtkMatrix4x4::GetClassName   [virtual]
 

Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkObject.

double vtkMatrix4x4::GetElement int    i,
int    j
const [inline]
 

Returns the element i,j from the matrix.

void vtkMatrix4x4::Identity   [inline]
 

Set equal to Identity matrix

void vtkMatrix4x4::Invert vtkMatrix4x4 *    in,
vtkMatrix4x4 *    out
[inline, static]
 

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

virtual int vtkMatrix4x4::IsA const char *    type [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.

int vtkMatrix4x4::IsTypeOf const char *    type [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.

void vtkMatrix4x4::Multiply4x4 vtkMatrix4x4 *    a,
vtkMatrix4x4 *    b,
vtkMatrix4x4 *    c
[inline, static]
 

Multiplies matrices a and b and stores the result in c.

float* vtkMatrix4x4::MultiplyPoint const float    in[4] [inline]
 

For use in Java, Python or Tcl. The default MultiplyPoint() uses a single-precision point.

void vtkMatrix4x4::MultiplyPoint const float    in[4],
float    out[4]
[inline]
 

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

vtkMatrix4x4* vtkMatrix4x4::New   [static]
 

Construct a 4x4 identity matrix.

Reimplemented from vtkObject.

void vtkMatrix4x4::PointMultiply const float    in[4],
float    out[4]
 

For legacy compatibility. Do not use.

void vtkMatrix4x4::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.

vtkMatrix4x4* vtkMatrix4x4::SafeDownCast vtkObject   o [static]
 

Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkObject.

void vtkMatrix4x4::SetElement int    i,
int    j,
double    value
[inline]
 

Sets the element i,j in the matrix.

void vtkMatrix4x4::Transpose vtkMatrix4x4 *    in,
vtkMatrix4x4 *    out
[inline, static]
 

Transpose the matrix and put it into out.

void vtkMatrix4x4::Zero   [inline]
 

Set all of the elements to zero.


The documentation for this class was generated from the following file:
Generated on Tue Mar 19 13:28:51 2002 for VTK by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002