3Depict
|
#include <basics.h>
Public Member Functions | |
ColourRGBA () | |
ColourRGBA (unsigned char, unsigned char, unsigned char) | |
ColourRGBA (unsigned char, unsigned char, unsigned char, unsigned char) | |
unsigned char | r () const |
unsigned char | g () const |
unsigned char | b () const |
unsigned char | a () const |
bool | parse (const std::string &) |
std::string | rgbString () const |
std::string | rgbaString () const |
RGBf | toFloat () const |
void | fromRGBAf (const ColourRGBAf &) |
ColourRGBAf | toRGBAf () const |
void | fromRGBf (const RGBf &) |
bool | operator== (const ColourRGBA &oth) const |
bool | operator== (const ColourRGBAf &oth) const |
bool | operator== (const RGBf &oth) const |
bool | operator!= (const ColourRGBA &oth) const |
bool | operator!= (const ColourRGBAf &oth) const |
unsigned char | at (unsigned int idx) const |
Public Attributes | |
unsigned char | data [4] |
ColourRGBA::ColourRGBA | ( | ) |
ColourRGBA::ColourRGBA | ( | unsigned char | r, |
unsigned char | g, | ||
unsigned char | b | ||
) |
ColourRGBA::ColourRGBA | ( | unsigned char | r, |
unsigned char | g, | ||
unsigned char | b, | ||
unsigned char | a | ||
) |
unsigned char ColourRGBA::a | ( | ) | const |
References data.
Referenced by ColourRGBA(), ColourRGBAf::ColourRGBAf(), BoundCube::makeUnion(), and parse().
unsigned char ColourRGBA::at | ( | unsigned int | idx | ) | const |
unsigned char ColourRGBA::b | ( | ) | const |
References data.
Referenced by ColourRGBA(), ColourRGBAf::ColourRGBAf(), RangeFile::detectFileType(), BoundCube::makeUnion(), parse(), rmFile(), updateCameraPropertyGrid(), and updateFilterPropertyGrid().
void ColourRGBA::fromRGBAf | ( | const ColourRGBAf & | ) |
void ColourRGBA::fromRGBf | ( | const RGBf & | oth | ) |
References RGBf::blue, data, RGBf::green, and RGBf::red.
Referenced by RangeFile::write().
unsigned char ColourRGBA::g | ( | ) | const |
References data.
Referenced by ColourRGBA(), ColourRGBAf::ColourRGBAf(), RangeFile::detectFileType(), parse(), updateCameraPropertyGrid(), and updateFilterPropertyGrid().
bool ColourRGBA::operator!= | ( | const ColourRGBA & | oth | ) | const |
bool ColourRGBA::operator!= | ( | const ColourRGBAf & | oth | ) | const |
bool ColourRGBA::operator== | ( | const ColourRGBA & | oth | ) | const |
References data.
bool ColourRGBA::operator== | ( | const ColourRGBAf & | oth | ) | const |
References ColourRGBAf::at(), and data.
bool ColourRGBA::operator== | ( | const RGBf & | oth | ) | const |
References RGBf::blue, data, RGBf::green, and RGBf::red.
bool ColourRGBA::parse | ( | const std::string & | str | ) |
References a(), b(), data, g(), hexStrToUChar(), and r().
Referenced by RangeFile::detectFileType(), Filter::getBaseErrString(), InterpData::getInterpolatedData(), AnnotateFilter::readState(), RangeFileFilter::readState(), BoundingBoxFilter::setProperty(), SpectrumPlotFilter::setProperty(), AnnotateFilter::setProperty(), RangeFileFilter::setProperty(), ProfileFilter::setProperty(), VoxeliseFilter::setProperty(), DataLoadFilter::setProperty(), SpatialAnalysisFilter::setProperty(), updateCameraPropertyGrid(), and updateFilterPropertyGrid().
unsigned char ColourRGBA::r | ( | ) | const |
References data.
Referenced by ColourRGBA(), ColourRGBAf::ColourRGBAf(), RangeFile::detectFileType(), parse(), BoundCube::setBounds(), updateCameraPropertyGrid(), and updateFilterPropertyGrid().
std::string ColourRGBA::rgbaString | ( | ) | const |
References data, and ucharToHexStr().
Referenced by InterpData::getInterpolatedData(), SpectrumPlotFilter::getProperties(), RangeFileFilter::getProperties(), DataLoadFilter::getProperties(), SpatialAnalysisFilter::getProperties(), and AnnotateFilter::writeState().
std::string ColourRGBA::rgbString | ( | ) | const |
References data, and ucharToHexStr().
Referenced by ColourKeyFrameDialog::getEndValue(), BoundingBoxFilter::getProperties(), AnnotateFilter::getProperties(), ProfileFilter::getProperties(), VoxeliseFilter::getProperties(), SpatialAnalysisFilter::getProperties(), getPropValueFromEvent(), ColourKeyFrameDialog::getStartValue(), mglColourCode(), RangeFile::write(), and RangeFileFilter::writeState().
RGBf ColourRGBA::toFloat | ( | ) | const |
References RGBf::blue, data, RGBf::green, and RGBf::red.
ColourRGBAf ColourRGBA::toRGBAf | ( | ) | const |
References data.
Referenced by AnnotateFilter::readState(), RangeFileFilter::readState(), SpectrumPlotFilter::setProperty(), BoundingBoxFilter::setProperty(), AnnotateFilter::setProperty(), RangeFileFilter::setProperty(), ProfileFilter::setProperty(), VoxeliseFilter::setProperty(), DataLoadFilter::setProperty(), and SpatialAnalysisFilter::setProperty().
unsigned char ColourRGBA::data[4] |
Referenced by a(), ColourRGBAf::a(), at(), ColourRGBAf::at(), b(), ColourRGBAf::b(), ColourRGBA(), ColourRGBAf::ColourRGBAf(), fromRGBf(), g(), ColourRGBAf::g(), ColourRGBAf::interpolate(), ColourRGBAf::operator=(), operator==(), ColourRGBAf::operator==(), ColourRGBAf::operator[](), parse(), r(), ColourRGBAf::r(), rgbaString(), rgbString(), ColourRGBAf::toColourRGBA(), toFloat(), toRGBAf(), and ColourRGBAf::toRGBf().