TransformBase Class Reference

The Transformation Base Class. This is an abstract class - you can only create instances of its derived classes. The Transformation classes are used to give a transparent interface to arbitary transformations on objects. Nodes do not need to be aware of what type of transformation is being applied or how is should be undone. This class contains two virtual function :- MonoOn virtual void Transform(DocCoord* Coords, INT32 NumCoords) MonoOff MonoOn virtual BOOL IsInvertable() MonoOff It also contains the following public member vars MonoOn BOOL TransLines; // TRUE if Line Widths are to be transformed MonoOff MonoOn BOOL TransFills; // TRUE if Fills are to be transformed MonoOff. More...

#include <tranform.h>

Inheritance diagram for TransformBase:

CCObject SimpleCCObject MouldTransform TransInvertable TransNonInvertable Trans2DMatrix List of all members.

Public Member Functions

 TransformBase ()
virtual void Transform (DocCoord *Coords, INT32 NumCoords)=0
virtual BOOL IsInvertable ()=0
virtual BOOL IsTranslation ()
virtual FIXED16 GetScalar ()
 Returns the Transforms idea of the equivalent scale factor for the transform. This is mainly used to help with the scaling of line widths to save them trying to extract the scale factor from the matrix.

Public Attributes

BOOL TransFills: 1
BOOL TransLines: 1
BOOL bSolidDrag: 1
BOOL bTransformYourChildren: 1
BOOL bHaveTransformedChildren: 1
BOOL bHaveTransformedCached: 1
BOOL bHaveTransformedAllChildren: 1
BOOL bHaveTransformedAllCached: 1

Private Member Functions

 CC_DECLARE_DYNAMIC (TransformBase)

Detailed Description

The Transformation Base Class. This is an abstract class - you can only create instances of its derived classes. The Transformation classes are used to give a transparent interface to arbitary transformations on objects. Nodes do not need to be aware of what type of transformation is being applied or how is should be undone. This class contains two virtual function :- MonoOn virtual void Transform(DocCoord* Coords, INT32 NumCoords) MonoOff MonoOn virtual BOOL IsInvertable() MonoOff It also contains the following public member vars MonoOn BOOL TransLines; // TRUE if Line Widths are to be transformed MonoOff MonoOn BOOL TransFills; // TRUE if Fills are to be transformed MonoOff.

Author:
Rik_Heywood (Xara Group Ltd) <camelotdev@xara.com>
Date:
10/02/94
See also:
TransInvertable; TransNonInvertable

Definition at line 133 of file tranform.h.


Constructor & Destructor Documentation

TransformBase::TransformBase  )  [inline]
 

Definition at line 138 of file tranform.h.


Member Function Documentation

TransformBase::CC_DECLARE_DYNAMIC TransformBase   )  [private]
 

FIXED16 TransformBase::GetScalar  )  [virtual]
 

Returns the Transforms idea of the equivalent scale factor for the transform. This is mainly used to help with the scaling of line widths to save them trying to extract the scale factor from the matrix.

Author:
Phil_Martin (Xara Group Ltd) <camelotdev@xara.com>
Date:
09/01/2004
Returns:
FIXED16 value of the equivalent scale factor for the transform.

Reimplemented in Trans2DMatrix.

Definition at line 136 of file tranform.cpp.

00137 {
00138     // Just return the current value of the scale factor
00139     return FIXED16(1.0);
00140 }

virtual BOOL TransformBase::IsInvertable  )  [pure virtual]
 

Implemented in MouldTransform, TransInvertable, TransNonInvertable, and Trans2DMatrix.

virtual BOOL TransformBase::IsTranslation  )  [inline, virtual]
 

Reimplemented in Trans2DMatrix.

Definition at line 151 of file tranform.h.

00151 {return FALSE;}

virtual void TransformBase::Transform DocCoord Coords,
INT32  NumCoords
[pure virtual]
 

Implemented in MouldTransform, and Trans2DMatrix.


Member Data Documentation

BOOL TransformBase::bHaveTransformedAllCached
 

Definition at line 167 of file tranform.h.

BOOL TransformBase::bHaveTransformedAllChildren
 

Definition at line 166 of file tranform.h.

BOOL TransformBase::bHaveTransformedCached
 

Definition at line 164 of file tranform.h.

BOOL TransformBase::bHaveTransformedChildren
 

Definition at line 163 of file tranform.h.

BOOL TransformBase::bSolidDrag
 

Definition at line 160 of file tranform.h.

BOOL TransformBase::bTransformYourChildren
 

Definition at line 162 of file tranform.h.

BOOL TransformBase::TransFills
 

Definition at line 158 of file tranform.h.

BOOL TransformBase::TransLines
 

Definition at line 159 of file tranform.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 04:02:12 2007 for Camelot by  doxygen 1.4.4