11 ScanPtr data, std::shared_ptr<ScanDataManager> sdm,
size_t idx,
12 vtkSmartPointer<vtkRenderer> renderer,
13 QString name, QTreeWidgetItem *parent)
28 eigenToEuler<double>(
m_data->registration, pose);
35 m_pose.
r = pose[3] * 57.295779513;
36 m_pose.
t = pose[4] * 57.295779513;
37 m_pose.
p = pose[5] * 57.295779513;
46 renderer->AddActor(
m_bb->getActor());
55 setCheckState(0, Qt::Checked);
67 m_model->removeActors(renderer);
91 setText(1,
"(Preview)");
94 if (
m_data->points->getUCharChannel(
"spectral_channels"))
105 return m_data->pointsLoaded;
134 if (!this->checkState(0))
139 for (
int i = 0; i < childCount(); i++)
141 QTreeWidgetItem* item = child(i);
145 for(
int j=0; j < item->childCount(); j++)
147 QTreeWidgetItem* cam_item = item->child(j);
158 item->setHidden(!visible);
163 m_model->setVisibility(pc_visible && visible);
LVRScanDataItem(ScanPtr data, std::shared_ptr< ScanDataManager > sdm, size_t idx, vtkSmartPointer< vtkRenderer > renderer, QString name="", QTreeWidgetItem *parent=NULL)
ModelBridgePtr getModelBridgePtr()
std::shared_ptr< ScanDataManager > m_sdm
QTreeWidgetItem * m_showSpectralsItem
LVRBoundingBoxItem * m_bbItem
void setVisibility(bool visible)
std::shared_ptr< Scan > ScanPtr
Shared pointer to scans.
Main class for conversion of LVR model instances to vtk actors. This class parses the internal model ...
boost::shared_ptr< LVRModelBridge > ModelBridgePtr
void setVisibility(bool visible)
void loadPointCloudData(vtkSmartPointer< vtkRenderer > renderer)
void setPose(const Pose &pose)
vtkSmartPointer< vtkRenderer > m_renderer
void setVisibility(bool visible, bool pc_visible)
std::shared_ptr< Model > ModelPtr
BoundingBoxBridgePtr m_bb
LVRPointCloudItem * m_pcItem
boost::shared_ptr< LVRBoundingBoxBridge > BoundingBoxBridgePtr
void unloadPointCloudData(vtkSmartPointer< vtkRenderer > renderer)
bool isPointCloudLoaded()