qCC_db version 2.13.alpha (Qt) - 31 May 2022
CloudCompare 3D entities
|
Color scales manager/container. More...
#include <ccColorScalesManager.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 } |
Pre-defined color scales (all relative - i.e. expand to actual SF) More... | |
typedef QMap< QString, ccColorScale::Shared > | ScalesMap |
Color scales map type. | |
Public Member Functions | |
virtual | ~ccColorScalesManager () |
Destructor. | |
ccColorScale::Shared | getDefaultScale (DEFAULT_SCALES scale) const |
Returns a pre-defined color scale. | |
ccColorScale::Shared | getScale (QString UUID) const |
Returns a color scale based on its UUID. | |
void | addScale (ccColorScale::Shared scale) |
Adds a new color scale. | |
void | removeScale (QString UUID) |
Removes a color scale. More... | |
ScalesMap & | map () |
Access to the internal map. | |
const ScalesMap & | map () const |
Access to the internal map (const) | |
void | fromPersistentSettings () |
Loads custom color scales from persistent settings. | |
void | toPersistentSettings () const |
Save custom color scales to persistent settings. | |
Static Public Member Functions | |
static ccColorScalesManager * | GetUniqueInstance () |
Returns unique instance. | |
static void | ReleaseUniqueInstance () |
Releases unique instance. | |
static QString | GetDefaultScaleUUID (int scale) |
Returns a pre-defined color scale UUID. | |
static ccColorScale::Shared | GetDefaultScale (DEFAULT_SCALES scale=BGYR) |
Returns a pre-defined color scale (static shortcut) | |
Protected Member Functions | |
ccColorScalesManager () | |
Default constructor. | |
Static Protected Member Functions | |
static ccColorScale::Shared | Create (DEFAULT_SCALES scaleType) |
Creates a pre-defined color scale. | |
Protected Attributes | |
ScalesMap | m_scales |
Color scales. | |
Color scales manager/container.
Pre-defined color scales (all relative - i.e. expand to actual SF)
void ccColorScalesManager::removeScale | ( | QString | UUID | ) |
Removes a color scale.
Warning: can't remove default scales!