7#ifndef PXR_BASE_GF_COLOR_H
8#define PXR_BASE_GF_COLOR_H
14#include "pxr/base/gf/colorSpace.h"
18#include "pxr/base/gf/api.h"
22PXR_NAMESPACE_OPEN_SCOPE
100 GfVec2f _GetChromaticity()
const;
105 void _SetFromChromaticity(
const GfVec2f& xy);
130PXR_NAMESPACE_CLOSE_SCOPE
Represents a color in a specific color space.
GF_API GfColor(const GfColor &color, const GfColorSpace &colorSpace)
Construct a color by converting the source color into the specified color space.
GF_API void SetFromPlanckianLocus(float kelvin, float luminance)
Set the color from the Planckian locus (blackbody radiation) temperature in Kelvin,...
bool operator!=(const GfColor &rh) const
Inequality operator.
GfVec3f _rgb
The RGB tuple.
GfColorSpace GetColorSpace() const
Get the color space.
bool operator==(const GfColor &rh) const
Equality operator.
GfVec3f GetRGB() const
Get the RGB tuple.
GF_API GfColor()
The default constructor creates black, in the "lin_rec709" color space.
GF_API GfColor(const GfVec3f &rgb, const GfColorSpace &colorSpace)
Construct a color from an RGB tuple and color space.
GF_API GfColor(const GfColorSpace &colorSpace)
Construct a black color in the given color space.
GfColorSpace _colorSpace
The color space.
Basic type for a vector of 2 float components.
Basic type for a vector of 3 float components.
bool GfIsClose(GfColor const &c1, GfColor const &c2, double tolerance)
Tests for equality of the RGB tuple in a color with a given tolerance, returning true if the length o...
GF_API std::ostream & operator<<(std::ostream &, const GfBBox3d &)
Output a GfBBox3d using the format [(range) matrix zeroArea].