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

TFItemFactory.cpp File Reference

#include "TFItem.h"
#include <tf/TFElementSTD.h>
#include "TFItemSTD.h"

Go to the source code of this file.

Functions

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


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().


Send questions, comments, and bug reports to:
jmk