HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_Matrix4 Class Reference

#include <HOM_Matrix4.h>

Public Member Functions

 HOM_Matrix4 ()
 
 HOM_Matrix4 (double diagonal_value)
 
 HOM_Matrix4 (const std::vector< double > &values)
 
 HOM_Matrix4 (const std::vector< std::vector< double > > &values)
 
 HOM_Matrix4 (HOM_Matrix3 &matrix3)
 
 HOM_Matrix4 (const HOM_Matrix4 &matrix4)
 
 HOM_Matrix4 (const UT_DMatrix4 &matrix4)
 
 HOM_Matrix4 (const UT_Matrix4 &matrix4)
 
 ~HOM_Matrix4 ()
 
bool operator== (HOM_PtrOrNull< HOM_Matrix4 > matrix4)
 
bool operator!= (HOM_PtrOrNull< HOM_Matrix4 > matrix4)
 
bool isAlmostEqual (HOM_Matrix4 &matrix4, double tolerance=0.00001)
 
int __hash__ ()
 
std::string __str__ ()
 
std::string __repr__ ()
 
HOM_Matrix4operator= (const std::vector< std::vector< double > > &sequence)
 
HOM_Matrix4operator= (const HOM_Matrix4 &matrix4)
 
double at (int row, int col)
 
std::vector< double > asTuple ()
 
std::vector< std::vector
< double > > 
asTupleOfTuples ()
 
void setAt (int row, int col, double value)
 
void setTo (const std::vector< double > &sequence)
 
void setTo (const std::vector< std::vector< double > > &sequence)
 
void setToIdentity ()
 
void setToZero ()
 
HOM_Matrix4 __add__ (HOM_Matrix4 &matrix4)
 
HOM_Matrix4 __sub__ (HOM_Matrix4 &matrix4)
 
HOM_Matrix4 __mul__ (HOM_Matrix4 &matrix4)
 
HOM_Matrix4 __mul__ (double scalar)
 
HOM_Matrix4 preMult (HOM_Matrix4 &matrix4)
 
HOM_Matrix4 transposed ()
 
HOM_Matrix4 inverted ()
 
double determinant ()
 
std::map< std::string,
HOM_Vector3
explode (const char *transform_order="srt", const char *rotate_order="xyz", const HOM_Vector3 &pivot=HOM_Vector3(), const HOM_Vector3 &pivot_rotate=HOM_Vector3())
 
HOM_Vector3 extractTranslates (const char *transform_order="srt", const HOM_Vector3 &pivot_rotate=HOM_Vector3(), const HOM_Vector3 &pivot=HOM_Vector3())
 
HOM_Vector3 extractRotates (const char *transform_order="srt", const char *rotate_order="xyz", const HOM_Vector3 &pivot=HOM_Vector3(), const HOM_Vector3 &pivot_rotate=HOM_Vector3())
 
HOM_Vector3 extractScales (const char *transform_order="srt", const HOM_Vector3 &pivot=HOM_Vector3(), const HOM_Vector3 &pivot_rotate=HOM_Vector3())
 
HOM_Vector3 extractShears (const char *transform_order="srt", const HOM_Vector3 &pivot=HOM_Vector3(), const HOM_Vector3 &pivot_rotate=HOM_Vector3())
 
HOM_Matrix3extractRotationMatrix3 ()
 
void setToPerspective (double zoom, double image_aspect=1, double pixel_aspect=1, double clip_near=0, double clip_far=1, double window_xmin=0, double window_xmax=1, double window_ymin=0, double window_ymax=1)
 
void setToOrthographic (double zoom, double orthowidth=1, double image_aspect=1, double pixel_aspect=1, double clip_near=0, double clip_far=1, double window_xmin=0, double window_xmax=1, double window_ymin=0, double window_ymax=1)
 
void_asVoidPointer ()
 
std::vector< double > _getstate ()
 
void _setstate (std::vector< double >)
 

Public Attributes

UT_DMatrix4 myMatrix4
 

Detailed Description

Definition at line 25 of file HOM_Matrix4.h.

Constructor & Destructor Documentation

HOM_Matrix4::HOM_Matrix4 ( )
inline

Definition at line 28 of file HOM_Matrix4.h.

HOM_Matrix4::HOM_Matrix4 ( double  diagonal_value)
inline

Definition at line 33 of file HOM_Matrix4.h.

HOM_Matrix4::HOM_Matrix4 ( const std::vector< double > &  values)
inline

Definition at line 38 of file HOM_Matrix4.h.

HOM_Matrix4::HOM_Matrix4 ( const std::vector< std::vector< double > > &  values)
inline

Definition at line 43 of file HOM_Matrix4.h.

HOM_Matrix4::HOM_Matrix4 ( HOM_Matrix3 matrix3)
inline

Definition at line 48 of file HOM_Matrix4.h.

HOM_Matrix4::HOM_Matrix4 ( const HOM_Matrix4 matrix4)
inline

Definition at line 55 of file HOM_Matrix4.h.

HOM_Matrix4::HOM_Matrix4 ( const UT_DMatrix4 matrix4)
inline

Definition at line 59 of file HOM_Matrix4.h.

HOM_Matrix4::HOM_Matrix4 ( const UT_Matrix4 matrix4)
inline

Definition at line 62 of file HOM_Matrix4.h.

HOM_Matrix4::~HOM_Matrix4 ( )
inline

Definition at line 66 of file HOM_Matrix4.h.

Member Function Documentation

HOM_Matrix4 HOM_Matrix4::__add__ ( HOM_Matrix4 matrix4)
inline

Definition at line 104 of file HOM_Matrix4.h.

int HOM_Matrix4::__hash__ ( )
HOM_Matrix4 HOM_Matrix4::__mul__ ( HOM_Matrix4 matrix4)
inline

Definition at line 108 of file HOM_Matrix4.h.

HOM_Matrix4 HOM_Matrix4::__mul__ ( double  scalar)
inline

Definition at line 110 of file HOM_Matrix4.h.

std::string HOM_Matrix4::__repr__ ( )
std::string HOM_Matrix4::__str__ ( )
HOM_Matrix4 HOM_Matrix4::__sub__ ( HOM_Matrix4 matrix4)
inline

Definition at line 106 of file HOM_Matrix4.h.

void* HOM_Matrix4::_asVoidPointer ( )
inline

Definition at line 173 of file HOM_Matrix4.h.

std::vector<double> HOM_Matrix4::_getstate ( )
void HOM_Matrix4::_setstate ( std::vector< double >  )
std::vector<double> HOM_Matrix4::asTuple ( )
std::vector<std::vector<double> > HOM_Matrix4::asTupleOfTuples ( )
double HOM_Matrix4::at ( int  row,
int  col 
)
double HOM_Matrix4::determinant ( )
inline

Definition at line 117 of file HOM_Matrix4.h.

std::map<std::string, HOM_Vector3> HOM_Matrix4::explode ( const char *  transform_order = "srt",
const char *  rotate_order = "xyz",
const HOM_Vector3 pivot = HOM_Vector3(),
const HOM_Vector3 pivot_rotate = HOM_Vector3() 
)
HOM_Vector3 HOM_Matrix4::extractRotates ( const char *  transform_order = "srt",
const char *  rotate_order = "xyz",
const HOM_Vector3 pivot = HOM_Vector3(),
const HOM_Vector3 pivot_rotate = HOM_Vector3() 
)
HOM_Matrix3* HOM_Matrix4::extractRotationMatrix3 ( )
HOM_Vector3 HOM_Matrix4::extractScales ( const char *  transform_order = "srt",
const HOM_Vector3 pivot = HOM_Vector3(),
const HOM_Vector3 pivot_rotate = HOM_Vector3() 
)
HOM_Vector3 HOM_Matrix4::extractShears ( const char *  transform_order = "srt",
const HOM_Vector3 pivot = HOM_Vector3(),
const HOM_Vector3 pivot_rotate = HOM_Vector3() 
)
HOM_Vector3 HOM_Matrix4::extractTranslates ( const char *  transform_order = "srt",
const HOM_Vector3 pivot_rotate = HOM_Vector3(),
const HOM_Vector3 pivot = HOM_Vector3() 
)
HOM_Matrix4 HOM_Matrix4::inverted ( )
bool HOM_Matrix4::isAlmostEqual ( HOM_Matrix4 matrix4,
double  tolerance = 0.00001 
)
bool HOM_Matrix4::operator!= ( HOM_PtrOrNull< HOM_Matrix4 matrix4)
inline

Definition at line 72 of file HOM_Matrix4.h.

HOM_Matrix4& HOM_Matrix4::operator= ( const std::vector< std::vector< double > > &  sequence)
HOM_Matrix4& HOM_Matrix4::operator= ( const HOM_Matrix4 matrix4)
inline

Definition at line 83 of file HOM_Matrix4.h.

bool HOM_Matrix4::operator== ( HOM_PtrOrNull< HOM_Matrix4 matrix4)
inline

Definition at line 69 of file HOM_Matrix4.h.

HOM_Matrix4 HOM_Matrix4::preMult ( HOM_Matrix4 matrix4)
inline

Definition at line 112 of file HOM_Matrix4.h.

void HOM_Matrix4::setAt ( int  row,
int  col,
double  value 
)
void HOM_Matrix4::setTo ( const std::vector< double > &  sequence)
void HOM_Matrix4::setTo ( const std::vector< std::vector< double > > &  sequence)
void HOM_Matrix4::setToIdentity ( )
inline

Definition at line 98 of file HOM_Matrix4.h.

void HOM_Matrix4::setToOrthographic ( double  zoom,
double  orthowidth = 1,
double  image_aspect = 1,
double  pixel_aspect = 1,
double  clip_near = 0,
double  clip_far = 1,
double  window_xmin = 0,
double  window_xmax = 1,
double  window_ymin = 0,
double  window_ymax = 1 
)
void HOM_Matrix4::setToPerspective ( double  zoom,
double  image_aspect = 1,
double  pixel_aspect = 1,
double  clip_near = 0,
double  clip_far = 1,
double  window_xmin = 0,
double  window_xmax = 1,
double  window_ymin = 0,
double  window_ymax = 1 
)
void HOM_Matrix4::setToZero ( )
inline

Definition at line 101 of file HOM_Matrix4.h.

HOM_Matrix4 HOM_Matrix4::transposed ( )

Member Data Documentation

UT_DMatrix4 HOM_Matrix4::myMatrix4

Definition at line 178 of file HOM_Matrix4.h.


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