35 #ifndef vtkRangeHandlesItem_h 36 #define vtkRangeHandlesItem_h 38 #include "vtkChartsCoreModule.h" 68 void GetBounds(
double bounds[4])
override;
74 virtual void GetHandlesRange(
double range[2]);
89 vtkSetMacro(HandleWidth,
float);
90 vtkGetMacro(HandleWidth,
float);
96 void ComputeHandlesDrawRange();
129 void SetActiveHandlePosition(
double position);
135 bool IsActiveHandleMoved(
double tolerance);
140 void SetCursor(
int cursor);
148 float HandleWidth = 2;
149 float HandleDelta = 0;
150 float LeftHandleDrawRange[2] = { 0, 0 };
151 float RightHandleDrawRange[2] = { 0, 0 };
152 int ActiveHandle = NO_HANDLE;
153 int HoveredHandle = NO_HANDLE;
154 double ActiveHandlePosition = 0;
155 double ActiveHandleRangeValue = 0;
160 #endif // vtkRangeHandlesItem_h void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual bool MouseButtonPressEvent(const vtkContextMouseEvent &mouse)
Mouse button down event Return true if the item holds the event, false if the event can be propagated...
virtual bool Paint(vtkContext2D *painter)
Paint event for the item, called whenever the item needs to be drawn.
virtual void GetBounds(double bounds[4])
Get the bounds for this plot as (Xmin, Xmax, Ymin, Ymax).
Class for drawing 2D primitives to a graphical context.
provides a brush that fills shapes drawn by vtkContext2D.
data structure to represent mouse events.
a simple class to control print indentation
virtual bool MouseButtonReleaseEvent(const vtkContextMouseEvent &mouse)
Mouse button release event.
item to show and control the range of a vtkColorTransferFunction
Abstract class for 2D plots.
virtual bool MouseEnterEvent(const vtkContextMouseEvent &mouse)
Mouse enter event.
Defines a transfer function for mapping a property to an RGB color value.
virtual bool MouseMoveEvent(const vtkContextMouseEvent &mouse)
Mouse move event.
virtual bool Hit(const vtkContextMouseEvent &mouse)
Return true if the supplied x, y coordinate is inside the item.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
virtual bool MouseDoubleClickEvent(const vtkContextMouseEvent &mouse)
Mouse button double click event.
virtual bool MouseLeaveEvent(const vtkContextMouseEvent &mouse)
Mouse leave event.