Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
LVRInteractorStylePolygonPick Class Reference

Like TrackBallCamera, but this can pick props underneath a rubber band selection rectangle. More...

#include <LVRInteractorStylePolygonPick.hpp>

Inheritance diagram for LVRInteractorStylePolygonPick:
Inheritance graph
[legend]

Classes

class  vtkInternal
 

Public Member Functions

std::vector< vtkVector2i > GetPolygonPoints ()
 
void OnChar () override
 
void OnKeyDown () override
 
void OnLeftButtonDown () override
 
void OnLeftButtonUp () override
 
void OnMouseMove () override
 
void PrintSelf (ostream &os, vtkIndent indent) override
 
void SetLassoTool ()
 
void SetPolygonTool ()
 
void StartSelect ()
 
 vtkBooleanMacro (DrawPolygonPixels, bool)
 
 vtkGetMacro (DrawPolygonPixels, bool)
 
 vtkSetMacro (DrawPolygonPixels, bool)
 
 vtkTypeMacro (LVRInteractorStylePolygonPick, vtkInteractorStyleTrackballCamera)
 

Static Public Member Functions

static LVRInteractorStylePolygonPickNew ()
 

Protected Member Functions

virtual void DrawPolygon ()
 
 LVRInteractorStylePolygonPick ()
 
virtual void Pick ()
 
 ~LVRInteractorStylePolygonPick () override
 

Protected Attributes

int CurrentMode
 
bool DrawPolygonPixels
 
int EndPosition [2]
 
bool firstPoint = true
 
bool lassoToolSelected = true
 
int Moving
 
vtkUnsignedCharArray * PixelArray
 
int StartPosition [2]
 

Private Member Functions

 LVRInteractorStylePolygonPick (const LVRInteractorStylePolygonPick &)=delete
 
void operator= (const LVRInteractorStylePolygonPick &)=delete
 

Private Attributes

vtkInternalInternal
 

Detailed Description

Like TrackBallCamera, but this can pick props underneath a rubber band selection rectangle.

This interactor style allows the user to draw a rectangle in the render window by hitting 'r' and then using the left mouse button. When the mouse button is released, the attached picker operates on the pixel in the center of the selection rectangle. If the picker happens to be a vtkAreaPicker it will operate on the entire selection rectangle. When the 'p' key is hit the above pick operation occurs on a 1x1 rectangle. In other respects it behaves the same as its parent class.

See also
vtkAreaPicker

Definition at line 43 of file LVRInteractorStylePolygonPick.hpp.

Constructor & Destructor Documentation

◆ LVRInteractorStylePolygonPick() [1/2]

LVRInteractorStylePolygonPick::LVRInteractorStylePolygonPick ( )
protected

Definition at line 90 of file LVRInteractorStylePolygonPick.cpp.

◆ ~LVRInteractorStylePolygonPick()

LVRInteractorStylePolygonPick::~LVRInteractorStylePolygonPick ( )
overrideprotected

Definition at line 102 of file LVRInteractorStylePolygonPick.cpp.

◆ LVRInteractorStylePolygonPick() [2/2]

LVRInteractorStylePolygonPick::LVRInteractorStylePolygonPick ( const LVRInteractorStylePolygonPick )
privatedelete

Member Function Documentation

◆ DrawPolygon()

void LVRInteractorStylePolygonPick::DrawPolygon ( )
protectedvirtual

Definition at line 359 of file LVRInteractorStylePolygonPick.cpp.

◆ GetPolygonPoints()

std::vector< vtkVector2i > LVRInteractorStylePolygonPick::GetPolygonPoints ( )

Definition at line 115 of file LVRInteractorStylePolygonPick.cpp.

◆ New()

static LVRInteractorStylePolygonPick* LVRInteractorStylePolygonPick::New ( )
static

◆ OnChar()

void LVRInteractorStylePolygonPick::OnChar ( )
override

Definition at line 121 of file LVRInteractorStylePolygonPick.cpp.

◆ OnKeyDown()

void LVRInteractorStylePolygonPick::OnKeyDown ( )
override

Definition at line 406 of file LVRInteractorStylePolygonPick.cpp.

◆ OnLeftButtonDown()

void LVRInteractorStylePolygonPick::OnLeftButtonDown ( )
override

Definition at line 156 of file LVRInteractorStylePolygonPick.cpp.

◆ OnLeftButtonUp()

void LVRInteractorStylePolygonPick::OnLeftButtonUp ( )
override

Definition at line 257 of file LVRInteractorStylePolygonPick.cpp.

◆ OnMouseMove()

void LVRInteractorStylePolygonPick::OnMouseMove ( )
override

Event bindings

Definition at line 206 of file LVRInteractorStylePolygonPick.cpp.

◆ operator=()

void LVRInteractorStylePolygonPick::operator= ( const LVRInteractorStylePolygonPick )
privatedelete

◆ Pick()

void LVRInteractorStylePolygonPick::Pick ( )
protectedvirtual

Definition at line 299 of file LVRInteractorStylePolygonPick.cpp.

◆ PrintSelf()

void LVRInteractorStylePolygonPick::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
override

Definition at line 389 of file LVRInteractorStylePolygonPick.cpp.

◆ SetLassoTool()

void LVRInteractorStylePolygonPick::SetLassoTool ( )

Definition at line 400 of file LVRInteractorStylePolygonPick.cpp.

◆ SetPolygonTool()

void LVRInteractorStylePolygonPick::SetPolygonTool ( )

Definition at line 394 of file LVRInteractorStylePolygonPick.cpp.

◆ StartSelect()

void LVRInteractorStylePolygonPick::StartSelect ( )

Definition at line 109 of file LVRInteractorStylePolygonPick.cpp.

◆ vtkBooleanMacro()

LVRInteractorStylePolygonPick::vtkBooleanMacro ( DrawPolygonPixels  ,
bool   
)

◆ vtkGetMacro()

LVRInteractorStylePolygonPick::vtkGetMacro ( DrawPolygonPixels  ,
bool   
)

◆ vtkSetMacro()

LVRInteractorStylePolygonPick::vtkSetMacro ( DrawPolygonPixels  ,
bool   
)

◆ vtkTypeMacro()

LVRInteractorStylePolygonPick::vtkTypeMacro ( LVRInteractorStylePolygonPick  ,
vtkInteractorStyleTrackballCamera   
)

Member Data Documentation

◆ CurrentMode

int LVRInteractorStylePolygonPick::CurrentMode
protected

Definition at line 87 of file LVRInteractorStylePolygonPick.hpp.

◆ DrawPolygonPixels

bool LVRInteractorStylePolygonPick::DrawPolygonPixels
protected

Definition at line 88 of file LVRInteractorStylePolygonPick.hpp.

◆ EndPosition

int LVRInteractorStylePolygonPick::EndPosition[2]
protected

Definition at line 80 of file LVRInteractorStylePolygonPick.hpp.

◆ firstPoint

bool LVRInteractorStylePolygonPick::firstPoint = true
protected

Definition at line 83 of file LVRInteractorStylePolygonPick.hpp.

◆ Internal

vtkInternal* LVRInteractorStylePolygonPick::Internal
private

Definition at line 95 of file LVRInteractorStylePolygonPick.hpp.

◆ lassoToolSelected

bool LVRInteractorStylePolygonPick::lassoToolSelected = true
protected

Definition at line 89 of file LVRInteractorStylePolygonPick.hpp.

◆ Moving

int LVRInteractorStylePolygonPick::Moving
protected

Definition at line 82 of file LVRInteractorStylePolygonPick.hpp.

◆ PixelArray

vtkUnsignedCharArray* LVRInteractorStylePolygonPick::PixelArray
protected

Definition at line 85 of file LVRInteractorStylePolygonPick.hpp.

◆ StartPosition

int LVRInteractorStylePolygonPick::StartPosition[2]
protected

Definition at line 79 of file LVRInteractorStylePolygonPick.hpp.


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


lvr2
Author(s): Thomas Wiemann , Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Wed Mar 2 2022 00:37:26