qCC_db version 2.13.alpha (Qt) - 31 May 2022
CloudCompare 3D entities
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
ccColorScalesManager Class Reference

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::SharedScalesMap
 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...
 
ScalesMapmap ()
 Access to the internal map.
 
const ScalesMapmap () 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 ccColorScalesManagerGetUniqueInstance ()
 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.
 

Detailed Description

Color scales manager/container.

Member Enumeration Documentation

◆ DEFAULT_SCALES

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 CCCoreLib::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

Member Function Documentation

◆ removeScale()

void ccColorScalesManager::removeScale ( QString  UUID)

Removes a color scale.

Warning: can't remove default scales!


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