15#ifndef vtkEqualizerContextItem_h
16#define vtkEqualizerContextItem_h
19#include "vtkInteractionWidgetsModule.h"
132 LEFT_BUTTON_PRESSED = 1,
133 RIGHT_BUTTON_PRESSED = 2
148 vtkInternal* Internal;
provides a brush that fills shapes drawn by vtkContext2D.
Class for drawing 2D primitives to a graphical context.
base class for items that are part of a vtkContextScene.
data structure to represent mouse events.
Provides a 2D scene for vtkContextItem objects.
all children of this item are transformed by the vtkTransform2D of this item.
draws a interactive polyline
bool Paint(vtkContext2D *painter) override
Paint event for the item, called whenever the item needs to be drawn.
std::string GetPoints() const
~vtkEqualizerContextItem() override
void InstantiateHandleRepresentation()
A stub method that is called from ParaView.
vtkEqualizerContextItem()
static vtkEqualizerContextItem * New()
void SetScene(vtkContextScene *scene) override
Set the vtkContextScene for the item, always set for an item in a scene.
bool MouseEnterEvent(const vtkContextMouseEvent &mouse) override
Mouse enter event.
void SetPoints(const std::string &points)
Set / Get anchor points in the following format "P1x,P1y;P2x,P2y; ... PNx,PNy;" where X denotes the f...
bool MouseMoveEvent(const vtkContextMouseEvent &mouse) override
Mouse move event.
bool MouseLeaveEvent(const vtkContextMouseEvent &mouse) override
Mouse leave event.
bool Hit(const vtkContextMouseEvent &mouse) override
Return true if the supplied x, y coordinate is inside the item.
bool MouseButtonReleaseEvent(const vtkContextMouseEvent &mouse) override
Mouse button release event.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
bool MouseButtonPressEvent(const vtkContextMouseEvent &mouse) override
Mouse button down event Return true if the item holds the event, false if the event can be propagated...
a simple class to control print indentation
provides a pen that draws the outlines of shapes drawn by vtkContext2D.