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

#include <UT_XformOrder.h>

Public Types

enum  xform {
  T =0, S =1, RX =2, RY =3,
  RZ =4
}
 
enum  rstOrder {
  TRS, TSR, RTS, RST,
  STR, SRT
}
 
enum  xyzOrder {
  XYZ, XZY, YXZ, YZX,
  ZXY, ZYX
}
 

Public Member Functions

 UT_XformOrder (rstOrder rst=UT_XformOrder::TSR, xyzOrder rot=UT_XformOrder::XYZ)
 
 UT_XformOrder (xform xf1, xform xf2, xform xf3=UT_XformOrder::RX, xform xf4=UT_XformOrder::RY, xform xf5=UT_XformOrder::RZ)
 
 UT_XformOrder (const char *rst, const char *rot="xyz")
 
 UT_XformOrder (const UT_XformOrder &xf)
 
 ~UT_XformOrder ()
 
void reorder (UT_XformOrder::xform xf1, UT_XformOrder::xform xf2, UT_XformOrder::xform xf3, UT_XformOrder::xform xf4, UT_XformOrder::xform xf5)
 
void reorder (UT_XformOrder::rstOrder rst, UT_XformOrder::xyzOrder rot)
 
UT_XformOrder::rstOrder mainOrder (void) const
 
void mainOrder (UT_XformOrder::rstOrder rst)
 
bool mainOrder (const char *rst)
 
UT_XformOrder::xyzOrder rotOrder (void) const
 
void rotOrder (UT_XformOrder::xyzOrder rot)
 
bool rotOrder (const char *rot)
 
void swap (UT_XformOrder::xform xf1, UT_XformOrder::xform xf2)
 
void invert ()
 
unsigned short operator() (UT_XformOrder::xform xf) const
 
UT_XformOrder::xform operator[] (unsigned short i) const
 
int count (void) const
 
UT_XformOrderoperator= (const UT_XformOrder &xf)
 
int save (std::ostream &os, int binary=0) const
 
const char * mainOrderLabel () const
 
const char * rotOrderLabel () const
 

Static Public Member Functions

static void getRotOrderMapping (xyzOrder src, xyzOrder dst, int map[3])
 

Friends

std::ostream & operator<< (std::ostream &os, const UT_XformOrder &t)
 

Detailed Description

Definition at line 20 of file UT_XformOrder.h.

Member Enumeration Documentation

Enumerator
TRS 
TSR 
RTS 
RST 
STR 
SRT 

Definition at line 30 of file UT_XformOrder.h.

Enumerator
T 
S 
RX 
RY 
RZ 

Definition at line 25 of file UT_XformOrder.h.

Enumerator
XYZ 
XZY 
YXZ 
YZX 
ZXY 
ZYX 

Definition at line 31 of file UT_XformOrder.h.

Constructor & Destructor Documentation

UT_XformOrder::UT_XformOrder ( rstOrder  rst = UT_XformOrder::TSR,
xyzOrder  rot = UT_XformOrder::XYZ 
)
inline

Definition at line 39 of file UT_XformOrder.h.

UT_XformOrder::UT_XformOrder ( xform  xf1,
xform  xf2,
xform  xf3 = UT_XformOrder::RX,
xform  xf4 = UT_XformOrder::RY,
xform  xf5 = UT_XformOrder::RZ 
)
inline

Definition at line 45 of file UT_XformOrder.h.

UT_XformOrder::UT_XformOrder ( const char *  rst,
const char *  rot = "xyz" 
)
UT_XformOrder::UT_XformOrder ( const UT_XformOrder xf)
UT_XformOrder::~UT_XformOrder ( )
inline

Definition at line 62 of file UT_XformOrder.h.

Member Function Documentation

int UT_XformOrder::count ( void  ) const
inline

Definition at line 121 of file UT_XformOrder.h.

static void UT_XformOrder::getRotOrderMapping ( xyzOrder  src,
xyzOrder  dst,
int  map[3] 
)
static
void UT_XformOrder::invert ( )
UT_XformOrder::rstOrder UT_XformOrder::mainOrder ( void  ) const
void UT_XformOrder::mainOrder ( UT_XformOrder::rstOrder  rst)
bool UT_XformOrder::mainOrder ( const char *  rst)
const char* UT_XformOrder::mainOrderLabel ( ) const
unsigned short UT_XformOrder::operator() ( UT_XformOrder::xform  xf) const
inline

Definition at line 108 of file UT_XformOrder.h.

UT_XformOrder& UT_XformOrder::operator= ( const UT_XformOrder xf)
UT_XformOrder::xform UT_XformOrder::operator[] ( unsigned short  i) const
inline

Definition at line 112 of file UT_XformOrder.h.

void UT_XformOrder::reorder ( UT_XformOrder::xform  xf1,
UT_XformOrder::xform  xf2,
UT_XformOrder::xform  xf3,
UT_XformOrder::xform  xf4,
UT_XformOrder::xform  xf5 
)
void UT_XformOrder::reorder ( UT_XformOrder::rstOrder  rst,
UT_XformOrder::xyzOrder  rot 
)
UT_XformOrder::xyzOrder UT_XformOrder::rotOrder ( void  ) const
void UT_XformOrder::rotOrder ( UT_XformOrder::xyzOrder  rot)
bool UT_XformOrder::rotOrder ( const char *  rot)
const char* UT_XformOrder::rotOrderLabel ( ) const
int UT_XformOrder::save ( std::ostream &  os,
int  binary = 0 
) const
void UT_XformOrder::swap ( UT_XformOrder::xform  xf1,
UT_XformOrder::xform  xf2 
)
inline

Definition at line 92 of file UT_XformOrder.h.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const UT_XformOrder t 
)
friend

Definition at line 130 of file UT_XformOrder.h.


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