#include <TFItem.h>
Definition at line 153 of file TFItem.h.
Public Types | |
typedef std::vector< TFItemSP >::iterator | TFItemVecIter |
typedef std::vector< TFItemSP >::const_iterator | TFItemVecConstIter |
Public Member Functions | |
TFItemVec (QCanvas *canvas, TFBaseSP tf) | |
construct | |
virtual | ~TFItemVec () |
destruct | |
void | setTF (TFBaseSP tf) |
set TF | |
TFBaseSP | getTF () const |
void | setCanvas (QCanvas *canvas) |
set Canvas | |
QCanvas * | getCanvas () const |
void | update () |
call update on all items in vector, also sync up with the tf... | |
void | setScale (tfVec2 scales) |
tfVec2 | getScale () const |
void | setBorder (tfVec2 border) |
tfVec2 | getBorder () const |
TFItemSP | getItem (TFEltSP elt) const |
get an item based on the Element it represents | |
void | addItem (TFEltSP elt) |
add an item, will try to figure out what "kind" of item based on the subclass of the elt, see genTFItem() factory function (above) | |
Protected Member Functions | |
void | checkNewElts () |
check new elements | |
void | checkDelElts () |
check deleted elements | |
Protected Attributes | |
TFBaseSP | _tf |
QCanvas * | _canvas |
tfVec2 | _scales |
tfVec2 | _border |
|
Definition at line 157 of file TFItem.h. Referenced by getItem(). |
|
Definition at line 156 of file TFItem.h. Referenced by checkDelElts(). |
|
construct
Definition at line 138 of file TFItem.cpp. References height, setTF(), STF::tfSType, and width. |
|
destruct
Definition at line 147 of file TFItem.cpp. |
|
add an item, will try to figure out what "kind" of item based on the subclass of the elt, see genTFItem() factory function (above) check if it is already in list add it to list cant generate the correct item, return Definition at line 184 of file TFItem.cpp. References _canvas, genTFItem(), getItem(), and gutz::SmartPtr< T >::isNull(). Referenced by checkNewElts(). |
|
check deleted elements
Definition at line 214 of file TFItem.cpp. References _tf, end, getItem(), TFElementListIter, and TFItemVecIter. Referenced by update(). |
|
check new elements
Definition at line 203 of file TFItem.cpp. References _tf, addItem(), and TFElementListIter. Referenced by update(). |
|
|
|
Definition at line 166 of file TFItem.h. References _canvas. |
|
get an item based on the Element it represents
Definition at line 172 of file TFItem.cpp. References end, TFItemSP, and TFItemVecConstIter. Referenced by addItem(), and checkDelElts(). |
|
|
|
Definition at line 163 of file TFItem.h. References _tf. |
|
|
|
set Canvas
Definition at line 249 of file TFItem.cpp. |
|
|
|
set TF nuke everything rebuild Definition at line 238 of file TFItem.cpp. Referenced by TFView::setTF(), TFItemVec(), and TFView::TFView(). |
|
call update on all items in vector, also sync up with the tf... (check for new or deleted elements) Definition at line 154 of file TFItem.cpp. References _border, _scales, _tf, checkDelElts(), checkNewElts(), gutz::SmartPtrRef< TFGeneric >::isNull(), and size. Referenced by TFView::resizeEvent(), setBorder(), setScale(), setTF(), and TFView::setVolume(). |
|
Definition at line 193 of file TFItem.h. Referenced by getBorder(), setBorder(), and update(). |
|
Definition at line 191 of file TFItem.h. Referenced by addItem(), getCanvas(), and setCanvas(). |
|
Definition at line 192 of file TFItem.h. Referenced by getScale(), setScale(), and update(). |
|
Definition at line 190 of file TFItem.h. Referenced by checkDelElts(), checkNewElts(), getTF(), setTF(), and update(). |