![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Color scales manager/container. More...
#include <ecvColorScalesManager.h>
Public Types | |
| enum | DEFAULT_SCALES { BGYR = 0 , GREY = 1 , BWR = 2 , RY = 3 , RW = 4 , ABS_NORM_GREY = 5 , HSV_360_DEG = 6 , VERTEX_QUALITY = 7 , DIP_BRYW = 8 , DIP_DIR_REPEAT = 9 , VIRIDIS = 10 , BROWN_YELLOW = 11 , YELLOW_BROWN = 12 , TOPO_LANDSERF = 13 , HIGH_CONTRAST = 14 , CIVIDIS } |
| Pre-defined color scales (all relative - i.e. expand to actual SF) More... | |
| typedef QMap< QString, ccColorScale::Shared > | ScalesMap |
| Color scales map type. More... | |
Public Member Functions | |
| virtual | ~ccColorScalesManager () |
| Destructor. More... | |
| ccColorScale::Shared | getDefaultScale (DEFAULT_SCALES scale) const |
| Returns a pre-defined color scale. More... | |
| ccColorScale::Shared | getScale (QString UUID) const |
| Returns a color scale based on its UUID. More... | |
| void | addScale (ccColorScale::Shared scale) |
| Adds a new color scale. More... | |
| void | removeScale (QString UUID) |
| Removes a color scale. More... | |
| ScalesMap & | map () |
| Access to the internal map. More... | |
| const ScalesMap & | map () const |
| Access to the internal map (const) More... | |
| void | fromPersistentSettings () |
| Loads custom color scales from persistent settings. More... | |
| void | toPersistentSettings () const |
| Save custom color scales to persistent settings. More... | |
Static Public Member Functions | |
| static ccColorScalesManager * | GetUniqueInstance () |
| Returns unique instance. More... | |
| static void | ReleaseUniqueInstance () |
| Releases unique instance. More... | |
| static QString | GetDefaultScaleUUID (int scale) |
| Returns a pre-defined color scale UUID. More... | |
| static ccColorScale::Shared | GetDefaultScale (DEFAULT_SCALES scale=BGYR) |
| Returns a pre-defined color scale (static shortcut) More... | |
Protected Member Functions | |
| ccColorScalesManager () | |
| Default constructor. More... | |
Static Protected Member Functions | |
| static ccColorScale::Shared | Create (DEFAULT_SCALES scaleType) |
| Creates a pre-defined color scale. More... | |
Protected Attributes | |
| ScalesMap | m_scales |
| Color scales. More... | |
Color scales manager/container.
Definition at line 17 of file ecvColorScalesManager.h.
| typedef QMap<QString, ccColorScale::Shared> ccColorScalesManager::ScalesMap |
Color scales map type.
Definition at line 84 of file ecvColorScalesManager.h.
Pre-defined color scales (all relative - i.e. expand to actual SF)
| Enumerator | |
|---|---|
| BGYR | Blue-Green-Yellow-Red ramp (default for distances display) |
| GREY | Grey ramp (default for Global Illumination) |
| BWR | Blue-White-Red ramp (for signed SF) |
| RY | Red-Yellow ramp |
| RW | Red-White ramp |
| ABS_NORM_GREY | Absolute normalized grey ramp (intensities between 0 and 1) |
| HSV_360_DEG | HSV colors between 0 and 360 degrees |
| VERTEX_QUALITY | Mesh vertex quality (see cloudViewer::MeshSamplingTools::VertexFlags) |
| DIP_BRYW | Dip (0 - 90 degrees) (Brown-Red-Yellow-White) |
| DIP_DIR_REPEAT | Dip direction (0 - 360 degrees) |
| VIRIDIS | matplotlib library colorscale created by Stéfan van der Walt and Nathaniel Smith |
| BROWN_YELLOW | Brown-Yellow |
| YELLOW_BROWN | Yellow-Brown |
| TOPO_LANDSERF | Topo Landserf (quartile) |
| HIGH_CONTRAST | High contrast |
| CIVIDIS | matplotlib library colorscale - see https://arxiv.org/ftp/arxiv/papers/1712/1712.01662.pdf |
Definition at line 29 of file ecvColorScalesManager.h.
|
virtual |
Destructor.
|
protected |
Default constructor.
| void ccColorScalesManager::addScale | ( | ccColorScale::Shared | scale | ) |
Adds a new color scale.
Referenced by ccColorScaleEditorDialog::copyCurrentScale(), ccColorScaleEditorDialog::createNewScale(), define_ccColorScalesManager(), and ccColorScaleEditorDialog::importScale().
|
staticprotected |
Creates a pre-defined color scale.
| void ccColorScalesManager::fromPersistentSettings | ( | ) |
Loads custom color scales from persistent settings.
Referenced by define_ccColorScalesManager().
|
inline |
Returns a pre-defined color scale.
Definition at line 68 of file ecvColorScalesManager.h.
Referenced by ccColorScaleEditorDialog::ccColorScaleEditorDialog(), define_ccColorScalesManager(), GetDefaultScale(), StereogramDialog::spawnColorScaleEditor(), DistanceMapGenerationDlg::spawnColorScaleEditor(), and StereogramDialog::StereogramDialog().
|
inlinestatic |
Returns a pre-defined color scale (static shortcut)
Definition at line 61 of file ecvColorScalesManager.h.
References getDefaultScale().
Referenced by LasCloudChunk::addLasFieldsToCloud(), ccEntityAction::convertNormalsTo(), define_ccColorScalesManager(), DistanceMapGenerationDlg::DistanceMapGenerationDlg(), qPCV::doAction(), ccRasterizeTool::generateHillshade(), LASFWFFilter::loadFile(), LasIOFilter::loadFile(), LoadScan(), PCVCommand::Process(), ccHistogramWindow::refresh(), ccEntityAction::setColorGradient(), StereogramDialog::StereogramDialog(), and DistanceMapGenerationDlg::update().
|
inlinestatic |
Returns a pre-defined color scale UUID.
Definition at line 56 of file ecvColorScalesManager.h.
Referenced by define_ccColorScalesManager().
| ccColorScale::Shared ccColorScalesManager::getScale | ( | QString | UUID | ) | const |
Returns a color scale based on its UUID.
Referenced by ccColorScaleEditorDialog::colorScaleChanged(), define_ccColorScalesManager(), ccColorScaleEditorDialog::deleteCurrentScale(), ccColorScaleSelector::getScale(), and ccColorScaleEditorDialog::importScale().
|
static |
Returns unique instance.
Referenced by ccColorScaleEditorDialog::colorScaleChanged(), ccPropertiesTreeDelegate::createEditor(), define_ccColorScalesManager(), MainWindow::getColorScalesManager(), and InitEnvironment().
|
inline |
Access to the internal map.
Definition at line 87 of file ecvColorScalesManager.h.
Referenced by ccColorScaleSelector::init(), and ccColorScaleEditorDialog::updateMainComboBox().
|
inline |
Access to the internal map (const)
Definition at line 90 of file ecvColorScalesManager.h.
|
static |
Releases unique instance.
Referenced by define_ccColorScalesManager().
| void ccColorScalesManager::removeScale | ( | QString | UUID | ) |
Removes a color scale.
Warning: can't remove default scales!
Referenced by define_ccColorScalesManager(), and ccColorScaleEditorDialog::deleteCurrentScale().
| void ccColorScalesManager::toPersistentSettings | ( | ) | const |
Save custom color scales to persistent settings.
Referenced by define_ccColorScalesManager(), StereogramDialog::spawnColorScaleEditor(), and DistanceMapGenerationDlg::spawnColorScaleEditor().
|
protected |
Color scales.
Definition at line 106 of file ecvColorScalesManager.h.