28 #ifndef __vtkContextScene_h
29 #define __vtkContextScene_h
41 class vtkAnnotationLink;
71 bool RemoveItem(
unsigned int index);
78 unsigned int GetNumberOfItems();
84 virtual void SetAnnotationLink(vtkAnnotationLink *link);
88 vtkGetObjectMacro(AnnotationLink, vtkAnnotationLink);
93 vtkSetVector2Macro(Geometry,
int);
98 vtkGetVector2Macro(Geometry,
int);
103 vtkSetMacro(UseBufferId,
bool);
108 vtkGetMacro(UseBufferId,
bool);
112 virtual int GetViewWidth();
115 virtual int GetViewHeight();
121 int GetSceneHeight();
127 vtkSetMacro(ScaleTiles,
bool);
128 vtkGetMacro(ScaleTiles,
bool);
129 vtkBooleanMacro(ScaleTiles,
bool);
134 virtual void SetRenderer(vtkRenderer *renderer);
140 void SetDirty(
bool isDirty);
141 bool GetDirty()
const;
146 void ReleaseGraphicsResources();
174 virtual void ProcessEvents(
vtkObject* caller,
unsigned long eventId,
179 virtual bool ProcessSelectionEvent(
unsigned int rect[5]);
182 virtual bool MouseMoveEvent(
int x,
int y);
185 virtual bool ButtonPressEvent(
int button,
int x,
int y);
188 virtual bool ButtonReleaseEvent(
int button,
int x,
int y);
191 virtual bool DoubleClickEvent(
int button,
int x,
int y);
195 virtual bool MouseWheelEvent(
int delta,
int x,
int y);
199 virtual void PaintIds();
202 void TestBufferIdSupport();
214 void UpdateBufferId();
260 MouseEvents eventPtr);
264 #endif //__vtkContextScene_h
abstract base class for most VTK objects
Private implementation for scene/items.
vtkWeakPointer< vtkRenderer > Renderer
vtkWeakPointer< vtkContext2D > LastPainter
Class for drawing 2D primitives to a graphical context.
An interactor for chart views It observes the user events (mouse events) and propagates them to the s...
virtual void PrintSelf(ostream &os, vtkIndent indent)
Provides a 2D scene for vtkContextItem objects.
data structure to represent mouse events.
a simple class to control print indentation
bool BufferIdSupportTested
2D array of ids, used for picking.
vtkContextScenePrivate * Children
vtkAbstractContextBufferId * BufferId
base class for items that are part of a vtkContextScene.
vtkTransform2D * Transform
vtkAnnotationLink * AnnotationLink