Go to the documentation of this file.
34 #ifndef LVRPICKINGINTERACTOR_HPP_
35 #define LVRPICKINGINTERACTOR_HPP_
38 #include <QMessageBox>
40 #include <vtkIdTypeArray.h>
41 #include <vtkTextActor.h>
42 #include <QTreeWidgetItem>
43 #include <vtkInteractorStyleTrackballCamera.h>
44 #include <vtkInteractorStyleRubberBandPick.h>
45 #include <vtkSmartPointer.h>
46 #include <vtkRenderer.h>
48 #include <vtkDataSetMapper.h>
50 #include <boost/shared_array.hpp>
67 void setRenderer(vtkSmartPointer<vtkRenderer> renderer);
100 virtual void Dolly();
101 virtual void Dolly(
double factor);
114 void setPoints(vtkSmartPointer<vtkPolyData> points);
115 vtkSmartPointer<vtkPolyData>
getPoints();
125 void setLabel(
int, std::vector<int>);
225 bool isInside(std::vector<vtkVector2i>* polygon,
int& pX,
int& pY);
void onRightButtonDownShooter()
void setRenderer(vtkSmartPointer< vtkRenderer > renderer)
void onMouseWheelForwardTerrain()
int m_startCameraMovePosition[2]
void setLabel(int, std::vector< int >)
void newLabel(QTreeWidgetItem *)
virtual void OnRightButtonDown()
virtual void OnMiddleButtonDown()
vtkSmartPointer< vtkTextActor > m_textActor
Text actor to display info if in picking mode.
void setMotionFactor(double factor)
void firstPointPicked(double *)
virtual void OnMouseMove()
std::vector< uint16_t > m_pointLabels
void calculateSelection(bool select)
virtual void OnKeyPress()
Overloaded keyboard press event handling.
PickMode m_pickMode
Indicates picking mode.
virtual void OnLeftButtonDown()
Overloaded mouse event handling.
void clusterSelected(double *)
vtkSmartPointer< vtkPolyData > m_points
InteractorMode m_interactorMode
void setStereoMode(int state)
int m_previousPosition[2]
void onLeftButtonDownTerrain()
vtkSmartPointer< vtkPolyData > getPoints()
void resetViewUpShooter()
void onMouseWheelBackwardTrackball()
std::map< uint16_t, QColor > m_labelColors
virtual void OnKeyRelease()
Overloaded keyboard release event handling.
void onMiddleButtonUpTerrain()
void labelModeChanged(bool)
void onMiddleButtonDownTerrain()
void correspondenceSearchOn()
void onMouseWheelBackwardTerrain()
void setLabeledPointVisibility(int, bool)
void onRightButtonDownTrackball()
vtkSmartPointer< vtkTextActor > getTextActor()
returns the text-actor, needed to readd-it after clearing the render window
void onLeftButtonUpTrackball()
void onMouseWheelForwardTrackball()
void strafeShooter(double factor)
void labelingStarted(bool)
void setRotationFactor(double factor)
void onMiddleButtonUpShooter()
vtkSmartPointer< vtkActor > m_selectedActor
void onRightButtonUpTrackball()
vtkSmartPointer< vtkActor > m_polyActor
void onMouseMoveShooter()
void labelSelected(uint16_t)
void onRightButtonUpTerrain()
void onMouseWheelBackwardShooter()
virtual ~LVRPickingInteractor()
bool m_correspondenceMode
void pointSelected(vtkActor *, int)
void onMouseMoveTrackball()
void onRightButtonDownTerrain()
void onMiddleButtonDownShooter()
void onLeftButtonDownShooter()
virtual void OnMouseWheelBackward()
vtkSmartPointer< vtkDataSetMapper > m_selectedMapper
void onRightButtonUpShooter()
virtual void OnMouseWheelForward()
bool isInside(std::vector< vtkVector2i > *polygon, int &pX, int &pY)
void correspondenceSearchOff()
void saveCurrentLabelSelection()
std::vector< uint16_t > & getLabeles()
vtkSmartPointer< vtkActor > m_sphereActor
void setPoints(vtkSmartPointer< vtkPolyData > points)
void responseLabels(std::vector< uint16_t >)
ShooterMode m_shooterMode
Like TrackBallCamera, but this can pick props underneath a rubber band selection rectangle.
void secondPointPicked(double *)
void onMouseMoveTerrain()
virtual void OnLeftButtonUp()
void onLeftButtonDownTrackball()
vtkSmartPointer< vtkRenderer > m_renderer
static LVRPickingInteractor * New()
virtual void OnMiddleButtonUp()
void onMiddleButtonDownTrackball()
std::map< uint16_t, vtkSmartPointer< vtkActor > > m_labelActors
unsigned int m_numberOfClicks
void removeLabel(const int &)
virtual void OnRightButtonUp()
void onLeftButtonUpTerrain()
void onLeftButtonUpShooter()
void setFocalPointRendering(int state)
void pointsLabeled(uint16_t, int)
void onMouseWheelForwardShooter()
std::vector< bool > m_selectedPoints
vtkSmartPointer< vtkActor > m_cubeActor
vtkSmartPointer< vtkIdTypeArray > m_selectedIds
void onMiddleButtonUpTrackball()
vtkTypeMacro(LVRPickingInteractor, LVRInteractorStylePolygonPick)
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:24