cesium-native 0.51.0
Loading...
Searching...
No Matches
CesiumVectorData::ColorStyle Struct Reference

Specifies the color of a style type. More...

#include <CesiumVectorData/VectorStyle.h>

Inheritance diagram for CesiumVectorData::ColorStyle:
CesiumVectorData::LineStyle

Public Member Functions

CesiumUtility::Color getColor (size_t randomColorSeed=0) const
 Obtains the color specified on this ColorStyle.
 

Public Attributes

CesiumUtility::Color color = CesiumUtility::Color(0xff, 0xff, 0xff, 0xff)
 The color to be used.
 
ColorMode colorMode = ColorMode::Normal
 The color mode to be used.
 

Detailed Description

Specifies the color of a style type.

Definition at line 31 of file VectorStyle.h.

Member Function Documentation

◆ getColor()

CesiumUtility::Color CesiumVectorData::ColorStyle::getColor ( size_t randomColorSeed = 0) const

Obtains the color specified on this ColorStyle.

For ColorMode::Normal, this just returns the value of color. For ColorMode::Random, this returns a randomized value obtained based on the rules described in ColorMode.

Parameters
randomColorSeedThe seed for the random color to be generated, if colorMode is set to Random. The same color will always be returned for a given seed, but nearby seeds will not usually return nearby colors.

Member Data Documentation

◆ color

CesiumUtility::Color CesiumVectorData::ColorStyle::color = CesiumUtility::Color(0xff, 0xff, 0xff, 0xff)

The color to be used.

Definition at line 33 of file VectorStyle.h.

◆ colorMode

ColorMode CesiumVectorData::ColorStyle::colorMode = ColorMode::Normal

The color mode to be used.

Definition at line 35 of file VectorStyle.h.


The documentation for this struct was generated from the following file: