HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
UT_CoordSpaceT< T > Class Template Reference

#include <UT_CoordSpace.h>

Public Member Functions

 UT_CoordSpaceT (UT_PlaneType p=UT_PLANE_XY)
 
 UT_CoordSpaceT (const UT_Vector3T< T > &point, const UT_Vector3T< T > &axaxis, const UT_Vector3T< T > &ayaxis, const UT_Vector3T< T > *azaxis, bool norm=true)
 
 UT_CoordSpaceT (const UT_Vector3T< T > &p0, const UT_Vector3T< T > &p1, const UT_Vector3T< T > &p2)
 
 ~UT_CoordSpaceT ()
 
void negate ()
 
void xaxis (const UT_Vector3T< T > &x, bool norm=true, bool allow_flip=true)
 
void yaxis (const UT_Vector3T< T > &y, bool norm=true, bool allow_flip=true)
 
void zaxis (const UT_Vector3T< T > &z, bool norm=true, bool allow_flip=true)
 
void setAxes (const UT_Vector3T< T > &x, const UT_Vector3T< T > &y, const UT_Vector3T< T > &z, bool norm=true)
 
const UT_Vector3T< T > & xaxis () const
 
const UT_Vector3T< T > & yaxis () const
 
const UT_Vector3T< T > & zaxis () const
 
const UT_Vector3T< T > & origin () const
 
void setOrigin (const UT_Vector3T< T > &o)
 
void rotate (UT_Vector3T< T > &axis, T theta, bool norm=true)
 
void rotate (UT_Axis3::axis a, T theta)
 
void rotate (const UT_Matrix3T< T > &rotmatx)
 
void transform (const UT_Matrix4F &matx)
 
void transform (UT_Matrix4F &matx)
 
void transform (const UT_Matrix4D &matx)
 
void transform (UT_Matrix4D &matx)
 
void identity ()
 
void getTransformMatrix (UT_Matrix4T< T > &matx) const
 
void getTransformMatrixPreservingOrigin (UT_Matrix4T< T > &matx) const
 
void shiftOffset (T by_factor)
 
void translate (const UT_Vector3T< T > &offset)
 
int fromWorldRotation (T &rx, T &ry, T &rz, const UT_XformOrder &order) const
 
int toWorldRotation (T &rx, T &ry, T &rz, const UT_XformOrder &order) const
 
void convertToWorld (UT_Vector3T< T > &rel) const
 
void convertToWorldNoOriginAdj (UT_Vector3T< T > &rel) const
 
const UT_PlaneT< T > & plane () const
 

Detailed Description

template<typename T>
class UT_CoordSpaceT< T >

Definition at line 23 of file UT_CoordSpace.h.

Constructor & Destructor Documentation

template<typename T >
UT_CoordSpaceT< T >::UT_CoordSpaceT ( UT_PlaneType  p = UT_PLANE_XY)

Definition at line 24 of file UT_CoordSpaceImpl.h.

template<typename T >
UT_CoordSpaceT< T >::UT_CoordSpaceT ( const UT_Vector3T< T > &  point,
const UT_Vector3T< T > &  axaxis,
const UT_Vector3T< T > &  ayaxis,
const UT_Vector3T< T > *  azaxis,
bool  norm = true 
)

Definition at line 47 of file UT_CoordSpaceImpl.h.

template<typename T >
UT_CoordSpaceT< T >::UT_CoordSpaceT ( const UT_Vector3T< T > &  p0,
const UT_Vector3T< T > &  p1,
const UT_Vector3T< T > &  p2 
)

Definition at line 81 of file UT_CoordSpaceImpl.h.

template<typename T >
UT_CoordSpaceT< T >::~UT_CoordSpaceT ( )

Definition at line 96 of file UT_CoordSpaceImpl.h.

Member Function Documentation

template<typename T >
void UT_CoordSpaceT< T >::convertToWorld ( UT_Vector3T< T > &  rel) const

Definition at line 408 of file UT_CoordSpaceImpl.h.

template<typename T >
void UT_CoordSpaceT< T >::convertToWorldNoOriginAdj ( UT_Vector3T< T > &  rel) const

Definition at line 420 of file UT_CoordSpaceImpl.h.

template<typename T >
int UT_CoordSpaceT< T >::fromWorldRotation ( T rx,
T ry,
T rz,
const UT_XformOrder order 
) const

Definition at line 373 of file UT_CoordSpaceImpl.h.

template<typename T >
void UT_CoordSpaceT< T >::getTransformMatrix ( UT_Matrix4T< T > &  matx) const

Definition at line 354 of file UT_CoordSpaceImpl.h.

template<typename T >
void UT_CoordSpaceT< T >::getTransformMatrixPreservingOrigin ( UT_Matrix4T< T > &  matx) const

Definition at line 363 of file UT_CoordSpaceImpl.h.

template<typename T >
void UT_CoordSpaceT< T >::identity ( )

Definition at line 327 of file UT_CoordSpaceImpl.h.

template<typename T >
void UT_CoordSpaceT< T >::negate ( )

Definition at line 103 of file UT_CoordSpaceImpl.h.

template<typename T >
const UT_Vector3T<T>& UT_CoordSpaceT< T >::origin ( ) const
inline

Definition at line 63 of file UT_CoordSpace.h.

template<typename T >
const UT_PlaneT<T>& UT_CoordSpaceT< T >::plane ( ) const
inline

Definition at line 125 of file UT_CoordSpace.h.

template<typename T >
void UT_CoordSpaceT< T >::rotate ( UT_Vector3T< T > &  axis,
T  theta,
bool  norm = true 
)

Definition at line 229 of file UT_CoordSpaceImpl.h.

template<typename T >
void UT_CoordSpaceT< T >::rotate ( UT_Axis3::axis  a,
T  theta 
)

Definition at line 245 of file UT_CoordSpaceImpl.h.

template<typename T >
void UT_CoordSpaceT< T >::rotate ( const UT_Matrix3T< T > &  rotmatx)

Definition at line 261 of file UT_CoordSpaceImpl.h.

template<typename T >
void UT_CoordSpaceT< T >::setAxes ( const UT_Vector3T< T > &  x,
const UT_Vector3T< T > &  y,
const UT_Vector3T< T > &  z,
bool  norm = true 
)

Definition at line 206 of file UT_CoordSpaceImpl.h.

template<typename T >
void UT_CoordSpaceT< T >::setOrigin ( const UT_Vector3T< T > &  o)
inline

Definition at line 64 of file UT_CoordSpace.h.

template<typename T >
void UT_CoordSpaceT< T >::shiftOffset ( T  by_factor)
inline

Definition at line 100 of file UT_CoordSpace.h.

template<typename T >
int UT_CoordSpaceT< T >::toWorldRotation ( T rx,
T ry,
T rz,
const UT_XformOrder order 
) const

Definition at line 390 of file UT_CoordSpaceImpl.h.

template<typename T >
void UT_CoordSpaceT< T >::transform ( const UT_Matrix4F matx)

Definition at line 277 of file UT_CoordSpaceImpl.h.

template<typename T >
void UT_CoordSpaceT< T >::transform ( UT_Matrix4F matx)

Definition at line 292 of file UT_CoordSpaceImpl.h.

template<typename T >
void UT_CoordSpaceT< T >::transform ( const UT_Matrix4D matx)

Definition at line 302 of file UT_CoordSpaceImpl.h.

template<typename T >
void UT_CoordSpaceT< T >::transform ( UT_Matrix4D matx)

Definition at line 317 of file UT_CoordSpaceImpl.h.

template<typename T >
void UT_CoordSpaceT< T >::translate ( const UT_Vector3T< T > &  offset)
inline

Definition at line 105 of file UT_CoordSpace.h.

template<typename T >
void UT_CoordSpaceT< T >::xaxis ( const UT_Vector3T< T > &  x,
bool  norm = true,
bool  allow_flip = true 
)

Definition at line 114 of file UT_CoordSpaceImpl.h.

template<typename T >
const UT_Vector3T<T>& UT_CoordSpaceT< T >::xaxis ( ) const
inline

Definition at line 58 of file UT_CoordSpace.h.

template<typename T >
void UT_CoordSpaceT< T >::yaxis ( const UT_Vector3T< T > &  y,
bool  norm = true,
bool  allow_flip = true 
)

Definition at line 143 of file UT_CoordSpaceImpl.h.

template<typename T >
const UT_Vector3T<T>& UT_CoordSpaceT< T >::yaxis ( ) const
inline

Definition at line 59 of file UT_CoordSpace.h.

template<typename T >
void UT_CoordSpaceT< T >::zaxis ( const UT_Vector3T< T > &  z,
bool  norm = true,
bool  allow_flip = true 
)

Definition at line 173 of file UT_CoordSpaceImpl.h.

template<typename T >
const UT_Vector3T<T>& UT_CoordSpaceT< T >::zaxis ( ) const
inline

Definition at line 60 of file UT_CoordSpace.h.


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