HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GP_LinearXform Class Reference

#include <GP_LinearXform.h>

+ Inheritance diagram for GP_LinearXform:

Public Member Functions

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

Protected Member Functions

 GP_LinearXform (const GP_Point &orig, const UT_Matrix2 &basis, const UT_Matrix2 &invbasis)
 
int computeInverse ()
 
- Protected Member Functions inherited from GP_Xform
int saveHeader (std::ostream &os, int binary=0) const
 
bool saveType (UT_JSONWriter &w) const
 

Additional Inherited Members

- Static Public Member Functions inherited from GP_Xform
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)
 

Detailed Description

Definition at line 20 of file GP_LinearXform.h.

Constructor & Destructor Documentation

GP_LinearXform::GP_LinearXform ( )
GP_LinearXform::GP_LinearXform ( const GP_LinearXform xform)
GP_LinearXform::GP_LinearXform ( const GP_Point orig,
const UT_Matrix2 basis 
)
GP_LinearXform::GP_LinearXform ( const UT_BoundingRect from,
const UT_BoundingRect to 
)
GP_LinearXform::~GP_LinearXform ( )
override
GP_LinearXform::GP_LinearXform ( const GP_Point orig,
const UT_Matrix2 basis,
const UT_Matrix2 invbasis 
)
protected

Member Function Documentation

int GP_LinearXform::backward ( GP_Point p) const
overridevirtual

Implements GP_Xform.

int GP_LinearXform::backward ( GP_PointMatrix m) const
overridevirtual

Implements GP_Xform.

GP_Xform* GP_LinearXform::compose ( const GP_Xform xform,
const UT_BoundingRect brect = 0 
)
overridevirtual

Implements GP_Xform.

GP_Xform* GP_LinearXform::composeInverse ( const GP_Xform xform,
const UT_BoundingRect brect = 0 
)
overridevirtual

Implements GP_Xform.

int GP_LinearXform::computeInverse ( )
protected
int GP_LinearXform::copyFrom ( const GP_Xform xform)
overridevirtual

Implements GP_Xform.

int GP_LinearXform::forward ( GP_Point p) const
overridevirtual

Implements GP_Xform.

int GP_LinearXform::forward ( GP_PointMatrix m) const
overridevirtual

Implements GP_Xform.

const char* GP_LinearXform::getJSONToken ( ) const
overridevirtual

Implements GP_Xform.

const char* GP_LinearXform::getName ( ) const
overridevirtual

Implements GP_Xform.

unsigned int GP_LinearXform::getType ( ) const
overridevirtual

Implements GP_Xform.

GP_Xform* GP_LinearXform::inverse ( )
overridevirtual

Implements GP_Xform.

int GP_LinearXform::inverse ( GP_Xform )
overridevirtual

Implements GP_Xform.

bool GP_LinearXform::load ( UT_IStream is)
overridevirtual

Implements GP_Xform.

bool GP_LinearXform::load ( UT_JSONParser p,
UT_JSONParser::traverser it 
)
overridevirtual

Implements GP_Xform.

GP_LinearXform& GP_LinearXform::operator= ( const GP_LinearXform xform)
void GP_LinearXform::reset ( )
overridevirtual

Implements GP_Xform.

int GP_LinearXform::save ( std::ostream &  os,
int  binary = 0 
) const
overridevirtual

Implements GP_Xform.

bool GP_LinearXform::save ( UT_JSONWriter w) const
overridevirtual

Implements GP_Xform.

void GP_LinearXform::translate ( float  dx,
float  dy 
)
overridevirtual

Implements GP_Xform.


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