LVRCamDataItem.hpp
Go to the documentation of this file.
1 #ifndef LVR2_TOOLS_VIEWER_WIDGETS_LVRCAMDATAITEM_HPP
2 #define LVR2_TOOLS_VIEWER_WIDGETS_LVRCAMDATAITEM_HPP
3 
4 #include <QString>
5 #include <QTreeWidgetItem>
6 #include <QAbstractItemModel>
7 #include <QObject>
8 
9 #include <vtkMatrix4x4.h>
10 
11 #include <Eigen/Dense>
12 
16 #include "lvr2/geometry/Normal.hpp"
17 #include "lvr2/types/ScanTypes.hpp"
20 
21 #include "../vtkBridge/LVRModelBridge.hpp"
22 #include "../vtkBridge/LVRBoundingBoxBridge.hpp"
23 
24 #include "LVRBoundingBoxItem.hpp"
25 #include "LVRPointCloudItem.hpp"
26 #include "LVRPoseItem.hpp"
27 #include "LVRCvImageItem.hpp"
28 
29 #include <vtkSmartPointer.h>
30 #include <vtkActor.h>
31 
32 namespace lvr2
33 {
34 
35 
36 class LVRCamDataItem : public QTreeWidgetItem, public Transformable
37 {
38 
39  public:
40 
42  std::shared_ptr<ScanDataManager> sdm,
43  size_t cam_id,
44  vtkSmartPointer<vtkRenderer> renderer,
45  QString name = "",
46  QTreeWidgetItem *parent = NULL);
47 
49 
50  QString getName() { return m_name; }
51 
52  Pose getPose() { return m_pose; }
53 
54  void setVisibility(bool visible);
55 
56  size_t getCamId() { return m_cam_id; }
57 
58  void setCameraView();
59 
60  private:
61 
72 
73  std::vector<Vector3d > genFrustrumLVR(float scale=1.0);
74 
75  vtkSmartPointer<vtkActor> genFrustrum(float scale=1.0);
76 
77  void reload(vtkSmartPointer<vtkRenderer> renderer);
78 
79  QString m_name;
80  std::shared_ptr<ScanDataManager> m_sdm;
81  size_t m_cam_id;
88 
89  vtkSmartPointer<vtkActor> m_frustrum_actor;
90  vtkSmartPointer<vtkRenderer> m_renderer;
91 };
92 
93 } // namespace lvr2
94 
95 #endif
LVRPoseItem.hpp
BaseVector.hpp
ScanDataManager.hpp
lvr2::LVRCamDataItem::getName
QString getName()
Definition: LVRCamDataItem.hpp:50
lvr2::LVRCamDataItem::getGlobalTransform
Transformd getGlobalTransform()
Get Transformation from Camera frame to Global. QTree used as TF tree, lvr2::Transformable types are ...
Definition: LVRCamDataItem.cpp:103
lvr2::LVRCamDataItem::m_pItem
LVRPoseItem * m_pItem
Definition: LVRCamDataItem.hpp:84
lvr2::Intrinsicsd
Intrinsics< double > Intrinsicsd
4x4 extrinsic calibration (double precision)
Definition: MatrixTypes.hpp:101
lvr2::Transformd
Transform< double > Transformd
4x4 double precision transformation matrix
Definition: MatrixTypes.hpp:71
lvr2::TransformableBase
Interface for transformable objects.
Definition: Transformable.hpp:13
lvr2::LVRCamDataItem::getCamId
size_t getCamId()
Definition: LVRCamDataItem.hpp:56
lvr2::LVRCamDataItem::LVRCamDataItem
LVRCamDataItem(ScanImage &data, std::shared_ptr< ScanDataManager > sdm, size_t cam_id, vtkSmartPointer< vtkRenderer > renderer, QString name="", QTreeWidgetItem *parent=NULL)
Definition: LVRCamDataItem.cpp:29
lvr2::LVRCamDataItem::m_data
ScanImage m_data
Definition: LVRCamDataItem.hpp:82
NULL
#define NULL
Definition: mydefs.hpp:141
LVRCvImageItem.hpp
lvr2::LVRCamDataItem::m_cam_id
size_t m_cam_id
Definition: LVRCamDataItem.hpp:81
ScanTypes.hpp
lvr2::LVRCamDataItem::m_cvItem
LVRCvImageItem * m_cvItem
Definition: LVRCamDataItem.hpp:85
lvr2::LVRCamDataItem::m_renderer
vtkSmartPointer< vtkRenderer > m_renderer
Definition: LVRCamDataItem.hpp:90
lvr2::LVRCamDataItem::m_name
QString m_name
Definition: LVRCamDataItem.hpp:79
lvr2::LVRCamDataItem::setCameraView
void setCameraView()
Definition: LVRCamDataItem.cpp:122
MatrixTypes.hpp
lvr2::LVRCamDataItem::~LVRCamDataItem
~LVRCamDataItem()
Definition: LVRCamDataItem.cpp:330
LVRBoundingBoxItem.hpp
lvr2::ScanImage
Definition: ScanTypes.hpp:107
lvr2::LVRCamDataItem::getPose
Pose getPose()
Definition: LVRCamDataItem.hpp:52
lvr2::LVRCamDataItem::genFrustrumLVR
std::vector< Vector3d > genFrustrumLVR(float scale=1.0)
Definition: LVRCamDataItem.cpp:151
lvr2::LVRCamDataItem::m_matrix
Transformd m_matrix
Definition: LVRCamDataItem.hpp:86
lvr2
Definition: BaseBufferManipulators.hpp:39
lvr2::LVRCamDataItem::reload
void reload(vtkSmartPointer< vtkRenderer > renderer)
Definition: LVRCamDataItem.cpp:87
lvr2::LVRCamDataItem::m_intrinsics
Intrinsicsd m_intrinsics
Definition: LVRCamDataItem.hpp:87
LVRPointCloudItem.hpp
lvr2::LVRPoseItem
Definition: LVRPoseItem.hpp:44
lvr2::LVRCamDataItem::m_frustrum_actor
vtkSmartPointer< vtkActor > m_frustrum_actor
Definition: LVRCamDataItem.hpp:89
lvr2::LVRCamDataItem::setVisibility
void setVisibility(bool visible)
Definition: LVRCamDataItem.cpp:92
Transformable.hpp
lvr2::LVRCamDataItem::m_sdm
std::shared_ptr< ScanDataManager > m_sdm
Definition: LVRCamDataItem.hpp:80
lvr2::Pose
Definition: LVRModelBridge.hpp:51
lvr2::LVRCamDataItem::genFrustrum
vtkSmartPointer< vtkActor > genFrustrum(float scale=1.0)
Definition: LVRCamDataItem.cpp:226
lvr2::LVRCamDataItem::m_pose
Pose m_pose
Definition: LVRCamDataItem.hpp:83
Normal.hpp
lvr2::LVRCamDataItem
Definition: LVRCamDataItem.hpp:36
TransformUtils.hpp
lvr2::LVRCvImageItem
Definition: LVRCvImageItem.hpp:22


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