SIVIC API  0.9.26
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Static Public Member Functions | List of all members
svkOverlaySelector Class Reference

#include <svkOverlaySelector.h>

Inheritance diagram for svkOverlaySelector:

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 svkOverlaySelectorNew ()
 

Detailed Description

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.

Member Function Documentation

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 svkOverlaySelector* New ( )
static
void OnLeftButtonDown ( )
virtual

Callback for pressing the left button. This starts the rubberband interactor, and grabs a current image of the RenderWindow.

void OnLeftButtonUp ( )
virtual

Callback for a left button release. Clears the rubberband from the screen and throws a SelectionChangedEvent.

void OnMouseMove ( )
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().

void RedrawRubberBand ( )
virtual

Redraws the rubberband during the interaction. It also turns off drawing of the main renderer to improve performance.

Referenced by svkOverlaySelector::OnMouseMove().


The documentation for this class was generated from the following files: