VTK
|
represent and manipulate 4x4 transformation matrices More...
#include <vtkMatrix4x4.h>
Public Types | |
typedef vtkObject | Superclass |
![]() | |
typedef vtkObjectBase | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkMatrix4x4 * | NewInstance () const |
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 |
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) |
void | DeepCopy (const double Elements[16]) |
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]) |
double | GetElement (int i, int j) const |
![]() | |
vtkObject * | NewInstance () const |
virtual void | DebugOn () |
virtual void | DebugOff () |
unsigned char | GetDebug () |
void | SetDebug (unsigned char debugFlag) |
virtual void | Modified () |
virtual unsigned long | GetMTime () |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
vtkCommand * | GetCommand (unsigned long tag) |
void | RemoveObserver (vtkCommand *) |
void | RemoveObservers (unsigned long event, vtkCommand *) |
void | RemoveObservers (const char *event, vtkCommand *) |
int | HasObserver (unsigned long event, vtkCommand *) |
int | HasObserver (const char *event, vtkCommand *) |
void | RemoveObserver (unsigned long tag) |
void | RemoveObservers (unsigned long event) |
void | RemoveObservers (const char *event) |
void | RemoveAllObservers () |
int | HasObserver (unsigned long event) |
int | HasObserver (const char *event) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
int | InvokeEvent (unsigned long event, void *callData) |
int | InvokeEvent (const char *event, void *callData) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
![]() | |
const char * | GetClassName () const |
virtual void | Delete () |
virtual void | FastDelete () |
void | Print (ostream &os) |
virtual void | Register (vtkObjectBase *o) |
virtual void | UnRegister (vtkObjectBase *o) |
void | SetReferenceCount (int) |
void | PrintRevisions (ostream &) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
Static Public Member Functions | |
static vtkMatrix4x4 * | New () |
static int | IsTypeOf (const char *type) |
static vtkMatrix4x4 * | SafeDownCast (vtkObjectBase *o) |
static void | MultiplyPoint (const double Elements[16], const float in[4], float out[4]) |
static void | MultiplyPoint (const double Elements[16], const double in[4], double out[4]) |
static void | PointMultiply (const double Elements[16], const float in[4], float out[4]) |
static void | PointMultiply (const double Elements[16], const double in[4], double out[4]) |
static void | Multiply4x4 (const vtkMatrix4x4 *a, const vtkMatrix4x4 *b, vtkMatrix4x4 *c) |
static void | Multiply4x4 (const double a[16], const double b[16], double c[16]) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkObject * | SafeDownCast (vtkObjectBase *o) |
static vtkObject * | New () |
static void | BreakOnError () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
![]() | |
static int | IsTypeOf (const char *name) |
static vtkObjectBase * | New () |
Public Attributes | |
double | Element [4][4] |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkMatrix4x4 () | |
~vtkMatrix4x4 () | |
![]() | |
vtkObject () | |
virtual | ~vtkObject () |
virtual void | RegisterInternal (vtkObjectBase *, int check) |
virtual void | UnRegisterInternal (vtkObjectBase *, int check) |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | InternalReleaseFocus () |
![]() | |
vtkObjectBase () | |
virtual | ~vtkObjectBase () |
virtual void | CollectRevisions (ostream &) |
virtual void | ReportReferences (vtkGarbageCollector *) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
Protected Attributes | |
float | FloatPoint [4] |
double | DoublePoint [4] |
![]() | |
unsigned char | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
![]() | |
int | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
static void | DeepCopy (double Elements[16], const vtkMatrix4x4 *source) |
static void | DeepCopy (double Elements[16], const double newElements[16]) |
void | DeepCopy (const vtkMatrix4x4 *source) |
static void | Zero (double Elements[16]) |
void | Zero () |
static void | Identity (double Elements[16]) |
void | Identity () |
static void | Invert (const vtkMatrix4x4 *in, vtkMatrix4x4 *out) |
static void | Invert (const double inElements[16], double outElements[16]) |
void | Invert () |
static void | Transpose (const vtkMatrix4x4 *in, vtkMatrix4x4 *out) |
static void | Transpose (const double inElements[16], double outElements[16]) |
void | Transpose () |
static void | Adjoint (const double inElements[16], double outElements[16]) |
void | Adjoint (const vtkMatrix4x4 *in, vtkMatrix4x4 *out) |
static double | Determinant (const double Elements[16]) |
double | Determinant () |
represent and manipulate 4x4 transformation matrices
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].
Definition at line 38 of file vtkMatrix4x4.h.
typedef vtkObject vtkMatrix4x4::Superclass |
Definition at line 55 of file vtkMatrix4x4.h.
|
inlineprotected |
Definition at line 203 of file vtkMatrix4x4.h.
|
inlineprotected |
Definition at line 204 of file vtkMatrix4x4.h.
|
static |
Construct a 4x4 identity matrix.
|
static |
|
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 |
|
protectedvirtual |
Reimplemented from vtkObject.
vtkMatrix4x4* vtkMatrix4x4::NewInstance | ( | ) | const |
|
virtual |
|
inline |
Set the elements of the matrix to the same values as the elements of the source Matrix.
Definition at line 61 of file vtkMatrix4x4.h.
|
inlinestatic |
Set the elements of the matrix to the same values as the elements of the source Matrix.
Definition at line 64 of file vtkMatrix4x4.h.
|
static |
Set the elements of the matrix to the same values as the elements of the source Matrix.
|
inline |
Non-static member function. Assigns from elements array
Definition at line 72 of file vtkMatrix4x4.h.
|
inline |
Set all of the elements to zero.
Definition at line 78 of file vtkMatrix4x4.h.
|
static |
Set all of the elements to zero.
|
inline |
Set equal to Identity matrix
Definition at line 87 of file vtkMatrix4x4.h.
|
static |
Set equal to Identity matrix
|
inlinestatic |
Matrix Inversion (adapted from Richard Carling in "Graphics Gems," Academic Press, 1990).
Definition at line 97 of file vtkMatrix4x4.h.
|
inline |
Matrix Inversion (adapted from Richard Carling in "Graphics Gems," Academic Press, 1990).
Definition at line 99 of file vtkMatrix4x4.h.
|
static |
Matrix Inversion (adapted from Richard Carling in "Graphics Gems," Academic Press, 1990).
|
inlinestatic |
Transpose the matrix and put it into out.
Definition at line 109 of file vtkMatrix4x4.h.
|
inline |
Transpose the matrix and put it into out.
Definition at line 111 of file vtkMatrix4x4.h.
|
static |
Transpose the matrix and put it into out.
|
inline |
Multiply a homogeneous coordinate by this matrix, i.e. out = A*in. The in[4] and out[4] can be the same array.
Definition at line 121 of file vtkMatrix4x4.h.
|
inline |
Multiply a homogeneous coordinate by this matrix, i.e. out = A*in. The in[4] and out[4] can be the same array.
Definition at line 123 of file vtkMatrix4x4.h.
|
static |
|
static |
|
inline |
For use in Java, Python or Tcl. The default MultiplyPoint() uses a single-precision point.
Definition at line 137 of file vtkMatrix4x4.h.
|
inline |
For use in Java, Python or Tcl. The default MultiplyPoint() uses a single-precision point.
Definition at line 139 of file vtkMatrix4x4.h.
|
inline |
For use in Java, Python or Tcl. The default MultiplyPoint() uses a single-precision point.
Definition at line 141 of file vtkMatrix4x4.h.
|
inlinestatic |
Multiplies matrices a and b and stores the result in c.
Definition at line 147 of file vtkMatrix4x4.h.
|
static |
Multiplies matrices a and b and stores the result in c.
|
inline |
Compute adjoint of the matrix and put it into out.
Definition at line 157 of file vtkMatrix4x4.h.
|
static |
Compute adjoint of the matrix and put it into out.
|
inline |
Compute the determinant of the matrix and return it.
Definition at line 166 of file vtkMatrix4x4.h.
|
static |
Compute the determinant of the matrix and return it.
|
inline |
Sets the element i,j in the matrix.
Definition at line 213 of file vtkMatrix4x4.h.
|
inline |
Returns the element i,j from the matrix.
Definition at line 177 of file vtkMatrix4x4.h.
|
inline |
Definition at line 182 of file vtkMatrix4x4.h.
|
inline |
Definition at line 184 of file vtkMatrix4x4.h.
|
inline |
Definition at line 186 of file vtkMatrix4x4.h.
|
inline |
Definition at line 188 of file vtkMatrix4x4.h.
|
inline |
Definition at line 190 of file vtkMatrix4x4.h.
|
inline |
Definition at line 192 of file vtkMatrix4x4.h.
|
inline |
Definition at line 194 of file vtkMatrix4x4.h.
|
static |
|
static |
double vtkMatrix4x4::Element[4][4] |
Definition at line 50 of file vtkMatrix4x4.h.
|
protected |
Definition at line 204 of file vtkMatrix4x4.h.
|
protected |
Definition at line 207 of file vtkMatrix4x4.h.