ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ecvDefaultPluginInterface.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 #include <QString>
11 
12 #include "ecvPluginInterface.h"
13 
15 
17 public:
18  virtual ~ccDefaultPluginInterface();
19 
20  virtual bool isCore() const override;
21 
22  virtual QString getName() const override;
23  virtual QString getDescription() const override;
24 
25  virtual QIcon getIcon() const override;
26 
27  virtual ReferenceList getReferences() const override;
28  virtual ContactList getAuthors() const override;
29  virtual ContactList getMaintainers() const override;
30 
31 protected:
32  ccDefaultPluginInterface(const QString& resourcePath = QString());
33 
34 private:
35  void setIID(const QString& iid) override;
36  const QString& IID() const override;
37 
38  ccDefaultPluginData* m_data;
39 };
ccOverlayDialog::addOverridenShortcut
void addOverridenShortcut(Qt::Key key)
Definition: ecvOverlayDialog.cpp:114
ecvColor::white
constexpr Rgb white(MAX, MAX, MAX)
CLGroupDesc::CLGroupDesc
CLGroupDesc(ccHObject *group, const QString &basename, const QString &path=QString())
Definition: ecvCommandLineInterface.cpp:47
ccColorScalesManager::removeScale
void removeScale(QString UUID)
Removes a color scale.
Definition: ecvColorScalesManager.cpp:493
ccColorScaleSelector::ccColorScaleSelector
ccColorScaleSelector(ccColorScalesManager *manager, QWidget *parent, QString defaultButtonIconPath=QString())
Default constructor.
Definition: ecvColorScaleSelector.cpp:18
ColorScaleElementSlider::isSelected
bool isSelected() const
Returns selection state.
Definition: ecvColorScaleEditorWidget.h:38
ccCommandLineInterface::toggleAutoSaveMode
void toggleAutoSaveMode(bool state)
Definition: ecvCommandLineInterface.cpp:151
ccColorScaleEditorWidget::stepSelected
void stepSelected(int index)
Signal emitted when a slider is selected.
ccQtHelpers::SetButtonColor
static void SetButtonColor(QAbstractButton *button, const QColor &col)
Sets a button background color.
Definition: ecvQtHelpers.h:17
ccHObject::filterChildren
unsigned filterChildren(Container &filteredChildren, bool recursive=false, CV_CLASS_ENUM filter=CV_TYPES::OBJECT, bool strict=false) const
Collects the children corresponding to a certain pattern.
Definition: ecvHObject.cpp:611
ecvDisplayTools::DEFAULT_PICKING
@ DEFAULT_PICKING
Definition: ecvDisplayTools.h:127
CLMeshDesc::getEntity
ccHObject * getEntity() override
Definition: ecvCommandLineInterface.cpp:100
ccDefaultPluginInterface::getDescription
virtual QString getDescription() const override
Returns long name/description (for tooltip, etc.)
Definition: ecvDefaultPluginInterface.cpp:104
ccCommandLineInterface::GlobalShiftOptions::FIRST_GLOBAL_SHIFT
@ FIRST_GLOBAL_SHIFT
Definition: ecvCommandLineInterface.h:225
filename
std::string filename
Definition: PointCloudIO.cpp:47
ccPickingHub::m_autoEnableOnActivatedWindow
bool m_autoEnableOnActivatedWindow
Automatically enables the picking mechanism on activated GL windows.
Definition: ecvPickingHub.h:100
ccObject::isKindOf
bool isKindOf(CV_CLASS_ENUM type) const
Definition: ecvObject.h:128
ccColorScaleElement::m_color
QColor m_color
Color.
Definition: ecvColorScale.h:57
ccColorScaleEditorWidget::onSliderModified
void onSliderModified(int sliderIndex)
Slot called when a slider is moved or its color is changed.
Definition: ecvColorScaleEditorWidget.cpp:611
ccRenderToFileDlg::filters
QString filters
Definition: ecvRenderToFileDlg.h:54
ecvDisplayTools
Definition: ecvDisplayTools.h:88
ccColorScaleEditorDialog::saveCurrentScale
bool saveCurrentScale()
Definition: ecvColorScaleEditorDlg.cpp:598
ccDefaultPluginInterface::getName
virtual QString getName() const override
Returns (short) name (for menu entry, etc.)
Definition: ecvDefaultPluginInterface.cpp:100
ecvColor::black
constexpr Rgb black(0, 0, 0)
QtCompat.h
CLCloudDesc::CLCloudDesc
CLCloudDesc()
Definition: ecvCommandLineInterface.cpp:63
x
normal_z x
Definition: my_point_types.h:165
Tuple3Tpl::x
Type x
Definition: CVGeom.h:137
ccOverlayDialog::eventFilter
bool eventFilter(QObject *obj, QEvent *e) override
Definition: ecvOverlayDialog.cpp:118
ccCommandLineInterface::progressDialog
virtual ecvProgressDialog * progressDialog()
Returns a (shared) progress dialog (if any is available)
Definition: ecvCommandLineInterface.cpp:124
ccColorScaleEditorDialog::m_modified
bool m_modified
Modification flag.
Definition: ecvColorScaleEditorDlg.h:126
ccCommandLineInterface::GlobalShiftOptions::customGlobalShift
CCVector3d customGlobalShift
Definition: ecvCommandLineInterface.h:230
ColorScaleElementSliders::indexOf
int indexOf(ColorScaleElementSlider *slider)
Returns the index of a given slider.
Definition: ecvColorScaleEditorWidget.cpp:121
ccHObject::getParent
ccHObject * getParent() const
Returns parent object.
Definition: ecvHObject.h:245
ColorScaleEditorBaseWidget::m_margin
int m_margin
Margin.
Definition: ecvColorScaleEditorWidget.h:128
ccColorScaleEditorWidget
Color scale editor dialog.
Definition: ecvColorScaleEditorWidget.h:224
ccColorScaleElement
Color scale element: one value + one color.
Definition: ecvColorScale.h:22
CLMeshDesc::getCLEntityType
CL_ENTITY_TYPE getCLEntityType() const override
Definition: ecvCommandLineInterface.cpp:106
ccColorScaleEditorDialog::updateMainComboBox
void updateMainComboBox()
Updates main combox box with color scales manager.
Definition: ecvColorScaleEditorDlg.cpp:138
SlidersWidget::SlidersWidget
SlidersWidget(SharedColorScaleElementSliders sliders, QWidget *parent=nullptr, Qt::Orientation orientation=Qt::Horizontal)
Default constructor.
Definition: ecvColorScaleEditorWidget.cpp:240
ecvPS::SaveFile
static const QString SaveFile()
Definition: ecvPersistentSettings.h:21
ccColorScaleEditorWidget::m_slidersWidget
SlidersWidget * m_slidersWidget
Associated sliders widget.
Definition: ecvColorScaleEditorWidget.h:307
data
GraphType data
Definition: graph_cut.cc:138
ColorScaleElementSliders::removeAt
void removeAt(int i)
Remove a given slider.
Definition: ecvColorScaleEditorWidget.cpp:98
ccCommandLineInterface::clouds
virtual std::vector< CLCloudDesc > & clouds()
Currently opened point clouds and their filename.
Definition: ecvCommandLineInterface.cpp:133
ccPickingListener::PickedItem::clickPoint
QPoint clickPoint
Definition: ecvPickingListener.h:29
ccRenderToFileDlg::chooseFile
void chooseFile()
Definition: ecvRenderToFileDlg.cpp:108
ccCommandLineInterface::widgetParent
virtual QDialog * widgetParent()
Returns a (widget) parent (if any is available)
Definition: ecvCommandLineInterface.cpp:126
ccCommandLineInterface::m_loadingParameters
CLLoadParameters m_loadingParameters
File loading parameters.
Definition: ecvCommandLineInterface.h:340
ccColorScale::Shared
QSharedPointer< ccColorScale > Shared
Shared pointer type.
Definition: ecvColorScale.h:74
ccCommandLineInterface::fileLoadingParams
virtual CLLoadParameters & fileLoadingParams()
File loading parameters.
Definition: ecvCommandLineInterface.cpp:129
ccColorScalesManager::getScale
ccColorScale::Shared getScale(QString UUID) const
Returns a color scale based on its UUID.
Definition: ecvColorScalesManager.cpp:478
CV_TYPES::MESH
@ MESH
Definition: CVTypes.h:105
CL_ENTITY_TYPE
CL_ENTITY_TYPE
Definition: ecvCommandLineInterface.h:31
ccColorScaleEditorDialog::exportCustomLabelsList
bool exportCustomLabelsList(ccColorScale::LabelSet &labels)
Exports the custom labels list.
Definition: ecvColorScaleEditorDlg.cpp:496
ccColorScale::LabelSet
std::set< Label > LabelSet
Type of a list of custom labels.
Definition: ecvColorScale.h:160
cloudViewer::core::Maximum
Tensor Maximum(const Tensor &input, const Tensor &other)
Computes the element-wise maximum of input and other. The tensors must have same data type and device...
Definition: TensorFunction.cpp:124
ccPickingHub::addListener
bool addListener(ccPickingListener *listener, bool exclusive=false, bool autoStartPicking=true, ecvDisplayTools::PICKING_MODE mode=ecvDisplayTools::POINT_OR_TRIANGLE_PICKING)
Adds a listener.
Definition: ecvPickingHub.cpp:104
ccColorScaleEditorDialog::changeSelectedStepValue
void changeSelectedStepValue(double)
Definition: ecvColorScaleEditorDlg.cpp:424
ColorBarWidget::paintEvent
void paintEvent(QPaintEvent *e) override
Definition: ecvColorScaleEditorWidget.cpp:170
ccCommandLineInterface::error
virtual bool error(const QString &message) const =0
SliderLabelWidget::setTextColor
void setTextColor(QColor color)
Sets text color.
Definition: ecvColorScaleEditorWidget.h:207
ccColorScaleEditorWidget::onPointClicked
void onPointClicked(double relativePos)
Slot called when a 'point' is clicked on the color bar.
Definition: ecvColorScaleEditorWidget.cpp:566
cloudViewer::PointCloudTpl::getNumberOfScalarFields
unsigned getNumberOfScalarFields() const
Returns the number of associated (and active) scalar fields.
Definition: PointCloudTpl.h:345
qtCompatSplitRegex
QStringList qtCompatSplitRegex(const QString &str, const QString &pattern, Qt::SplitBehavior behavior=Qt::KeepEmptyParts)
Definition: QtCompat.h:308
ecvRenderToFileDlg.h
ccColorScaleEditorWidget::deleteStep
void deleteStep(int index)
Deletes a given step.
Definition: ecvColorScaleEditorWidget.cpp:693
ccPluginInterface::ContactList
QList< Contact > ContactList
Definition: ecvPluginInterface.h:41
CVLog::Print
static bool Print(const char *format,...)
Prints out a formatted message in console.
Definition: CVLog.cpp:113
CV_TYPES::POINT_CLOUD
@ POINT_CLOUD
Definition: CVTypes.h:104
ccOverlayDialog::processFinished
void processFinished(bool accepted)
Signal emitted when process is finished.
CLCloudDesc::pc
ccPointCloud * pc
Definition: ecvCommandLineInterface.h:69
ccColorScale::LoadFromXML
static Shared LoadFromXML(QString filename)
Loads a color scale from an XML file.
Definition: ecvColorScale.cpp:460
ecvColorScaleSelector.h
CL_ENTITY_TYPE::GROUP
@ GROUP
ecvDisplayTools.h
SlidersWidget
All sliders widget.
Definition: ecvColorScaleEditorWidget.h:155
ccOverlayDialog::shown
void shown()
Signal emitted when a 'show' event is detected.
s_defaultEmptyCustomListText
static char s_defaultEmptyCustomListText[]
Definition: ecvColorScaleEditorDlg.cpp:43
ecvMainAppInterface::dbRootObject
virtual ccHObject * dbRootObject()=0
Returns DB root (as a ccHObject)
ccCommandLineInterface::nextCommandIsGlobalShift
bool nextCommandIsGlobalShift() const
Returns whether the nex command is the '-GLOBAL_SHIFT' option.
Definition: ecvCommandLineInterface.cpp:167
ccOverlayDialog::ccOverlayDialog
ccOverlayDialog(QWidget *parent=nullptr, Qt::WindowFlags flags=Qt::FramelessWindowHint|Qt::Tool)
Default constructor.
Definition: ecvOverlayDialog.cpp:25
CLEntityDesc::basename
QString basename
Definition: ecvCommandLineInterface.h:35
ecvDisplayTools::itemPicked
void itemPicked(ccHObject *entity, unsigned subEntityID, int x, int y, const CCVector3 &P)
Signal emitted when a point (or a triangle) is picked.
ccColorScaleSelector::getScale
ccColorScale::Shared getScale(int index) const
Returns a given color scale by index.
Definition: ecvColorScaleSelector.cpp:83
CVLog.h
ccDefaultPluginData
Definition: ecvDefaultPluginInterface.cpp:19
SliderLabelWidget::setPrecision
void setPrecision(int precision)
Sets displayed numbers precision.
Definition: ecvColorScaleEditorWidget.h:210
ccPointCloud
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Definition: ecvPointCloud.h:146
ccRenderToFileDlg::saveSettings
void saveSettings()
Definition: ecvRenderToFileDlg.cpp:90
ecvDisplayTools::SetPickingMode
static void SetPickingMode(PICKING_MODE mode=DEFAULT_PICKING)
Definition: ecvDisplayTools.cpp:2724
ccColorScaleEditorDialog::colorScaleChanged
void colorScaleChanged(int)
Definition: ecvColorScaleEditorDlg.cpp:166
ccPickingListener
Point/triangle picking listener interface.
Definition: ecvPickingListener.h:21
ccRenderToFileDlg::h
unsigned h
Definition: ecvRenderToFileDlg.h:50
ecvMainAppInterface.h
ccPickingHub::togglePickingMode
void togglePickingMode(bool state)
Manual start / stop of the picking mode on the active window.
Definition: ecvPickingHub.cpp:27
ccColorScaleEditorWidget::exportColorScale
void exportColorScale(ccColorScale::Shared &destScale) const
Exports the current color scale.
Definition: ecvColorScaleEditorWidget.cpp:660
ccColorScaleEditorWidget::getSelectedStepIndex
int getSelectedStepIndex() const
Returns currently selected step index.
Definition: ecvColorScaleEditorWidget.h:253
FileIOFilter::LoadParameters::coordinatesShift
CCVector3d * coordinatesShift
If applicable, applied shift on load (optional)
Definition: FileIOFilter.h:71
ccColorScaleSelector::getSelectedScale
ccColorScale::Shared getSelectedScale() const
Returns currently selected color scale.
Definition: ecvColorScaleSelector.cpp:79
ccOverlayDialog::~ccOverlayDialog
~ccOverlayDialog() override
Destructor.
Definition: ecvOverlayDialog.cpp:30
SlidersWidget::mousePressEvent
void mousePressEvent(QMouseEvent *e) override
Definition: ecvColorScaleEditorWidget.cpp:335
color
math::float4 color
Definition: LineSetBuffers.cpp:46
ecvColorScaleEditorWidget.h
ccCommandLineInterface::silentMode
bool silentMode() const
Returns the silent mode.
Definition: ecvCommandLineInterface.cpp:149
ccColorScaleElement::getColor
const QColor & getColor() const
Returns color.
Definition: ecvColorScale.h:43
ecvColorScaleEditorDlg.h
ccColorScaleEditorWidget::getStepCount
int getStepCount() const
Returns the current number of color scale steps.
Definition: ecvColorScaleEditorWidget.h:237
ccRenderToFileDlg::getZoom
float getZoom() const
On dialog acceptance, returns requested zoom.
Definition: ecvRenderToFileDlg.cpp:128
ccPluginInterface::ReferenceList
QList< Reference > ReferenceList
Definition: ecvPluginInterface.h:50
ColorScaleElementSlider::ColorScaleElementSlider
ColorScaleElementSlider(double relativePos=0.0, QColor color=Qt::black, QWidget *parent=nullptr, Qt::Orientation orientation=Qt::Horizontal)
Default constructor.
Definition: ecvColorScaleEditorWidget.cpp:29
ccHObject::Container
std::vector< ccHObject * > Container
Standard instances container (for children, etc.)
Definition: ecvHObject.h:337
ColorScaleElementSlider::paintEvent
void paintEvent(QPaintEvent *e) override
Definition: ecvColorScaleEditorWidget.cpp:46
FileIOFilter::LoadParameters::alwaysDisplayLoadDialog
bool alwaysDisplayLoadDialog
Definition: FileIOFilter.h:67
ColorScaleEditorBaseWidget
Base color scale editor (sub)Widget.
Definition: ecvColorScaleEditorWidget.h:88
ccPickingHub::ccPickingHub
ccPickingHub(ecvMainAppInterface *app, QObject *parent=nullptr)
Default constructor.
Definition: ecvPickingHub.cpp:19
ccCommandLineInterface::GlobalShiftOptions
Global Shift options.
Definition: ecvCommandLineInterface.h:221
ccColorScaleEditorWidget::setSelectedStepIndex
void setSelectedStepIndex(int index, bool silent=false)
Sets currently selected step index.
Definition: ecvColorScaleEditorWidget.cpp:704
ccCommandLineInterface::numericalPrecision
int numericalPrecision() const
Returns the numerical precision.
Definition: ecvCommandLineInterface.cpp:165
ecvGenericMesh.h
ccPickingHub::m_listeners
std::set< ccPickingListener * > m_listeners
Listeners.
Definition: ecvPickingHub.h:88
CCVector3d
Vector3Tpl< double > CCVector3d
Double 3D Vector.
Definition: CVGeom.h:804
FileIOFilter
Generic file I/O filter.
Definition: FileIOFilter.h:46
cloudViewer::PointCloudTpl::getScalarField
ScalarField * getScalarField(int index) const
Returns a pointer to a specific scalar field.
Definition: PointCloudTpl.h:354
ccCommandLineInterface::meshes
virtual std::vector< CLMeshDesc > & meshes()
Currently opened meshes and their filename.
Definition: ecvCommandLineInterface.cpp:139
SlidersWidget::updateAllSlidersPos
void updateAllSlidersPos()
Updates all sliders positions.
Definition: ecvColorScaleEditorWidget.cpp:299
ccColorScalesManager
Color scales manager/container.
Definition: ecvColorScalesManager.h:17
ccOverlayDialog::linkWith
virtual bool linkWith(QWidget *win)
Links the overlay dialog with a MDI window.
Definition: ecvOverlayDialog.cpp:32
ccColorScaleEditorDialog::m_colorScale
ccColorScale::Shared m_colorScale
Current active color scale.
Definition: ecvColorScaleEditorDlg.h:117
ccColorScaleEditorDialog::canChangeCurrentScale
bool canChangeCurrentScale()
If the current scale has been modified, ask the user what to do.
Definition: ecvColorScaleEditorDlg.cpp:185
ccCommandLineInterface::addTimestamp
bool addTimestamp() const
Definition: ecvCommandLineInterface.cpp:161
width
int width
Definition: FileIOFactory.cpp:142
ecvCommandLineInterface.h
ccColorScaleEditorDialog::setAssociatedScalarField
void setAssociatedScalarField(ccScalarField *sf)
Sets associated scalar field (optional)
Definition: ecvColorScaleEditorDlg.cpp:126
ecvFileUtils::defaultDocPath
QString defaultDocPath()
Shortcut for getting the documents location path.
Definition: ecvFileUtils.h:30
CVLog::Error
static bool Error(const char *format,...)
Display an error dialog with formatted message.
Definition: CVLog.cpp:143
ccRenderToFileDlg::m_ui
Ui::RenderToFileDialog * m_ui
Definition: ecvRenderToFileDlg.h:56
ccColorScaleEditorDialog::checkCustomLabelsList
bool checkCustomLabelsList(bool showWarnings)
Checks the custom labels list.
Definition: ecvColorScaleEditorDlg.cpp:527
SliderLabelWidget
All sliders labels widget.
Definition: ecvColorScaleEditorWidget.h:197
ColorScaleElementSlider::m_orientation
Qt::Orientation m_orientation
Widget orientation.
Definition: ecvColorScaleEditorWidget.h:54
size
int size
Definition: FileIOFactory.cpp:130
ccColorScaleElement::setColor
void setColor(QColor color)
Sets color.
Definition: ecvColorScale.h:41
CLCloudDesc::getCLEntityType
CL_ENTITY_TYPE getCLEntityType() const override
Definition: ecvCommandLineInterface.cpp:82
FileIOFilter::LoadParameters::autoComputeNormals
bool autoComputeNormals
Definition: FileIOFilter.h:76
cloudViewer::ScalarField::getMin
ScalarType getMin() const
Returns the minimum value.
Definition: ScalarField.h:72
ColorBarWidget::pointClicked
void pointClicked(double relativePos)
Signal emitted when the mouse (left) button is clicked.
ccColorScaleEditorDialog::onClose
void onClose()
Definition: ecvColorScaleEditorDlg.cpp:741
y
normal_z y
Definition: my_point_types.h:168
ecvColor::LookUpTable::at
Rgb at(size_t color_id)
Definition: ecvColorTypes.cpp:77
CLCloudDesc::getEntity
ccHObject * getEntity() override
Definition: ecvCommandLineInterface.cpp:76
ccColorScaleEditorDialog::setScaleModeToRelative
void setScaleModeToRelative(bool isRelative)
Definition: ecvColorScaleEditorDlg.cpp:309
ecvMainAppInterface
Main application interface (for plugins)
Definition: ecvMainAppInterface.h:24
ccPickingListener::PickedItem::entity
ccHObject * entity
Definition: ecvPickingListener.h:30
ccColorScaleEditorDialog::ccColorScaleEditorDialog
ccColorScaleEditorDialog(ccColorScalesManager *manager, ecvMainAppInterface *mainApp, ccColorScale::Shared currentScale=ccColorScale::Shared(nullptr), QWidget *parent=nullptr)
Default constructor.
Definition: ecvColorScaleEditorDlg.cpp:45
ccPickingHub::m_pickingMode
ecvDisplayTools::PICKING_MODE m_pickingMode
Default picking mode.
Definition: ecvPickingHub.h:97
ccColorScalesManager::BGYR
@ BGYR
Definition: ecvColorScalesManager.h:30
ccColorScaleEditorDialog::m_manager
ccColorScalesManager * m_manager
Color scale manager.
Definition: ecvColorScaleEditorDlg.h:114
ccColorScaleEditorDialog::m_mainApp
ecvMainAppInterface * m_mainApp
Associated application (interface)
Definition: ecvColorScaleEditorDlg.h:134
ccOverlayDialog::reject
void reject() override
Definition: ecvOverlayDialog.cpp:102
ccColorScaleSelector::m_comboBox
QComboBox * m_comboBox
Color scales combo-box.
Definition: ecvColorScaleSelector.h:58
Vector3Tpl< double >
ccColorScaleEditorDialog::isRelativeMode
bool isRelativeMode() const
Definition: ecvColorScaleEditorDlg.cpp:209
ccColorScaleEditorDialog::m_maxAbsoluteVal
double m_maxAbsoluteVal
Current max boundary for absolute scales.
Definition: ecvColorScaleEditorDlg.h:131
ccDefaultPluginInterface::getMaintainers
virtual ContactList getMaintainers() const override
Definition: ecvDefaultPluginInterface.cpp:121
cloudViewer::t::geometry::path
static const std::string path
Definition: PointCloud.cpp:59
e
const double * e
Definition: essential_matrix_poly.h:10
ColorScaleElementSliders::sort
void sort()
Sorts the set.
Definition: ecvColorScaleEditorWidget.cpp:86
ccDefaultPluginInterface
Definition: ecvDefaultPluginInterface.h:16
ccDefaultPluginInterface::ccDefaultPluginInterface
ccDefaultPluginInterface(const QString &resourcePath=QString())
Definition: ecvDefaultPluginInterface.cpp:59
ColorScaleEditorBaseWidget::length
int length() const
Returns useful length.
Definition: ecvColorScaleEditorWidget.h:103
ccPickingHub::m_exclusive
bool m_exclusive
Exclusive mode.
Definition: ecvPickingHub.h:103
CLEntityDesc::path
QString path
Definition: ecvCommandLineInterface.h:36
Ui
Definition: sfEditDlg.h:16
ccOverlayDialog::start
virtual bool start()
Starts process.
Definition: ecvOverlayDialog.cpp:80
ccColorScaleEditorDialog::deletecSelectedStep
void deletecSelectedStep()
Definition: ecvColorScaleEditorDlg.cpp:396
ColorScaleElementSliders::selected
int selected() const
Returns the currently selected slider index (or -1 if none)
Definition: ecvColorScaleEditorWidget.cpp:114
ccPickingHub::onActiveWindowDeleted
void onActiveWindowDeleted(QObject *)
Definition: ecvPickingHub.cpp:70
SlidersWidget::sliderModified
void sliderModified(int index)
Signal emitted when a slider is changed (position or color)
ccDefaultPluginInterface::getReferences
virtual ReferenceList getReferences() const override
Definition: ecvDefaultPluginInterface.cpp:112
ccCommandLineInterface::CLLoadParameters::m_coordinatesShiftEnabled
bool m_coordinatesShiftEnabled
Definition: ecvCommandLineInterface.h:213
ccCommandLineInterface::CLLoadParameters::CLLoadParameters
CLLoadParameters()
Definition: ecvCommandLineInterface.cpp:232
ccColorScaleSelector::m_button
QToolButton * m_button
Spawn color scale editor button.
Definition: ecvColorScaleSelector.h:61
ccCommandLineInterface::m_autoSaveMode
bool m_autoSaveMode
Whether files should be automatically saved (after each process) or not.
Definition: ecvCommandLineInterface.h:331
ccDefaultPluginInterface::getAuthors
virtual ContactList getAuthors() const override
Definition: ecvDefaultPluginInterface.cpp:117
ccColorScaleEditorWidget::importColorScale
void importColorScale(ccColorScale::Shared scale)
Imports the current color scale.
Definition: ecvColorScaleEditorWidget.cpp:645
ccColorScaleSelector::init
void init()
Inits selector with the Color Scales Manager.
Definition: ecvColorScaleSelector.cpp:44
ecvFileUtils.h
ccColorScaleSelector::colorScaleSelected
void colorScaleSelected(int)
Signal emitted when a color scale is selected.
ccColorScaleEditorDialog::changeSelectedStepColor
void changeSelectedStepColor()
Definition: ecvColorScaleEditorDlg.cpp:408
ccColorScaleEditorWidget::m_labelsWidget
SliderLabelWidget * m_labelsWidget
Associated (sliders) labels widget.
Definition: ecvColorScaleEditorWidget.h:310
ccOverlayDialog::onLinkedWindowDeletion
virtual void onLinkedWindowDeletion(QObject *object=nullptr)
Slot called when the linked window is deleted (calls 'onClose')
Definition: ecvOverlayDialog.cpp:74
ccRenderToFileDlg::getFilename
QString getFilename() const
On dialog acceptance, returns requested output filename.
Definition: ecvRenderToFileDlg.cpp:132
ecvProgressDialog
Graphical progress indicator (thread-safe)
Definition: ecvProgressDialog.h:27
CLEntityDesc
Loaded entity description.
Definition: ecvCommandLineInterface.h:34
cloudViewer::ScalarField::getMax
ScalarType getMax() const
Returns the maximum value.
Definition: ScalarField.h:74
CL_ENTITY_TYPE::CLOUD
@ CLOUD
ecvScalarField.h
SliderLabelWidget::paintEvent
void paintEvent(QPaintEvent *e) override
Definition: ecvColorScaleEditorWidget.cpp:427
ccCommandLineInterface::m_addTimestamp
bool m_addTimestamp
Whether a timestamp should be automatically added to output files or not.
Definition: ecvCommandLineInterface.h:334
ccColorScaleEditorDialog::exportCurrentScale
void exportCurrentScale()
Definition: ecvColorScaleEditorDlg.cpp:747
ccCommandLineInterface::processGlobalShiftCommand
bool processGlobalShiftCommand(GlobalShiftOptions &options)
Definition: ecvCommandLineInterface.cpp:172
DEFAULT_MARGIN
static const int DEFAULT_MARGIN
Definition: ecvColorScaleEditorWidget.cpp:21
ecvPersistentSettings.h
ccColorScaleEditorDialog::onApply
void onApply()
Definition: ecvColorScaleEditorDlg.cpp:734
ccRenderToFileDlg::dontScalePoints
bool dontScalePoints() const
On dialog acceptance, returns whether points should be scaled or not.
Definition: ecvRenderToFileDlg.cpp:136
ccGenericMesh
Generic mesh interface.
Definition: ecvGenericMesh.h:28
ccColorScaleEditorWidget::setStepColor
void setStepColor(int index, QColor color)
Sets a given slider color.
Definition: ecvColorScaleEditorWidget.cpp:709
ColorScaleElementSlider::m_selected
bool m_selected
Selection state.
Definition: ecvColorScaleEditorWidget.h:51
ccColorScaleEditorDialog::onStepModified
void onStepModified(int)
Definition: ecvColorScaleEditorDlg.cpp:347
ccColorScale::Create
static ccColorScale::Shared Create(const QString &name)
Creates a new color scale (with auto-generated unique id)
Definition: ecvColorScale.cpp:32
QtCompat::SkipEmptyParts
constexpr Qt::SplitBehavior SkipEmptyParts
Definition: QtCompat.h:302
ccCommandLineInterface::GlobalShiftOptions::AUTO_GLOBAL_SHIFT
@ AUTO_GLOBAL_SHIFT
Definition: ecvCommandLineInterface.h:224
ccColorScaleEditorWidget::setStepRelativePosition
void setStepRelativePosition(int index, double relativePos)
Sets a given slider relative position.
Definition: ecvColorScaleEditorWidget.cpp:716
ccColorScaleEditorDialog::importScale
void importScale()
Definition: ecvColorScaleEditorDlg.cpp:780
SlidersWidget::resizeEvent
void resizeEvent(QResizeEvent *e) override
Definition: ecvColorScaleEditorWidget.cpp:297
ccCommandLineInterface::arguments
virtual QStringList & arguments()=0
Returns the list of arguments.
ccRenderToFileDlg::hideOptions
void hideOptions()
Disable and hide the scale and overlay checkboxes.
Definition: ecvRenderToFileDlg.cpp:121
SliderLabelWidget::m_precision
int m_precision
Precision.
Definition: ecvColorScaleEditorWidget.h:220
ColorBarWidget::ColorBarWidget
ColorBarWidget(SharedColorScaleElementSliders sliders, QWidget *parent=nullptr, Qt::Orientation orientation=Qt::Horizontal)
Default constructor.
Definition: ecvColorScaleEditorWidget.cpp:132
ccColorScaleEditorWidget::getStep
const ColorScaleElementSlider * getStep(int index)
Returns a given slider (pointer on)
Definition: ecvColorScaleEditorWidget.h:242
ccCommandLineInterface::GlobalShiftOptions::NO_GLOBAL_SHIFT
@ NO_GLOBAL_SHIFT
Definition: ecvCommandLineInterface.h:223
Tuple3Tpl::z
Type z
Definition: CVGeom.h:137
ccColorScaleEditorWidget::setLabelPrecision
void setLabelPrecision(int precision)
Sets the labels precision.
Definition: ecvColorScaleEditorWidget.cpp:686
ccColorScaleEditorDialog::deleteCurrentScale
void deleteCurrentScale()
Definition: ecvColorScaleEditorDlg.cpp:683
ccScalarField::setColorScale
void setColorScale(ccColorScale::Shared scale)
Sets associated color scale.
Definition: ecvScalarField.cpp:108
ecvPickingHub.h
ccColorScaleEditorDialog::renameCurrentScale
void renameCurrentScale()
Definition: ecvColorScaleEditorDlg.cpp:664
FileIOFilter::LoadParameters::shiftHandlingMode
ecvGlobalShiftManager::Mode shiftHandlingMode
How to handle big coordinates.
Definition: FileIOFilter.h:64
ccCommandLineInterface::CLLoadParameters::m_coordinatesShift
CCVector3d m_coordinatesShift
Definition: ecvCommandLineInterface.h:214
ecvGlobalShiftManager::NO_DIALOG
@ NO_DIALOG
Definition: ecvGlobalShiftManager.h:30
CL_ENTITY_TYPE::MESH
@ MESH
ColorScaleEditorBaseWidget::m_orientation
Qt::Orientation m_orientation
Orientation.
Definition: ecvColorScaleEditorWidget.h:125
ccOverlayDialog::shortcutTriggered
void shortcutTriggered(int key)
Signal emitted when an overridden key shortcut is pressed.
ccRenderToFileDlg::updateInfo
void updateInfo()
Definition: ecvRenderToFileDlg.cpp:144
ccOverlayDialog::m_processing
bool m_processing
Running/processing state.
Definition: ecvOverlayDialog.h:87
DEFAULT_TEXT_MARGIN
static const int DEFAULT_TEXT_MARGIN
Definition: ecvColorScaleEditorWidget.cpp:22
ccColorScaleEditorDialog::copyCurrentScale
void copyCurrentScale()
Definition: ecvColorScaleEditorDlg.cpp:575
ccColorScaleEditorWidget::setSliders
void setSliders(SharedColorScaleElementSliders sliders) override
Sets associated sliders set.
Definition: ecvColorScaleEditorWidget.cpp:624
ColorScaleElementSliders
Set of color scale elements (widgets)
Definition: ecvColorScaleEditorWidget.h:58
ccColorScaleSelector::setSelectedScale
void setSelectedScale(QString uuid)
Sets selected combo box item (scale) by UUID.
Definition: ecvColorScaleSelector.cpp:93
SlidersWidget::sliderSelected
void sliderSelected(int index)
Signal emitted when a slider is selected.
ccPickingListener::PickedItem::P3D
CCVector3 P3D
Definition: ecvPickingListener.h:32
ecvQtHelpers.h
ccCommandLineInterface::m_precision
int m_precision
Default numerical precision for ASCII output.
Definition: ecvCommandLineInterface.h:337
ecvDisplayTools::PICKING_MODE
PICKING_MODE
Picking mode.
Definition: ecvDisplayTools.h:117
ccDefaultPluginInterface::isCore
virtual bool isCore() const override
Is this plugin a core plugin?
Definition: ecvDefaultPluginInterface.cpp:96
ccCommandLineInterface::autoSaveMode
bool autoSaveMode() const
Definition: ecvCommandLineInterface.cpp:155
ccDefaultPluginInterface::getIcon
virtual QIcon getIcon() const override
Returns icon.
Definition: ecvDefaultPluginInterface.cpp:108
CLGroupDesc::getCLEntityType
CL_ENTITY_TYPE getCLEntityType() const override
Definition: ecvCommandLineInterface.cpp:56
ccOverlayDialog::stop
virtual void stop(bool accepted)
Stops process/dialog.
Definition: ecvOverlayDialog.cpp:91
ccCommandLineInterface::GlobalShiftOptions::CUSTOM_GLOBAL_SHIFT
@ CUSTOM_GLOBAL_SHIFT
Definition: ecvCommandLineInterface.h:226
ccPickingListener::PickedItem::itemIndex
unsigned itemIndex
Definition: ecvPickingListener.h:31
ccDefaultPluginInterface::~ccDefaultPluginInterface
virtual ~ccDefaultPluginInterface()
Definition: ecvDefaultPluginInterface.cpp:88
ccPluginInterface
Standard ECV plugin interface.
Definition: ecvPluginInterface.h:33
ccRenderToFileDlg::w
unsigned w
Definition: ecvRenderToFileDlg.h:49
DEFAULT_SLIDER_SYMBOL_SIZE
static const int DEFAULT_SLIDER_SYMBOL_SIZE
Definition: ecvColorScaleEditorWidget.cpp:20
ccCommandLineInterface::ccCommandLineInterface
ccCommandLineInterface()
Default constructor.
Definition: ecvCommandLineInterface.cpp:113
ccCommandLineInterface::CLLoadParameters
Definition: ecvCommandLineInterface.h:209
ccRenderToFileDlg::currentPath
QString currentPath
Definition: ecvRenderToFileDlg.h:53
ccCommandLineInterface::GlobalShiftOptions::mode
Mode mode
Definition: ecvCommandLineInterface.h:229
ccCommandLineInterface::Command::Command
Command(const QString &name, const QString &keyword)
Default constructor.
Definition: ecvCommandLineInterface.cpp:225
SlidersWidget::updateSliderPos
void updateSliderPos(int index)
Updates slider position.
Definition: ecvColorScaleEditorWidget.cpp:319
SliderLabelWidget::m_textColor
QColor m_textColor
Text color.
Definition: ecvColorScaleEditorWidget.h:217
ccColorScaleEditorWidget::onSliderSelected
void onSliderSelected(int sliderIndex)
Slot called when a slider is selected.
Definition: ecvColorScaleEditorWidget.cpp:639
ccOverlayDialog::m_associatedWin
QWidget * m_associatedWin
Associated (MDI) window.
Definition: ecvOverlayDialog.h:84
CVLog::Warning
static bool Warning(const char *format,...)
Prints out a formatted warning message in console.
Definition: CVLog.cpp:133
ccColorScaleEditorWidget::setLabelColor
void setLabelColor(QColor color)
Sets the labels color.
Definition: ecvColorScaleEditorWidget.cpp:679
ecvColorScalesManager.h
ccColorScaleElement::getRelativePos
double getRelativePos() const
Returns step position (relative to scale boundaries)
Definition: ecvColorScale.h:38
SharedColorScaleElementSliders
QSharedPointer< ColorScaleElementSliders > SharedColorScaleElementSliders
Shared set of color scale elements (widgets)
Definition: ecvColorScaleEditorWidget.h:83
ccColorScaleEditorDialog::toggleCustomLabelsList
void toggleCustomLabelsList(bool)
Definition: ecvColorScaleEditorDlg.cpp:555
ccColorScaleEditorWidget::showLabels
void showLabels(bool state)
Sets whether to show the color elements labels or not.
Definition: ecvColorScaleEditorWidget.cpp:672
CLGroupDesc::getEntity
ccHObject * getEntity() override
Definition: ecvCommandLineInterface.cpp:52
ccScalarField::getColorScale
const ccColorScale::Shared & getColorScale() const
Returns associated color scale.
Definition: ecvScalarField.h:186
ccColorScaleSelector::m_manager
ccColorScalesManager * m_manager
Color scales manager.
Definition: ecvColorScaleSelector.h:55
ccPointCloud::getCurrentDisplayedScalarField
ccScalarField * getCurrentDisplayedScalarField() const
Returns the currently displayed scalar (or 0 if none)
Definition: ecvPointCloud.cpp:3218
ecvDisplayTools::TheInstance
static ecvDisplayTools * TheInstance()
Definition: ecvDisplayTools.cpp:237
ccColorScalesManager::map
ScalesMap & map()
Access to the internal map.
Definition: ecvColorScalesManager.h:87
ccOverlayDialog::m_overriddenKeys
QList< int > m_overriddenKeys
Overridden keys.
Definition: ecvOverlayDialog.h:90
ccRenderToFileDlg::renderOverlayItems
bool renderOverlayItems() const
Whether overlay items should be rendered.
Definition: ecvRenderToFileDlg.cpp:140
ccColorScaleEditorDialog::m_scaleWidget
ccColorScaleEditorWidget * m_scaleWidget
Color scale editor widget.
Definition: ecvColorScaleEditorDlg.h:120
ccColorScaleEditorDialog::m_associatedSF
ccScalarField * m_associatedSF
Associated scalar field.
Definition: ecvColorScaleEditorDlg.h:123
ccCommandLineInterface::toggleSilentMode
void toggleSilentMode(bool state)
Toggles silent mode.
Definition: ecvCommandLineInterface.cpp:145
ecvOverlayDialog.h
ccColorScaleEditorDialog::setActiveScale
void setActiveScale(ccColorScale::Shared currentScale)
Sets active scale.
Definition: ecvColorScaleEditorDlg.cpp:213
ecvPluginInterface.h
CLMeshDesc::mesh
ccGenericMesh * mesh
Definition: ecvCommandLineInterface.h:91
ecvPS::LoadFile
static const QString LoadFile()
Definition: ecvPersistentSettings.h:18
ccColorScalesManager::getDefaultScale
ccColorScale::Shared getDefaultScale(DEFAULT_SCALES scale) const
Returns a pre-defined color scale.
Definition: ecvColorScalesManager.h:68
ccColorScaleEditorDialog::createNewScale
void createNewScale()
Definition: ecvColorScaleEditorDlg.cpp:719
ccHObject
Hierarchical CLOUDVIEWER Object.
Definition: ecvHObject.h:25
ecvPS::CurrentPath
static const QString CurrentPath()
Definition: ecvPersistentSettings.h:39
Tuple3Tpl::y
Type y
Definition: CVGeom.h:137
ccRenderToFileDlg::selectedFilter
QString selectedFilter
Definition: ecvRenderToFileDlg.h:52
ColorScaleElementSlider::IsSmaller
static bool IsSmaller(const ColorScaleElementSlider *e1, const ColorScaleElementSlider *e2)
Comparison operator between two (pointers on) color scale elements.
Definition: ecvColorScaleEditorWidget.h:41
ccCommandLineInterface::setNumericalPrecision
void setNumericalPrecision(int p)
Sets the numerical precision.
Definition: ecvCommandLineInterface.cpp:163
ccPickingHub::processPickedItem
void processPickedItem(ccHObject *, unsigned, int, int, const CCVector3 &)
Definition: ecvPickingHub.cpp:76
ccColorScalesManager::GetUniqueInstance
static ccColorScalesManager * GetUniqueInstance()
Returns unique instance.
Definition: ecvColorScalesManager.cpp:309
ColorScaleElementSlider
Color scale element as a widget.
Definition: ecvColorScaleEditorWidget.h:23
ecvColor::red
constexpr Rgb red(MAX, 0, 0)
ccColorScaleEditorDialog::m_minAbsoluteVal
double m_minAbsoluteVal
Current min boundary for absolute scales.
Definition: ecvColorScaleEditorDlg.h:129
ecvMainAppInterface::refreshAll
virtual void refreshAll(bool only2D=false, bool forceRedraw=true)=0
Redraws all GL windows that have the 'refresh' flag on.
ccColorScaleEditorDialog::setModified
void setModified(bool state)
Sets modification flag state.
Definition: ecvColorScaleEditorDlg.cpp:180
ColorBarWidget::mousePressEvent
void mousePressEvent(QMouseEvent *e) override
Definition: ecvColorScaleEditorWidget.cpp:141
ccColorScaleEditorWidget::stepModified
void stepModified(int index)
Signal emitted when a slider is modified.
CLMeshDesc::CLMeshDesc
CLMeshDesc()
Definition: ecvCommandLineInterface.cpp:89
ColorScaleElementSliders::addSlider
void addSlider(ColorScaleElementSlider *slider)
Adds a slider element and sort the whole set.
Definition: ecvColorScaleEditorWidget.cpp:77
ccPickingListener::PickedItem
Picked item.
Definition: ecvPickingListener.h:26
ccColorScaleEditorDialog::onStepSelected
void onStepSelected(int)
Definition: ecvColorScaleEditorDlg.cpp:325
SlidersWidget::addNewSlider
ColorScaleElementSlider * addNewSlider(double relativePos, QColor color)
Adds a new slider widget.
Definition: ecvColorScaleEditorWidget.cpp:273
ccCommandLineInterface::m_clouds
std::vector< CLCloudDesc > m_clouds
Currently opened point clouds and their filename.
Definition: ecvCommandLineInterface.h:322
ccCommandLineInterface::IsCommand
static bool IsCommand(const QString &token, const char *command)
Test whether a command line token is a valid command keyword or not.
Definition: ecvCommandLineInterface.cpp:119
ccCommandLineInterface::toggleAddTimestamp
void toggleAddTimestamp(bool state)
Definition: ecvCommandLineInterface.cpp:157
ecvColor::blue
constexpr Rgb blue(0, 0, MAX)
CLEntityDesc::CLEntityDesc
CLEntityDesc(const QString &name)
Definition: ecvCommandLineInterface.cpp:24
ccColorScaleEditorWidget::m_colorBarWidget
ColorBarWidget * m_colorBarWidget
Associated color bar.
Definition: ecvColorScaleEditorWidget.h:304
ccColorScalesManager::addScale
void addScale(ccColorScale::Shared scale)
Adds a new color scale.
Definition: ecvColorScalesManager.cpp:482
ccPickingHub::onActiveWindowChanged
void onActiveWindowChanged(QMdiSubWindow *)
Definition: ecvPickingHub.cpp:37
ccColorScaleEditorDialog::relativeModeChanged
void relativeModeChanged(int)
Definition: ecvColorScaleEditorDlg.cpp:174
ccRenderToFileDlg::~ccRenderToFileDlg
~ccRenderToFileDlg() override
Definition: ecvRenderToFileDlg.cpp:119
ccColorScaleSelector::colorScaleEditorSummoned
void colorScaleEditorSummoned()
ccColorScaleEditorDialog::onCustomLabelsListChanged
void onCustomLabelsListChanged()
Definition: ecvColorScaleEditorDlg.cpp:551
ccPickingHub::removeListener
void removeListener(ccPickingListener *listener, bool autoStopPickingIfLast=true)
Removes a listener.
Definition: ecvPickingHub.cpp:165
ccCommandLineInterface::m_meshes
std::vector< CLMeshDesc > m_meshes
Currently opened meshes and their filename.
Definition: ecvCommandLineInterface.h:325
ccRenderToFileDlg::ccRenderToFileDlg
ccRenderToFileDlg(unsigned baseWidth, unsigned baseHeight, QWidget *parent=0)
Default constructor.
Definition: ecvRenderToFileDlg.cpp:28
ecvPointCloud.h
ccColorScaleElement::setRelativePos
void setRelativePos(double pos)
Sets associated value (relative to scale boundaries)
Definition: ecvColorScale.h:34
DEFAULT_LABEL_HEIGHT
static const int DEFAULT_LABEL_HEIGHT
Definition: ecvColorScaleEditorWidget.cpp:23
FileIOFilter::LoadParameters::coordinatesShiftEnabled
bool * coordinatesShiftEnabled
Whether shift on load has been applied after loading (optional)
Definition: FileIOFilter.h:69
ccPickingHub::m_activeWindow
QWidget * m_activeWindow
Active window.
Definition: ecvPickingHub.h:94
SliderLabelWidget::SliderLabelWidget
SliderLabelWidget(SharedColorScaleElementSliders sliders, QWidget *parent=nullptr, Qt::Orientation orientation=Qt::Horizontal)
Default constructor.
Definition: ecvColorScaleEditorWidget.cpp:417
ccScalarField
A scalar field associated to display-related parameters.
Definition: ecvScalarField.h:19
ColorBarWidget
Color bar widget.
Definition: ecvColorScaleEditorWidget.h:132
ColorScaleEditorBaseWidget::m_sliders
SharedColorScaleElementSliders m_sliders
Associated sliders.
Definition: ecvColorScaleEditorWidget.h:122
SlidersWidget::mouseDoubleClickEvent
void mouseDoubleClickEvent(QMouseEvent *e) override
Definition: ecvColorScaleEditorWidget.cpp:389
ccColorScaleEditorDialog::m_ui
Ui::ColorScaleEditorDlg * m_ui
Definition: ecvColorScaleEditorDlg.h:136
CLGroupDesc::groupEntity
ccHObject * groupEntity
Definition: ecvCommandLineInterface.h:54
ColorScaleElementSliders::clear
void clear()
Remove all sliders.
Definition: ecvColorScaleEditorWidget.cpp:90
name
std::string name
Definition: FileIOFactory.cpp:129
ccCommandLineInterface::m_silentMode
bool m_silentMode
Silent mode.
Definition: ecvCommandLineInterface.h:328
SlidersWidget::select
void select(int index, bool silent=false)
Manually selects a slider.
Definition: ecvColorScaleEditorWidget.cpp:254
SlidersWidget::mouseMoveEvent
void mouseMoveEvent(QMouseEvent *e) override
Definition: ecvColorScaleEditorWidget.cpp:350
ccColorScaleEditorWidget::ccColorScaleEditorWidget
ccColorScaleEditorWidget(QWidget *parent=nullptr, Qt::Orientation orientation=Qt::Horizontal)
Default constructor.
Definition: ecvColorScaleEditorWidget.cpp:500