Go to the documentation of this file.
29 #ifndef vtkContextScene_h
30 #define vtkContextScene_h
32 #include "vtkRenderingContext2DModule.h"
118 vtkSetVector2Macro(Geometry,
int);
125 vtkGetVector2Macro(Geometry,
int);
139 vtkGetMacro(UseBufferId,
bool);
169 vtkGetMacro(ScaleTiles,
bool);
370 MouseEvents eventPtr);
375 #endif //vtkContextScene_h
vtkVector2i GetLogicalTileScale()
The tile scale of the target vtkRenderWindow.
virtual void SetRenderer(vtkRenderer *renderer)
This should not be necessary as the context view should take care of rendering.
void ReleaseGraphicsResources()
Release graphics resources hold by the scene.
data structure to represent mouse events.
virtual bool Paint(vtkContext2D *painter)
Paint event for the chart, called whenever the chart needs to be drawn.
vtkAbstractContextItem * GetPickedItem()
Return the item under the mouse.
data structure to represent key events.
bool RemoveItem(vtkAbstractContextItem *item)
Remove child item from this item.
base class for items that are part of a vtkContextScene.
vtkAbstractContextBufferId * BufferId
vtkContextScenePrivate * Children
This structure provides a list of children, along with convenience functions to paint the children et...
int GetSceneHeight()
Get the height of the scene.
void TestBufferIdSupport()
Test if BufferId is supported by the OpenGL context.
virtual bool ButtonPressEvent(const vtkContextMouseEvent &event)
Process a mouse button press event.
abstract base class for most VTK objects
virtual void SetAnnotationLink(vtkAnnotationLink *link)
Set the vtkAnnotationLink for the chart.
virtual void SetTransform(vtkTransform2D *transform)
Set the transform for the scene.
vtkIdType GetPickedItem(int x, int y)
Return the item id under mouse cursor at position (x,y).
An algorithm for linking annotations among objects.
Class for drawing 2D primitives to a graphical context.
virtual bool DoubleClickEvent(const vtkContextMouseEvent &event)
Process a mouse button double click event.
static vtkContextScene * New()
Creates a 2D Painter object.
2D array of ids, used for picking.
vtkWeakPointer< vtkContext2D > GetLastPainter()
Last painter used.
Provides a 2D scene for vtkContextItem objects.
vtkTransform2D * Transform
The scene level transform.
unsigned int GetNumberOfItems()
Get the number of child items.
void ClearItems()
Remove all child items from this item.
virtual bool KeyPressEvent(const vtkContextKeyEvent &keyEvent)
Process a key press event.
virtual int GetViewWidth()
Get the width of the view.
a simple class to control print indentation
void SetDirty(bool isDirty)
Inform the scene that something changed that requires a repaint of the scene.
virtual vtkRenderer * GetRenderer()
virtual bool MouseWheelEvent(int delta, const vtkContextMouseEvent &event)
Process a mouse wheel event where delta is the movement forward or back.
virtual void PaintIds()
Paint the scene in a special mode to build a cache for picking.
Private implementation for scene/items.
vtkAbstractContextBufferId * GetBufferId()
Return buffer id.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
bool RemoveItem(unsigned int index)
Remove child item from this item.
unsigned int AddItem(vtkAbstractContextItem *item)
Add child items to this item.
An interactor for chart views.
abstract specification for renderers
vtkAbstractContextItem * GetItem(unsigned int index)
Get the item at the specified index.
vtkWeakPointer< vtkRenderer > Renderer
vtkAnnotationLink * AnnotationLink
void UpdateBufferId()
Make sure the buffer id used for picking is up-to-date.
Some derived classes for the different vectors commonly used.
bool BufferIdSupportTested
vtkTransform2D * GetTransform()
Get the transform for the scene.
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
bool HasTransform()
Check whether the scene has a transform.
virtual bool ProcessSelectionEvent(unsigned int rect[5])
Process a rubber band selection event.
virtual int GetViewHeight()
Get the height of the view.
virtual bool MouseMoveEvent(const vtkContextMouseEvent &event)
Process a mouse move event.
vtkWeakPointer< vtkContext2D > LastPainter
virtual bool ButtonReleaseEvent(const vtkContextMouseEvent &event)
Process a mouse button release event.
virtual bool KeyReleaseEvent(const vtkContextKeyEvent &keyEvent)
Process a key release event.
int GetSceneWidth()
Get the width of the scene.