arbeit
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

TFItem.h File Reference

#include <canvas/CanvasItems.h>
#include <tf/TFBase.h>
#include <tf/TFElement.h>
#include <vector>

Go to the source code of this file.

Compounds

class  TFItem
 TFItem, generic base class, see TFItemSTD for some concrete example implementations. More...

class  TFItemVec
 TFItemVec, manages a bunch of transfer function elements, and the tf itself, as far as QT is concerned. More...


Typedefs

typedef gutz::vec2< STF::tfSTypetfVec2
 define the 2D domain type, tfSType defined in /tf/TFParams.h

typedef gutz::mat3< STF::tfSTypetfMat3
 a transformation matrix

typedef gutz::SmartPtr< TFItemTFItemSP

Functions

TFItemSP genTFItem (TFEltSP elt, QCanvas *canvas)
 TFItem Factory function, defined in "TFItemFactory.cpp".


Variables

const tfVec2 tfVec2_bad = tfVec2(STF::tfSType_bad)
const tfMat3 tfMat3_bad = tfMat3(STF::tfSType_bad)


Typedef Documentation

typedef gutz::SmartPtr<TFItem> TFItemSP
 

Definition at line 132 of file TFItem.h.

Referenced by genTFItem(), and TFItemVec::getItem().

typedef gutz::mat3<STF::tfSType> tfMat3
 

a transformation matrix

Definition at line 37 of file TFItem.h.

Referenced by TFItem::getInvXform(), and TFItem::getXform().

typedef gutz::vec2<STF::tfSType> tfVec2
 

define the 2D domain type, tfSType defined in /tf/TFParams.h

Definition at line 34 of file TFItem.h.

Referenced by TFItemVec::getBorder(), TFItem::getBorder(), TFItem::getInvScale(), TFItemVec::getScale(), TFItem::getScale(), TFItem::getTFPosCA(), TFItem::invXform(), and TFItem::xform().


Function Documentation

TFItemSP genTFItem TFEltSP  elt,
QCanvas *  canvas
 

TFItem Factory function, defined in "TFItemFactory.cpp".

this simple function generates the correct TFItem for each TFElement type if you add a new TFElement type, you should also have a corresponding TFItem, modify this funciton to produce the right one.

Definition at line 29 of file TFItemFactory.cpp.

References gutz::SmartPtrRef< TFElement >::getPtr(), and TFItemSP.

Referenced by TFItemVec::addItem().


Variable Documentation

const tfMat3 tfMat3_bad = tfMat3(STF::tfSType_bad)
 

Definition at line 38 of file TFItem.h.

const tfVec2 tfVec2_bad = tfVec2(STF::tfSType_bad)
 

Definition at line 35 of file TFItem.h.

Referenced by TFItem::getTFPosCA().


Send questions, comments, and bug reports to:
jmk