VTK
9.4.20241122
|
Private implementation for scene/items. More...
#include <vtkContextScenePrivate.h>
Inherits std::vector< vtkAbstractContextItem * >.
Public Types | |
typedef std::vector< vtkAbstractContextItem * >::const_iterator | const_iterator |
A few standard defines. | |
typedef std::vector< vtkAbstractContextItem * >::iterator | iterator |
A few standard defines. | |
typedef std::vector< vtkAbstractContextItem * >::const_reverse_iterator | const_reverse_iterator |
A few standard defines. | |
typedef std::vector< vtkAbstractContextItem * >::reverse_iterator | reverse_iterator |
A few standard defines. | |
Public Member Functions | |
vtkContextScenePrivate (vtkAbstractContextItem *item) | |
Default constructor. | |
~vtkContextScenePrivate () | |
Destructor. | |
void | PrintSelf (ostream &os, vtkIndent indent) |
void | PaintItems (vtkContext2D *context) |
Paint all items in the list. | |
unsigned int | AddItem (vtkAbstractContextItem *item) |
Add an item to the list - ensure it is not already in the list. | |
bool | RemoveItem (vtkAbstractContextItem *item) |
Remove an item from the list. | |
bool | RemoveItem (unsigned int index) |
Remove an item from the list. | |
void | Clear () |
Clear all items from the list - unregister. | |
void | SetScene (vtkContextScene *scene) |
Set the scene for the instance (and its items). | |
Public Attributes | |
vtkContextScene * | Scene |
Store a reference to the scene. | |
vtkAbstractContextItem * | Item |
Store a reference to the item that these children are part of. | |
Private implementation for scene/items.
Provides a list of context items, and convenience functions to paint all of the children of the scene/item. This is a private class to be used in vtkContextScene, vtkAbstractContextItem and friends.
Definition at line 29 of file vtkContextScenePrivate.h.
typedef std::vector<vtkAbstractContextItem*>::const_iterator vtkContextScenePrivate::const_iterator |
A few standard defines.
Definition at line 60 of file vtkContextScenePrivate.h.
typedef std::vector<vtkAbstractContextItem*>::iterator vtkContextScenePrivate::iterator |
A few standard defines.
Definition at line 61 of file vtkContextScenePrivate.h.
typedef std::vector<vtkAbstractContextItem*>::const_reverse_iterator vtkContextScenePrivate::const_reverse_iterator |
A few standard defines.
Definition at line 62 of file vtkContextScenePrivate.h.
typedef std::vector<vtkAbstractContextItem*>::reverse_iterator vtkContextScenePrivate::reverse_iterator |
A few standard defines.
Definition at line 63 of file vtkContextScenePrivate.h.
|
inline |
Default constructor.
Definition at line 35 of file vtkContextScenePrivate.h.
|
inline |
Destructor.
Definition at line 44 of file vtkContextScenePrivate.h.
|
inline |
Definition at line 46 of file vtkContextScenePrivate.h.
|
inline |
Paint all items in the list.
Definition at line 69 of file vtkContextScenePrivate.h.
|
inline |
Add an item to the list - ensure it is not already in the list.
Definition at line 84 of file vtkContextScenePrivate.h.
|
inline |
Remove an item from the list.
Definition at line 99 of file vtkContextScenePrivate.h.
|
inline |
Remove an item from the list.
Definition at line 120 of file vtkContextScenePrivate.h.
|
inline |
Clear all items from the list - unregister.
Definition at line 134 of file vtkContextScenePrivate.h.
|
inline |
Set the scene for the instance (and its items).
Definition at line 152 of file vtkContextScenePrivate.h.
vtkContextScene* vtkContextScenePrivate::Scene |
Store a reference to the scene.
Definition at line 169 of file vtkContextScenePrivate.h.
vtkAbstractContextItem* vtkContextScenePrivate::Item |
Store a reference to the item that these children are part of.
May be NULL for items in the scene itself.
Definition at line 176 of file vtkContextScenePrivate.h.