27 #ifndef vtkContextScenePrivate_h
28 #define vtkContextScenePrivate_h
60 typedef std::vector<vtkAbstractContextItem*>::const_iterator
62 typedef std::vector<vtkAbstractContextItem*>::iterator
iterator;
66 #ifdef VTK_CONST_REVERSE_ITERATOR_COMPARISON
67 typedef std::vector<vtkAbstractContextItem*>::const_reverse_iterator
70 typedef std::vector<vtkAbstractContextItem*>::reverse_iterator
73 typedef std::vector<vtkAbstractContextItem*>::reverse_iterator
83 if ((*it)->GetVisible())
85 (*it)->Paint(context);
100 this->push_back(item);
101 return static_cast<unsigned int>(this->
size()-1);
108 for(iterator it = this->begin(); it != this->end(); ++it)
127 if (index < this->
size())
141 (*it)->SetParent(NULL);
142 (*it)->SetScene(NULL);
153 if (this->
Scene == scene)
160 (*it)->SetScene(scene);
175 #endif //vtkContextScenePrivate_h
virtual void SetParent(vtkAbstractContextItem *parent)
virtual void Register(vtkObjectBase *o)
Private implementation for scene/items.
std::vector< vtkAbstractContextItem * >::reverse_iterator const_reverse_iterator
bool RemoveItem(vtkAbstractContextItem *item)
std::vector< vtkAbstractContextItem * >::const_iterator const_iterator
Class for drawing 2D primitives to a graphical context.
virtual void SetScene(vtkContextScene *scene)
Provides a 2D scene for vtkContextItem objects.
~vtkContextScenePrivate()
void PaintItems(vtkContext2D *context)
bool RemoveItem(unsigned int index)
std::vector< vtkAbstractContextItem * >::iterator iterator
void SetScene(vtkContextScene *scene)
base class for items that are part of a vtkContextScene.
unsigned int AddItem(vtkAbstractContextItem *item)
vtkContextScenePrivate(vtkAbstractContextItem *item)
vtkAbstractContextItem * Item
std::vector< vtkAbstractContextItem * >::reverse_iterator reverse_iterator