ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ccColorFromScalarDlg Class Reference

Dialog to change the color levels. More...

#include <ecvColorFromScalarDlg.h>

Inheritance diagram for ccColorFromScalarDlg:
Collaboration diagram for ccColorFromScalarDlg:

Public Member Functions

 ccColorFromScalarDlg (QWidget *parent, ccPointCloud *pointCloud)
 Default constructor. More...
 
 ~ccColorFromScalarDlg ()
 
void refreshDisplay ()
 
void updateHistogram (int)
 

Static Public Attributes

static constexpr int c_channelCount = 4
 

Protected Member Functions

void onChannelChangedR (int)
 
void onChannelChangedG (int)
 
void onChannelChangedB (int)
 
void onChannelChangedA (int)
 
void updateChannel (int)
 
void updateSpinBoxLimits (int)
 
void setDefaultSatValuePerChannel (int)
 
void updateColormaps ()
 
void minChangedR (double val)
 
void maxChangedR (double val)
 
void minChangedG (double val)
 
void maxChangedG (double val)
 
void minChangedB (double val)
 
void maxChangedB (double val)
 
void minChangedA (double val)
 
void maxChangedA (double val)
 
void minSpinChangedR (double val)
 
void maxSpinChangedR (double val)
 
void minSpinChangedG (double val)
 
void maxSpinChangedG (double val)
 
void minSpinChangedB (double val)
 
void maxSpinChangedB (double val)
 
void minSpinChangedA (double val)
 
void maxSpinChangedA (double val)
 
void toggleFixedR ()
 
void toggleFixedG ()
 
void toggleFixedB ()
 
void toggleFixedA ()
 
void toggleColors (int val)
 
void toggleColorMode (bool state)
 
void minChanged (int n, double val, bool slider)
 
void maxChanged (int n, double val, bool slider)
 
void onApply ()
 
void disableAllButCancel ()
 
void resizeEvent (QResizeEvent *event)
 

Protected Attributes

bool m_prevFixed [c_channelCount]
 
ccHistogramWindowm_histograms [c_channelCount]
 Associated histogram view. More...
 
ccScalarFieldm_scalars [c_channelCount]
 
QComboBox * m_combos [c_channelCount]
 
QDoubleSpinBox * m_boxes_min [c_channelCount]
 
QDoubleSpinBox * m_boxes_max [c_channelCount]
 
QLabel * m_labels_min [c_channelCount]
 
QLabel * m_labels_max [c_channelCount]
 
QCheckBox * m_reverse [c_channelCount]
 
double m_minSat [c_channelCount]
 
double m_maxSat [c_channelCount]
 
ccColorScale::Shared m_colors [c_channelCount]
 Associated colour scales. More...
 
ccPointCloudm_cloud
 Associated point cloud (color source) More...
 
ccColorScale::Shared m_storedOrigColorScale
 Associated point cloud scalar field original scale (to restore on exit) More...
 
ccScalarField::Range m_storedOrigSatRange
 
ccScalarField::Range m_storedOrigDisplayRange
 
bool m_systemInvalid
 

Detailed Description

Dialog to change the color levels.

Definition at line 25 of file ecvColorFromScalarDlg.h.

Constructor & Destructor Documentation

◆ ccColorFromScalarDlg()

ccColorFromScalarDlg::ccColorFromScalarDlg ( QWidget *  parent,
ccPointCloud pointCloud 
)

Default constructor.

Definition at line 29 of file ecvColorFromScalarDlg.cpp.

References c_channelCount, disableAllButCancel(), ccScalarField::displayRange(), CVLog::Error(), ccHistogramWindow::fromBinArray(), ccScalarField::getColorScale(), ccPointCloud::getCurrentDisplayedScalarField(), ccPointCloud::getCurrentDisplayedScalarFieldIndex(), cloudViewer::PointCloudTpl< T >::getNumberOfScalarFields(), cloudViewer::PointCloudTpl< T >::getScalarFieldName(), m_boxes_max, m_boxes_min, m_cloud, m_colors, m_combos, m_histograms, m_labels_max, m_labels_min, m_prevFixed, m_reverse, m_scalars, m_storedOrigColorScale, m_storedOrigDisplayRange, m_storedOrigSatRange, m_systemInvalid, maxChangedA(), maxChangedB(), maxChangedG(), maxChangedR(), maxSpinChangedA(), maxSpinChangedB(), maxSpinChangedG(), maxSpinChangedR(), minChangedA(), minChangedB(), minChangedG(), minChangedR(), minSpinChangedA(), minSpinChangedB(), minSpinChangedG(), minSpinChangedR(), onApply(), onChannelChangedA(), onChannelChangedB(), onChannelChangedG(), onChannelChangedR(), ccHObject::redrawDisplay(), ccScalarField::saturationRange(), ccScalarField::setColorScale(), ccPointCloud::setCurrentDisplayedScalarField(), setDefaultSatValuePerChannel(), ccHistogramWindow::setRefreshAfterResize(), ccHistogramWindow::sfMaxSatValChanged(), ccHistogramWindow::sfMinSatValChanged(), toggleColorMode(), toggleColors(), toggleFixedA(), toggleFixedB(), toggleFixedG(), toggleFixedR(), updateChannel(), updateColormaps(), and updateHistogram().

◆ ~ccColorFromScalarDlg()

Member Function Documentation

◆ disableAllButCancel()

void ccColorFromScalarDlg::disableAllButCancel ( )
protected

◆ maxChanged()

◆ maxChangedA()

void ccColorFromScalarDlg::maxChangedA ( double  val)
inlineprotected

Definition at line 57 of file ecvColorFromScalarDlg.h.

References maxChanged().

Referenced by ccColorFromScalarDlg().

◆ maxChangedB()

void ccColorFromScalarDlg::maxChangedB ( double  val)
inlineprotected

Definition at line 55 of file ecvColorFromScalarDlg.h.

References maxChanged().

Referenced by ccColorFromScalarDlg().

◆ maxChangedG()

void ccColorFromScalarDlg::maxChangedG ( double  val)
inlineprotected

Definition at line 53 of file ecvColorFromScalarDlg.h.

References maxChanged().

Referenced by ccColorFromScalarDlg().

◆ maxChangedR()

void ccColorFromScalarDlg::maxChangedR ( double  val)
inlineprotected

Definition at line 51 of file ecvColorFromScalarDlg.h.

References maxChanged().

Referenced by ccColorFromScalarDlg().

◆ maxSpinChangedA()

void ccColorFromScalarDlg::maxSpinChangedA ( double  val)
inlineprotected

Definition at line 65 of file ecvColorFromScalarDlg.h.

References maxChanged().

Referenced by ccColorFromScalarDlg().

◆ maxSpinChangedB()

void ccColorFromScalarDlg::maxSpinChangedB ( double  val)
inlineprotected

Definition at line 63 of file ecvColorFromScalarDlg.h.

References maxChanged().

Referenced by ccColorFromScalarDlg().

◆ maxSpinChangedG()

void ccColorFromScalarDlg::maxSpinChangedG ( double  val)
inlineprotected

Definition at line 61 of file ecvColorFromScalarDlg.h.

References maxChanged().

Referenced by ccColorFromScalarDlg().

◆ maxSpinChangedR()

void ccColorFromScalarDlg::maxSpinChangedR ( double  val)
inlineprotected

Definition at line 59 of file ecvColorFromScalarDlg.h.

References maxChanged().

Referenced by ccColorFromScalarDlg().

◆ minChanged()

◆ minChangedA()

void ccColorFromScalarDlg::minChangedA ( double  val)
inlineprotected

Definition at line 56 of file ecvColorFromScalarDlg.h.

References minChanged().

Referenced by ccColorFromScalarDlg().

◆ minChangedB()

void ccColorFromScalarDlg::minChangedB ( double  val)
inlineprotected

Definition at line 54 of file ecvColorFromScalarDlg.h.

References minChanged().

Referenced by ccColorFromScalarDlg().

◆ minChangedG()

void ccColorFromScalarDlg::minChangedG ( double  val)
inlineprotected

Definition at line 52 of file ecvColorFromScalarDlg.h.

References minChanged().

Referenced by ccColorFromScalarDlg().

◆ minChangedR()

void ccColorFromScalarDlg::minChangedR ( double  val)
inlineprotected

Definition at line 50 of file ecvColorFromScalarDlg.h.

References minChanged().

Referenced by ccColorFromScalarDlg().

◆ minSpinChangedA()

void ccColorFromScalarDlg::minSpinChangedA ( double  val)
inlineprotected

Definition at line 64 of file ecvColorFromScalarDlg.h.

References minChanged().

Referenced by ccColorFromScalarDlg().

◆ minSpinChangedB()

void ccColorFromScalarDlg::minSpinChangedB ( double  val)
inlineprotected

Definition at line 62 of file ecvColorFromScalarDlg.h.

References minChanged().

Referenced by ccColorFromScalarDlg().

◆ minSpinChangedG()

void ccColorFromScalarDlg::minSpinChangedG ( double  val)
inlineprotected

Definition at line 60 of file ecvColorFromScalarDlg.h.

References minChanged().

Referenced by ccColorFromScalarDlg().

◆ minSpinChangedR()

void ccColorFromScalarDlg::minSpinChangedR ( double  val)
inlineprotected

Definition at line 58 of file ecvColorFromScalarDlg.h.

References minChanged().

Referenced by ccColorFromScalarDlg().

◆ onApply()

◆ onChannelChangedA()

void ccColorFromScalarDlg::onChannelChangedA ( int  )
inlineprotected

Definition at line 44 of file ecvColorFromScalarDlg.h.

References updateChannel().

Referenced by ccColorFromScalarDlg().

◆ onChannelChangedB()

void ccColorFromScalarDlg::onChannelChangedB ( int  )
inlineprotected

Definition at line 43 of file ecvColorFromScalarDlg.h.

References updateChannel().

Referenced by ccColorFromScalarDlg().

◆ onChannelChangedG()

void ccColorFromScalarDlg::onChannelChangedG ( int  )
inlineprotected

Definition at line 42 of file ecvColorFromScalarDlg.h.

References updateChannel().

Referenced by ccColorFromScalarDlg().

◆ onChannelChangedR()

void ccColorFromScalarDlg::onChannelChangedR ( int  )
inlineprotected

Definition at line 41 of file ecvColorFromScalarDlg.h.

References updateChannel().

Referenced by ccColorFromScalarDlg().

◆ refreshDisplay()

void ccColorFromScalarDlg::refreshDisplay ( )

◆ resizeEvent()

void ccColorFromScalarDlg::resizeEvent ( QResizeEvent *  event)
protected

Definition at line 536 of file ecvColorFromScalarDlg.cpp.

References refreshDisplay().

◆ setDefaultSatValuePerChannel()

◆ toggleColorMode()

void ccColorFromScalarDlg::toggleColorMode ( bool  state)
protected

Definition at line 367 of file ecvColorFromScalarDlg.cpp.

References m_systemInvalid, refreshDisplay(), and updateColormaps().

Referenced by ccColorFromScalarDlg().

◆ toggleColors()

void ccColorFromScalarDlg::toggleColors ( int  val)
protected

Definition at line 357 of file ecvColorFromScalarDlg.cpp.

References m_systemInvalid, refreshDisplay(), and updateColormaps().

Referenced by ccColorFromScalarDlg().

◆ toggleFixedA()

void ccColorFromScalarDlg::toggleFixedA ( )
inlineprotected

Definition at line 69 of file ecvColorFromScalarDlg.h.

References updateChannel().

Referenced by ccColorFromScalarDlg().

◆ toggleFixedB()

void ccColorFromScalarDlg::toggleFixedB ( )
inlineprotected

Definition at line 68 of file ecvColorFromScalarDlg.h.

References updateChannel().

Referenced by ccColorFromScalarDlg().

◆ toggleFixedG()

void ccColorFromScalarDlg::toggleFixedG ( )
inlineprotected

Definition at line 67 of file ecvColorFromScalarDlg.h.

References updateChannel().

Referenced by ccColorFromScalarDlg().

◆ toggleFixedR()

void ccColorFromScalarDlg::toggleFixedR ( )
inlineprotected

Definition at line 66 of file ecvColorFromScalarDlg.h.

References updateChannel().

Referenced by ccColorFromScalarDlg().

◆ updateChannel()

◆ updateColormaps()

◆ updateHistogram()

◆ updateSpinBoxLimits()

Member Data Documentation

◆ c_channelCount

◆ m_boxes_max

QDoubleSpinBox* ccColorFromScalarDlg::m_boxes_max[c_channelCount]
protected

◆ m_boxes_min

QDoubleSpinBox* ccColorFromScalarDlg::m_boxes_min[c_channelCount]
protected

◆ m_cloud

ccPointCloud* ccColorFromScalarDlg::m_cloud
protected

Associated point cloud (color source)

Definition at line 100 of file ecvColorFromScalarDlg.h.

Referenced by ccColorFromScalarDlg(), onApply(), updateChannel(), updateSpinBoxLimits(), and ~ccColorFromScalarDlg().

◆ m_colors

ccColorScale::Shared ccColorFromScalarDlg::m_colors[c_channelCount]
protected

◆ m_combos

QComboBox* ccColorFromScalarDlg::m_combos[c_channelCount]
protected

◆ m_histograms

ccHistogramWindow* ccColorFromScalarDlg::m_histograms[c_channelCount]
protected

◆ m_labels_max

QLabel* ccColorFromScalarDlg::m_labels_max[c_channelCount]
protected

◆ m_labels_min

QLabel* ccColorFromScalarDlg::m_labels_min[c_channelCount]
protected

◆ m_maxSat

double ccColorFromScalarDlg::m_maxSat[c_channelCount]
protected

◆ m_minSat

double ccColorFromScalarDlg::m_minSat[c_channelCount]
protected

◆ m_prevFixed

bool ccColorFromScalarDlg::m_prevFixed[c_channelCount]
protected

Definition at line 80 of file ecvColorFromScalarDlg.h.

Referenced by ccColorFromScalarDlg(), and updateHistogram().

◆ m_reverse

QCheckBox* ccColorFromScalarDlg::m_reverse[c_channelCount]
protected

◆ m_scalars

◆ m_storedOrigColorScale

ccColorScale::Shared ccColorFromScalarDlg::m_storedOrigColorScale
protected

Associated point cloud scalar field original scale (to restore on exit)

Definition at line 102 of file ecvColorFromScalarDlg.h.

Referenced by ccColorFromScalarDlg(), and ~ccColorFromScalarDlg().

◆ m_storedOrigDisplayRange

ccScalarField::Range ccColorFromScalarDlg::m_storedOrigDisplayRange
protected

Definition at line 104 of file ecvColorFromScalarDlg.h.

Referenced by ccColorFromScalarDlg(), and ~ccColorFromScalarDlg().

◆ m_storedOrigSatRange

ccScalarField::Range ccColorFromScalarDlg::m_storedOrigSatRange
protected

Definition at line 103 of file ecvColorFromScalarDlg.h.

Referenced by ccColorFromScalarDlg(), and ~ccColorFromScalarDlg().

◆ m_systemInvalid


The documentation for this class was generated from the following files: