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