3#include <CesiumUtility/Color.h>
96 std::optional<ColorStyle>
fill;
115 std::optional<ColorStyle>
fill;
Classes for loading vector data such as GeoJSON.
LineWidthMode
The mode to use when interpreting a given line width.
@ Meters
The line width will cover this number of meters of the ellipsoid it's rendered on....
@ Pixels
The line will always be this number of pixels in width, no matter how close the user gets to the line...
ColorMode
The mode used for coloring.
@ Random
The color will be chosen randomly.
@ Normal
The normal color mode. The color will be used directly.
Represents an RGBA color value.
Specifies the color of a style type.
ColorMode colorMode
The color mode to be used.
bool operator==(const ColorStyle &rhs) const
Checks if two ColorStyle instances are equal.
CesiumUtility::Color color
The color to be used.
CesiumUtility::Color getColor(size_t randomColorSeed=0) const
Obtains the color specified on this ColorStyle.
The style used to draw polylines and strokes.
bool operator==(const LineStyle &rhs) const
Checks if two LineStyle instances are equal.
double width
The width of this line. If widthMode is set to LineWidthMode::Pixels, this is in pixels....
LineWidthMode widthMode
The mode to use when interpreting width.
The style used to draw a point.
double radius
The radius of the point in pixels.
std::optional< ColorStyle > fill
The color used to fill this point. If std::nullopt, the point will not be filled.
bool operator==(const PointStyle &rhs) const
Checks if two PointStyle instances are equal.
std::optional< LineStyle > outline
The style used to outline this point. If std::nullopt, the point will not be outlined.
The style used to draw a Polygon.
bool operator==(const PolygonStyle &rhs) const
Checks if two PolygonStyle instances are equal.
std::optional< ColorStyle > fill
The color used to fill this polygon. If std::nullopt, the polygon will not be filled.
std::optional< LineStyle > outline
The style used to outline this polygon. If std::nullopt, the polygon will not be outlined.
Style information to use when drawing vector data.
LineStyle line
The style to use when drawing polylines.
VectorStyle()=default
Default constructor for VectorStyle.
PointStyle point
The style to use when drawing points.
VectorStyle(const LineStyle &lineStyle, const PolygonStyle &polygonStyle)
Initializes style information for line and polygon types.
PolygonStyle polygon
The style to use when drawing polygons.
VectorStyle(const LineStyle &lineStyle, const PolygonStyle &polygonStyle, const PointStyle &pointStyle)
Initializes style information for all types.
VectorStyle(const CesiumUtility::Color &color)
Initializes all styles to the given color.
bool operator==(const VectorStyle &rhs) const
Checks if two VectorStyle instances are equal.
std::size_t operator()(const CesiumVectorData::ColorStyle &style) const noexcept
Returns a size_t hash of the provided CesiumVectorData::ColorStyle instance.
std::size_t operator()(const CesiumVectorData::LineStyle &style) const noexcept
Returns a size_t hash of the provided CesiumVectorData::LineStyle instance.
std::size_t operator()(const CesiumVectorData::PointStyle &style) const noexcept
Returns a size_t hash of the provided CesiumVectorData::PointStyle instance.
std::size_t operator()(const CesiumVectorData::PolygonStyle &style) const noexcept
Returns a size_t hash of the provided CesiumVectorData::PolygonStyle instance.
std::size_t operator()(const CesiumVectorData::VectorStyle &style) const noexcept
Returns a size_t hash of the provided CesiumVectorData::VectorStyle instance.