HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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 (const UT_Matrix4D &matx)
 
void transformAndReturnNormalXform (UT_Matrix4F &matx)
 
void transformAndReturnNormalXform (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 24 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 48 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 82 of file UT_CoordSpaceImpl.h.

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

Definition at line 97 of file UT_CoordSpaceImpl.h.

Member Function Documentation

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

Definition at line 411 of file UT_CoordSpaceImpl.h.

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

Definition at line 423 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 376 of file UT_CoordSpaceImpl.h.

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

Definition at line 357 of file UT_CoordSpaceImpl.h.

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

Definition at line 366 of file UT_CoordSpaceImpl.h.

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

Definition at line 330 of file UT_CoordSpaceImpl.h.

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

Definition at line 104 of file UT_CoordSpaceImpl.h.

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

Definition at line 64 of file UT_CoordSpace.h.

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

Definition at line 128 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 230 of file UT_CoordSpaceImpl.h.

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

Definition at line 246 of file UT_CoordSpaceImpl.h.

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

Definition at line 262 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 207 of file UT_CoordSpaceImpl.h.

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

Definition at line 65 of file UT_CoordSpace.h.

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

Definition at line 103 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 393 of file UT_CoordSpaceImpl.h.

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

Definition at line 278 of file UT_CoordSpaceImpl.h.

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

Definition at line 304 of file UT_CoordSpaceImpl.h.

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

Definition at line 293 of file UT_CoordSpaceImpl.h.

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

Definition at line 319 of file UT_CoordSpaceImpl.h.

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

Definition at line 108 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 115 of file UT_CoordSpaceImpl.h.

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

Definition at line 59 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 144 of file UT_CoordSpaceImpl.h.

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

Definition at line 60 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 174 of file UT_CoordSpaceImpl.h.

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

Definition at line 61 of file UT_CoordSpace.h.


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