23#ifndef VCL_QT_MESH_VIEWER_H
24#define VCL_QT_MESH_VIEWER_H
26#include "gui/drawable_object_vector_tree.h"
28#include <vclib/qt/gui/text_edit_logger.h>
29#include <vclib/qt/mesh_viewer_render_app.h>
30#include <vclib/render/drawable/drawable_object_vector.h>
31#include <vclib/render/settings/pbr_viewer_settings.h>
43 using QObject::QObject;
46 bool eventFilter(QObject*
obj,
QEvent* event)
override;
53 enum class RenderMode { CLASSIC = 0, PBR = 1 };
57 std::shared_ptr<vcl::DrawableObjectVector> mDrawableObjectVector;
59 std::shared_ptr<vcl::DrawableObjectVector> mListedDrawableObjects;
60 std::shared_ptr<vcl::DrawableObjectVector> mUnlistedDrawableObjects;
67 void keyPressEvent(
QKeyEvent* event)
override;
74 const std::shared_ptr<vcl::DrawableObjectVector>& v);
76 void setUnlistedDrawableObjectVector(
77 const std::shared_ptr<vcl::DrawableObjectVector>& v);
79 uint selectedDrawableObject()
const;
83 void setDrawVectorIconFunction(
84 const DrawableObjectVectorTree::IconFunction& f);
96 void setPanorama(
const std::string&
panorama);
The RenderApp class is a template class that combines a canvas, a window manager, and a set of drawer...
Definition render_app.h:67
A class representing a line segment in n-dimensional space. The class is parameterized by a PointConc...
Definition segment.h:41
Definition drawable_object_vector_tree.h:40
Definition mesh_viewer.h:42
Definition mesh_viewer.h:50
void renderSettingsUpdated()
Slot called every time that the MeshRenderSettingsFrame emits 'settingsUpdated()',...
Definition mesh_viewer.cpp:271
void visibilityDrawableObjectChanged()
Slot called when the user changed the visibility of an object in the DrawableObjectVectorTree.
Definition mesh_viewer.cpp:221
void selectedDrawableObjectChanged(uint i)
Slot called when the user selected a different DrawableObject in the DrawableObjectVectorFrame.
Definition mesh_viewer.cpp:243
MeshViewerRenderApp & viewer() const
Returns the MeshViewerRenderApp used by this MeshViewer.
Definition mesh_viewer.cpp:56
void setDrawableObjectVector(const std::shared_ptr< vcl::DrawableObjectVector > &v)
Sets the current DrawableObjectVector, and updates the GUI accordingly.
Definition mesh_viewer.cpp:136
Definition text_edit_logger.h:38
Definition pbr_viewer_settings.h:31