15#ifndef vtkAbstractContextItem_h
16#define vtkAbstractContextItem_h
19#include "vtkRenderingContext2DModule.h"
22VTK_ABI_NAMESPACE_BEGIN
253 vtkDebugMacro(<< this->
GetClassName() <<
" (" <<
this <<
"): returning Visible of "
255 return this->Visible;
265 vtkSetMacro(Visible,
bool);
272 vtkGetMacro(Interactive,
bool);
279 vtkSetMacro(Interactive,
bool);
base class for items that are part of a vtkContextScene.
virtual vtkVector2f MapToParent(const vtkVector2f &point)
Maps the point to the parent coordinate system.
vtkContextScene * Scene
Point to the scene the item is on - can be null.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkContextScenePrivate * Children
This structure provides a list of children, along with convenience functions to paint the children et...
vtkAbstractContextItem * GetParent()
Get the parent item.
virtual bool PaintChildren(vtkContext2D *painter)
Paint the children of the item, should be called whenever the children need to be rendered.
virtual vtkVector2f MapFromScene(const vtkVector2f &point)
Maps the point from the scene coordinate system.
bool Interactive
Store whether the item should respond to interactions (default is true).
vtkAbstractContextItem * Parent
Point to the parent item - can be null.
virtual void SetParent(vtkAbstractContextItem *parent)
Set the parent item.
virtual bool GetVisible()
Get the visibility of the item (should it be drawn).
~vtkAbstractContextItem() override
bool Visible
Store the visibility of the item (default is true).
virtual vtkVector2f MapFromParent(const vtkVector2f &point)
Maps the point from the parent coordinate system.
virtual void ReleaseGraphicsCache()
Release cache entries created by this context item.
virtual vtkVector2f MapToScene(const vtkVector2f &point)
Maps the point to the scene coordinate system.
virtual void ReleaseGraphicsResources()
Release graphics resources hold by the item.
virtual bool Paint(vtkContext2D *painter)
Paint event for the item, called whenever the item needs to be drawn.
virtual void Update()
Perform any updates to the item that may be necessary before rendering.
Class for drawing 2D primitives to a graphical context.
data structure to represent key events.
data structure to represent mouse events.
Private implementation for scene/items.
Provides a 2D scene for vtkContextItem objects.
a simple class to control print indentation
const char * GetClassName() const
Return the class name as a string.
abstract base class for most VTK objects
#define VTK_MARSHAL_EXCLUDE_REASON_IS_INTERNAL
#define VTK_MARSHALEXCLUDE(reason)