VTK  9.1.0
Public Member Functions | Public Attributes | List of all members
vtkContextScenePrivate Class Reference

Private implementation for scene/items. More...

#include <vtkContextScenePrivate.h>

Inherits std::vector< vtkAbstractContextItem * >.

Collaboration diagram for vtkContextScenePrivate:
[legend]

Public Types

typedef std::vector< vtkAbstractContextItem * >::const_iterator const_iterator
 A few standard defines. More...
 
typedef std::vector< vtkAbstractContextItem * >::iterator iterator
 A few standard defines. More...
 
typedef std::vector< vtkAbstractContextItem * >::const_reverse_iterator const_reverse_iterator
 A few standard defines. More...
 
typedef std::vector< vtkAbstractContextItem * >::reverse_iterator reverse_iterator
 A few standard defines. More...
 

Public Member Functions

 vtkContextScenePrivate (vtkAbstractContextItem *item)
 Default constructor. More...
 
 ~vtkContextScenePrivate ()
 Destructor. More...
 
void PaintItems (vtkContext2D *context)
 Paint all items in the list. More...
 
unsigned int AddItem (vtkAbstractContextItem *item)
 Add an item to the list - ensure it is not already in the list. More...
 
bool RemoveItem (vtkAbstractContextItem *item)
 Remove an item from the list. More...
 
bool RemoveItem (unsigned int index)
 Remove an item from the list. More...
 
void Clear ()
 Clear all items from the list - unregister. More...
 
void SetScene (vtkContextScene *scene)
 Set the scene for the instance (and its items). More...
 

Public Attributes

vtkContextSceneScene
 Store a reference to the scene. More...
 
vtkAbstractContextItemItem
 Store a reference to the item that these children are part of. More...
 

Detailed Description

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 40 of file vtkContextScenePrivate.h.

Member Typedef Documentation

◆ const_iterator

typedef std::vector<vtkAbstractContextItem*>::const_iterator vtkContextScenePrivate::const_iterator

A few standard defines.

Definition at line 62 of file vtkContextScenePrivate.h.

◆ iterator

A few standard defines.

Definition at line 63 of file vtkContextScenePrivate.h.

◆ const_reverse_iterator

typedef std::vector<vtkAbstractContextItem*>::const_reverse_iterator vtkContextScenePrivate::const_reverse_iterator

A few standard defines.

Definition at line 64 of file vtkContextScenePrivate.h.

◆ reverse_iterator

typedef std::vector<vtkAbstractContextItem*>::reverse_iterator vtkContextScenePrivate::reverse_iterator

A few standard defines.

Definition at line 65 of file vtkContextScenePrivate.h.

Constructor & Destructor Documentation

◆ vtkContextScenePrivate()

vtkContextScenePrivate::vtkContextScenePrivate ( vtkAbstractContextItem item)
inline

Default constructor.

Definition at line 46 of file vtkContextScenePrivate.h.

◆ ~vtkContextScenePrivate()

vtkContextScenePrivate::~vtkContextScenePrivate ( )
inline

Destructor.

Definition at line 56 of file vtkContextScenePrivate.h.

Member Function Documentation

◆ PaintItems()

void vtkContextScenePrivate::PaintItems ( vtkContext2D context)
inline

Paint all items in the list.

Definition at line 71 of file vtkContextScenePrivate.h.

◆ AddItem()

unsigned int vtkContextScenePrivate::AddItem ( vtkAbstractContextItem item)
inline

Add an item to the list - ensure it is not already in the list.

Definition at line 86 of file vtkContextScenePrivate.h.

◆ RemoveItem() [1/2]

bool vtkContextScenePrivate::RemoveItem ( vtkAbstractContextItem item)
inline

Remove an item from the list.

Definition at line 101 of file vtkContextScenePrivate.h.

◆ RemoveItem() [2/2]

bool vtkContextScenePrivate::RemoveItem ( unsigned int  index)
inline

Remove an item from the list.

Definition at line 122 of file vtkContextScenePrivate.h.

◆ Clear()

void vtkContextScenePrivate::Clear ( )
inline

Clear all items from the list - unregister.

Definition at line 136 of file vtkContextScenePrivate.h.

◆ SetScene()

void vtkContextScenePrivate::SetScene ( vtkContextScene scene)
inline

Set the scene for the instance (and its items).

Definition at line 152 of file vtkContextScenePrivate.h.

Member Data Documentation

◆ Scene

vtkContextScene* vtkContextScenePrivate::Scene

Store a reference to the scene.

Definition at line 169 of file vtkContextScenePrivate.h.

◆ Item

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.


The documentation for this class was generated from the following file: