HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GP_Xform Class Referenceabstract

#include <GP_Xform.h>

+ Inheritance diagram for GP_Xform:

Public Member Functions

 GP_Xform (void)
 
virtual ~GP_Xform (void)
 
virtual int forward (GP_Point &p) const =0
 
virtual int forward (GP_PointMatrix &m) const =0
 
virtual int backward (GP_Point &p) const =0
 
virtual int backward (GP_PointMatrix &m) const =0
 
virtual void reset (void)=0
 
virtual void translate (float dx, float dy)=0
 
virtual GP_Xformcompose (const GP_Xform &xform, const UT_BoundingRect *brect=0)=0
 
virtual GP_XformcomposeInverse (const GP_Xform &xform, const UT_BoundingRect *brect=0)=0
 
virtual int copyFrom (const GP_Xform &xform)=0
 
virtual GP_Xforminverse (void)=0
 
virtual int inverse (GP_Xform &)=0
 
virtual const char * getName (void) const =0
 
virtual unsigned int getType (void) const =0
 
virtual const char * getJSONToken (void) const =0
 
virtual int save (std::ostream &os, int binary=0) const =0
 
virtual bool load (UT_IStream &is)=0
 
virtual bool save (UT_JSONWriter &w) const =0
 
virtual bool load (UT_JSONParser &p, UT_JSONParser::traverser &it)=0
 
int addReference (void)
 
int delReference (void)
 
GP_Xformcopy (void) const
 

Static Public Member Functions

static GP_XformnewSpecies (const char *name)
 
static GP_XformnewSpecies (unsigned int type)
 
static GP_XformnewSpecies (const GP_Xform &xform)
 
static GP_XformnewSpeciesJSON (const char *name)
 
static GP_Xformread (UT_IStream &is)
 
static GP_Xformread (UT_JSONParser &p)
 
static int saveIdentity (std::ostream &os, int binary=0)
 
static bool saveIdentity (UT_JSONWriter &w)
 

Protected Member Functions

int saveHeader (std::ostream &os, int binary=0) const
 
bool saveType (UT_JSONWriter &w) const
 

Detailed Description

Definition at line 37 of file GP_Xform.h.

Constructor & Destructor Documentation

GP_Xform::GP_Xform ( void  )
inline

Definition at line 41 of file GP_Xform.h.

virtual GP_Xform::~GP_Xform ( void  )
virtual

Member Function Documentation

int GP_Xform::addReference ( void  )
inline

Definition at line 90 of file GP_Xform.h.

virtual int GP_Xform::backward ( GP_Point p) const
pure virtual

Implemented in GP_BilinearXform, and GP_LinearXform.

virtual int GP_Xform::backward ( GP_PointMatrix m) const
pure virtual

Implemented in GP_BilinearXform, and GP_LinearXform.

virtual GP_Xform* GP_Xform::compose ( const GP_Xform xform,
const UT_BoundingRect brect = 0 
)
pure virtual

Implemented in GP_BilinearXform, and GP_LinearXform.

virtual GP_Xform* GP_Xform::composeInverse ( const GP_Xform xform,
const UT_BoundingRect brect = 0 
)
pure virtual

Implemented in GP_BilinearXform, and GP_LinearXform.

GP_Xform* GP_Xform::copy ( void  ) const
inline

Definition at line 94 of file GP_Xform.h.

virtual int GP_Xform::copyFrom ( const GP_Xform xform)
pure virtual

Implemented in GP_BilinearXform, and GP_LinearXform.

int GP_Xform::delReference ( void  )
inline

Definition at line 91 of file GP_Xform.h.

virtual int GP_Xform::forward ( GP_Point p) const
pure virtual

Implemented in GP_BilinearXform, and GP_LinearXform.

virtual int GP_Xform::forward ( GP_PointMatrix m) const
pure virtual

Implemented in GP_BilinearXform, and GP_LinearXform.

virtual const char* GP_Xform::getJSONToken ( void  ) const
pure virtual

Implemented in GP_BilinearXform, and GP_LinearXform.

virtual const char* GP_Xform::getName ( void  ) const
pure virtual

Implemented in GP_BilinearXform, and GP_LinearXform.

virtual unsigned int GP_Xform::getType ( void  ) const
pure virtual

Implemented in GP_BilinearXform, and GP_LinearXform.

virtual GP_Xform* GP_Xform::inverse ( void  )
pure virtual

Implemented in GP_BilinearXform, and GP_LinearXform.

virtual int GP_Xform::inverse ( GP_Xform )
pure virtual

Implemented in GP_BilinearXform, and GP_LinearXform.

virtual bool GP_Xform::load ( UT_IStream is)
pure virtual

Implemented in GP_BilinearXform, and GP_LinearXform.

virtual bool GP_Xform::load ( UT_JSONParser p,
UT_JSONParser::traverser it 
)
pure virtual

Implemented in GP_BilinearXform, and GP_LinearXform.

static GP_Xform* GP_Xform::newSpecies ( const char *  name)
static
static GP_Xform* GP_Xform::newSpecies ( unsigned int  type)
static
static GP_Xform* GP_Xform::newSpecies ( const GP_Xform xform)
static
static GP_Xform* GP_Xform::newSpeciesJSON ( const char *  name)
static
static GP_Xform* GP_Xform::read ( UT_IStream is)
static
static GP_Xform* GP_Xform::read ( UT_JSONParser p)
static
virtual void GP_Xform::reset ( void  )
pure virtual

Implemented in GP_BilinearXform, and GP_LinearXform.

virtual int GP_Xform::save ( std::ostream &  os,
int  binary = 0 
) const
pure virtual

Implemented in GP_BilinearXform, and GP_LinearXform.

virtual bool GP_Xform::save ( UT_JSONWriter w) const
pure virtual

Implemented in GP_BilinearXform, and GP_LinearXform.

int GP_Xform::saveHeader ( std::ostream &  os,
int  binary = 0 
) const
protected
static int GP_Xform::saveIdentity ( std::ostream &  os,
int  binary = 0 
)
static
static bool GP_Xform::saveIdentity ( UT_JSONWriter w)
static
bool GP_Xform::saveType ( UT_JSONWriter w) const
protected
virtual void GP_Xform::translate ( float  dx,
float  dy 
)
pure virtual

Implemented in GP_BilinearXform, and GP_LinearXform.


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