VTK
|
zoom in by amount indicated by rubber band box More...
#include <vtkInteractorStyleRubberBandZoom.h>
Public Types | |
typedef vtkInteractorStyle | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkInteractorStyleRubberBandZoom * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | OnMouseMove () |
virtual void | OnLeftButtonDown () |
virtual void | OnLeftButtonUp () |
Static Public Member Functions | |
static vtkInteractorStyleRubberBandZoom * | New () |
static int | IsTypeOf (const char *type) |
static vtkInteractorStyleRubberBandZoom * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkInteractorStyleRubberBandZoom () | |
~vtkInteractorStyleRubberBandZoom () | |
virtual void | Zoom () |
Protected Attributes | |
int | StartPosition [2] |
int | EndPosition [2] |
int | Moving |
vtkUnsignedCharArray * | PixelArray |
zoom in by amount indicated by rubber band box
This interactor style allows the user to draw a rectangle in the render window using the left mouse button. When the mouse button is released, the current camera zooms by an amount determined from the shorter side of the drawn rectangle.
Definition at line 35 of file vtkInteractorStyleRubberBandZoom.h.
Reimplemented from vtkInteractorStyle.
Definition at line 39 of file vtkInteractorStyleRubberBandZoom.h.
static vtkInteractorStyleRubberBandZoom* vtkInteractorStyleRubberBandZoom::New | ( | ) | [static] |
This class must be supplied with a vtkRenderWindowInteractor wrapper or parent. This class should not normally be instantiated by application programmers.
Reimplemented from vtkInteractorStyle.
static int vtkInteractorStyleRubberBandZoom::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkInteractorStyle.
virtual int vtkInteractorStyleRubberBandZoom::IsA | ( | const char * | name | ) | [virtual] |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkInteractorStyle.
static vtkInteractorStyleRubberBandZoom* vtkInteractorStyleRubberBandZoom::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkInteractorStyle.
virtual vtkObjectBase* vtkInteractorStyleRubberBandZoom::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkInteractorStyle.
Reimplemented from vtkInteractorStyle.
void vtkInteractorStyleRubberBandZoom::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkInteractorStyle.
virtual void vtkInteractorStyleRubberBandZoom::OnMouseMove | ( | ) | [virtual] |
Event bindings
Reimplemented from vtkInteractorStyle.
virtual void vtkInteractorStyleRubberBandZoom::OnLeftButtonDown | ( | ) | [virtual] |
Event bindings
Reimplemented from vtkInteractorStyle.
virtual void vtkInteractorStyleRubberBandZoom::OnLeftButtonUp | ( | ) | [virtual] |
Event bindings
Reimplemented from vtkInteractorStyle.
virtual void vtkInteractorStyleRubberBandZoom::Zoom | ( | ) | [protected, virtual] |
These methods for the different interactions in different modes are overridden in subclasses to perform the correct motion. Since they might be called from OnTimer, they do not have mouse coord parameters (use interactor's GetEventPosition and GetLastEventPosition)
Reimplemented from vtkInteractorStyle.
int vtkInteractorStyleRubberBandZoom::StartPosition[2] [protected] |
Definition at line 55 of file vtkInteractorStyleRubberBandZoom.h.
int vtkInteractorStyleRubberBandZoom::EndPosition[2] [protected] |
Definition at line 56 of file vtkInteractorStyleRubberBandZoom.h.
int vtkInteractorStyleRubberBandZoom::Moving [protected] |
Definition at line 58 of file vtkInteractorStyleRubberBandZoom.h.
Definition at line 60 of file vtkInteractorStyleRubberBandZoom.h.