HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
xformOp.h File Reference
#include "pxr/pxr.h"
#include "pxr/usd/usdGeom/api.h"
#include "pxr/usd/usd/attribute.h"
#include "pxr/usd/usd/attributeQuery.h"
#include "pxr/usd/usdGeom/tokens.h"
#include <string>
#include <variant>
#include <vector>
#include <typeinfo>
#include "pxr/base/tf/staticTokens.h"
+ Include dependency graph for xformOp.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  UsdGeomXformOp
 

Macros

#define USDGEOM_XFORM_OP_TYPES
 

Functions

 TF_DECLARE_PUBLIC_TOKENS (UsdGeomXformOpTypes, USDGEOM_API, USDGEOM_XFORM_OP_TYPES)
 

Macro Definition Documentation

#define USDGEOM_XFORM_OP_TYPES

Definition at line 46 of file xformOp.h.

Function Documentation

TF_DECLARE_PUBLIC_TOKENS ( UsdGeomXformOpTypes  ,
USDGEOM_API  ,
USDGEOM_XFORM_OP_TYPES   
)

Provides TfToken's for use in conjunction with UsdGeomXformable::Add XformOp() and UsdGeomXformOp::GetOpType(), to establish op type.

The component operation names and their meanings are:

  • translate - XYZ translation
  • scale - XYZ scale
  • rotateX - rotation about the X axis, in degrees
  • rotateY - rotation about the Y axis, in degrees
  • rotateZ - rotation about the Z axis, in degrees
  • rotateXYZ, rotateXZY, rotateYXZ, rotateYZX, rotateZXY, rotateZYX
    • a set of three canonical Euler rotations, packed into a single Vec3, for conciseness and efficiency of reading. The \em first axis named is the most local, so a single rotateXYZ is equivalent to the ordered ops "rotateZ rotateY rotateX". See also note on rotation packing order.
  • orient - arbitrary axis/angle rotation, expressed as a quaternion
  • transform - 4x4 matrix transformation
  • resetXformStack - when appearing as the first op, instructs client that the transform stack should be cleared of any inherited transformation prior to processing the rest of the prims ops. It is an error for resetXformStack to appear anywhere other than as the first element in xformOpOrder.