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

Private implementation for scene/items. More...

#include <vtkContextScenePrivate.h>

Inherits 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

A few standard defines.

Definition at line 64 of file vtkContextScenePrivate.h.

A few standard defines.

Definition at line 65 of file vtkContextScenePrivate.h.

A few standard defines.

Definition at line 67 of file vtkContextScenePrivate.h.

A few standard defines.

Definition at line 69 of file vtkContextScenePrivate.h.

Constructor & Destructor Documentation

vtkContextScenePrivate::vtkContextScenePrivate ( vtkAbstractContextItem item)
inline

Default constructor.

Definition at line 46 of file vtkContextScenePrivate.h.

vtkContextScenePrivate::~vtkContextScenePrivate ( )
inline

Destructor.

Definition at line 54 of file vtkContextScenePrivate.h.

Member Function Documentation

void vtkContextScenePrivate::PaintItems ( vtkContext2D context)
inline

Paint all items in the list.

Definition at line 75 of file vtkContextScenePrivate.h.

unsigned int vtkContextScenePrivate::AddItem ( vtkAbstractContextItem item)
inline

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

Definition at line 90 of file vtkContextScenePrivate.h.

bool vtkContextScenePrivate::RemoveItem ( vtkAbstractContextItem item)
inline

Remove an item from the list.

Definition at line 105 of file vtkContextScenePrivate.h.

bool vtkContextScenePrivate::RemoveItem ( unsigned int  index)
inline

Remove an item from the list.

Definition at line 126 of file vtkContextScenePrivate.h.

void vtkContextScenePrivate::Clear ( )
inline

Clear all items from the list - unregister.

Definition at line 140 of file vtkContextScenePrivate.h.

void vtkContextScenePrivate::SetScene ( vtkContextScene scene)
inline

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

Definition at line 156 of file vtkContextScenePrivate.h.

Member Data Documentation

vtkContextScene* vtkContextScenePrivate::Scene

Store a reference to the scene.

Definition at line 173 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 180 of file vtkContextScenePrivate.h.


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