SIVIC API
0.9.26
|
#include <svkOverlaySelector.h>
Public Member Functions | |
virtual void | OnLeftButtonUp () |
virtual void | OnMouseMove () |
virtual void | RedrawRubberBand () |
virtual void | OnLeftButtonDown () |
int | GetStartX () |
Pure getter, returns the x value where the selection started. More... | |
int | GetStartY () |
Pure getter, returns the y value where the selection started. More... | |
int | GetEndX () |
Pure getter, returns the x value where the selection ended. More... | |
int | GetEndY () |
Pure getter, returns the y value where the selection ended. More... | |
Static Public Member Functions | |
static svkOverlaySelector * | New () |
This class extends vtkInteractorStyleRubberBand2D to create accesor methods, and to modify some interactions. These accesor methods allow us to grab the starting and ending points of the drag selection. Also the some methods have been reimplementd due to control rendering. NOTE: Currently the OnMouseMove method inverts the y-input to compensate for the camera positien. This should be changed once the coordinate system issues are taken care off.
int GetEndX | ( | ) |
Pure getter, returns the x value where the selection ended.
int GetEndY | ( | ) |
Pure getter, returns the y value where the selection ended.
int GetStartX | ( | ) |
Pure getter, returns the x value where the selection started.
int GetStartY | ( | ) |
Pure getter, returns the y value where the selection started.
|
static |
|
virtual |
Callback for pressing the left button. This starts the rubberband interactor, and grabs a current image of the RenderWindow.
|
virtual |
Callback for a left button release. Clears the rubberband from the screen and throws a SelectionChangedEvent.
|
virtual |
Callback for mouse motion. It grabs the current pixel array of the vtkRenderWindow and draws the rubberband on top. Camera motion is inverted for the y-axis when panning.
References svkOverlaySelector::RedrawRubberBand().
|
virtual |
Redraws the rubberband during the interaction. It also turns off drawing of the main renderer to improve performance.
Referenced by svkOverlaySelector::OnMouseMove().