Commit a6ec2266 authored by Dan Lipsa's avatar Dan Lipsa

Mark overriding functions with override.

parent f79724d0
......@@ -34,7 +34,7 @@ class GraphAnimate : public vtkCommand
public:
static GraphAnimate *New() { return new GraphAnimate(); }
vtkTypeMacro(GraphAnimate, vtkCommand);
virtual void Execute(vtkObject *, unsigned long, void *)
virtual void Execute(vtkObject *, unsigned long, void *) override
{
this->GraphItem->UpdatePositions();
this->View->Render();
......
......@@ -34,7 +34,7 @@ class vtkGraphItem : public vtkContextItem
{
public:
vtkTypeMacro(vtkGraphItem, vtkContextItem);
virtual void PrintSelf(ostream &os, vtkIndent indent);
virtual void PrintSelf(ostream &os, vtkIndent indent) override;
static vtkGraphItem *New();
......@@ -44,37 +44,37 @@ public:
/**
* Paint event for the item.
*/
virtual bool Paint(vtkContext2D *painter);
virtual bool Paint(vtkContext2D *painter) override;
/**
* Returns true if the supplied x, y coordinate is inside the item.
*/
virtual bool Hit(const vtkContextMouseEvent &mouse);
virtual bool Hit(const vtkContextMouseEvent &mouse) override;
/**
* Mouse enter event.
*/
virtual bool MouseEnterEvent(const vtkContextMouseEvent &mouse);
virtual bool MouseEnterEvent(const vtkContextMouseEvent &mouse) override;
/**
* Mouse move event.
*/
virtual bool MouseMoveEvent(const vtkContextMouseEvent &mouse);
virtual bool MouseMoveEvent(const vtkContextMouseEvent &mouse) override;
/**
* Mouse leave event.
*/
virtual bool MouseLeaveEvent(const vtkContextMouseEvent &mouse);
virtual bool MouseLeaveEvent(const vtkContextMouseEvent &mouse) override;
/**
* Mouse button down event.
*/
virtual bool MouseButtonPressEvent(const vtkContextMouseEvent &mouse);
virtual bool MouseButtonPressEvent(const vtkContextMouseEvent &mouse) override;
/**
* Mouse button release event.
*/
virtual bool MouseButtonReleaseEvent(const vtkContextMouseEvent &mouse);
virtual bool MouseButtonReleaseEvent(const vtkContextMouseEvent &mouse) override;
void UpdatePositions();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment