NDEVR
API Documentation
ImageModelDialog.h
1#pragma once
2#include <NDEVR/Editor.h>
3class QBoxLayout;
4namespace NDEVR
5{
6 class QTImageEditor;
7 class ImageView;
8 class QCustomComboBox;
9 class QCustomTextEdit;
13 class NDEVR_API ImageModelDialog: public Editor
14 {
15 public:
21 ImageModelDialog(const DynamicPointer<QTDesignObject> & project, QWidget* parent = nullptr);
22 virtual ~ImageModelDialog();
26 virtual void updateValues() override;
31 void setIsReport(bool is_report);
36 QSize sizeHint() const override;
42 void insertModel(Model& model, bool resize);
47 EditorShowMode showMode() const override;
48 protected:
49 QBoxLayout* m_main_layout = nullptr;
54 };
55}
Provides a modifiable pointer that has shared ownership of a dynamically allocated object.
Definition Pointer.hpp:356
Editor(QWidget *parent=nullptr)
Constructs an Editor with no design object target.
EditorShowMode showMode() const override
Returns the display mode for this editor.
void setIsReport(bool is_report)
Sets whether this dialog is being used in a report context.
QSize sizeHint() const override
Returns the recommended size for this dialog.
QBoxLayout * m_main_layout
The main layout for arranging child widgets.
ImageView * m_image_view
The widget displaying the image preview.
virtual void updateValues() override
Refreshes the dialog UI to reflect the current state of the underlying design object.
QCustomTextEdit * m_description_edit
Text edit for the image description.
ImageModelDialog(const DynamicPointer< QTDesignObject > &project, QWidget *parent=nullptr)
Constructs an ImageModelDialog for the given project.
QCustomComboBox * m_placement_pattern
Combo box for selecting the image placement pattern.
QTImageEditor * m_image_editor
The image editor widget for modifying images.
void insertModel(Model &model, bool resize)
Inserts a model into the dialog for editing.
A widget that shows a raster image or icon.
Definition ImageView.h:44
A core class that represents a node on model hierarchy.
Definition Model.h:292
A compact way to present a list of options to the user.
A widget that is used to edit and display both plain and rich text in a multi-lined format.
A full-featured image editor widget with drawing tools, undo/redo, and image manipulation.
The primary namespace for the NDEVR SDK.
EditorShowMode
Describes how an Editor should be displayed within the application UI.
Definition Editor.h:48
Vector2< g_type > project(const Vector3< g_type > &)
Projects a 3D point to 2D by dividing by the z component.
Definition se3_ops.hpp:50