WT_Transform Class Reference

#include <transform.h>

Collaboration diagram for WT_Transform:

Collaboration graph
[legend]
List of all members.

Detailed Description

A simple transform providing translation, scaling, and simple 90, 180, 270 degree rotations.

Exceptions:
WT_Result::Toolkit_Usage_Error The rotation was not one of 0, 90, 180, 270.

Definition at line 29 of file transform.h.

Public Member Functions

 WT_Transform ()
 Constructs a WT_Transform object.
 WT_Transform (WT_Logical_Point trans, double xval, double yval, double rotation=0.0)
 Constructs a WT_Transform object with the given data.
virtual ~WT_Transform ()
void set_rotation (double rotation)
 Sets the rotation value.
long rotation () const
 Returns the rotation value (in degrees, one of 0, 90, 180, 270).

Public Attributes

WT_Logical_Point m_translate
 Translation vector.
double m_x_scale
 X scale factor.
double m_y_scale
 Y scale factor.
long m_rotation
 Rotation (in degrees, one of 0, 90, 180, 270).


Constructor & Destructor Documentation

WT_Transform::WT_Transform WT_Logical_Point  trans,
double  xval,
double  yval,
double  rotation = 0.0
[inline]
 

Constructs a WT_Transform object with the given data.

Parameters:
trans  Translation vector.
xval  X scale factor.
yval  Y scale factor.
rotation  Optional rotation (in degrees, one of 0, 90, 180, 270).

Definition at line 46 of file transform.h.


Member Function Documentation

void WT_Transform::set_rotation double  rotation  )  [inline]
 

Sets the rotation value.

Exceptions:
WT_Result::Toolkit_Usage_Error The rotation was not one of 0, 90, 180, 270.
Parameters:
rotation  Rotation (in degrees, one of 0, 90, 180, 270).

Definition at line 65 of file transform.h.


The documentation for this class was generated from the following file:
Generated on Tue Jan 6 22:41:27 2009 for Autodesk DWF Whip 2D Toolkit by  doxygen 1.4.5