HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
color.h File Reference
#include "pxr/pxr.h"
#include "pxr/base/gf/colorSpace.h"
#include "pxr/base/gf/vec2f.h"
#include "pxr/base/gf/vec3f.h"
#include "pxr/base/gf/matrix3f.h"
#include "pxr/base/gf/api.h"
#include <iosfwd>
+ Include dependency graph for color.h:

Go to the source code of this file.

Classes

class  GfColor
 Represents a color in a specific color space.Basic type: Color. More...
 

Functions

bool GfIsClose (GfColor const &c1, GfColor const &c2, double tolerance)
 
std::ostream & operator<< (std::ostream &, GfColor const &)
 Stream insertion operator for outputting GfColor objects to an output stream. More...
 

Function Documentation

bool GfIsClose ( GfColor const &  c1,
GfColor const &  c2,
double  tolerance 
)
inline

Tests for equality of the RGB tuple in a color with a given tolerance, returning true if the length of the difference vector is less than or equal to tolerance. This comparison does not adapt the colors to the same color space before comparing, and is not a perceptual comparison.

Definition at line 114 of file color.h.

std::ostream& operator<< ( std::ostream &  ,
GfColor const &   
)

Stream insertion operator for outputting GfColor objects to an output stream.

Output a GfColor.

This operator allows GfColor objects to be written to an output stream.

Parameters
osThe output stream to write to.
colorThe GfColor object to be outputted.
Returns
The output stream after writing the GfColor object.