Constructors & DestructorUse the constructors and destructor in this group to create and destroy objects of class IBaseColor.
![]() |
public:
virtual ~IBaseColor()
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
IBaseColor(EPredefinedColor commonlyUsedColor)
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
public:
IBaseColor(const IBaseColor&)
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
public:
IBaseColor(CharIntensity gray, CharIntensity opacity = 255)
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
public:
IBaseColor( CharIntensity red, CharIntensity green, CharIntensity blue, CharIntensity opacity = 255 )
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
public:
IBaseColor()
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
Assignment OperatorUse the operator in this group to assign the given IBaseColor object to the target one.
![]() |
public:
IBaseColor& operator =(const IBaseColor& source)
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
Color IndexesUse the functions in this group to create a color index from intensity values and to allow the object to modify itself from a color index value.
![]() |
protected:
long createIndex( CharIntensity r, CharIntensity g, CharIntensity b )
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
protected:
void rgbFromIndex(unsigned long index)
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
Comparing Two IBaseColor Objects for Equality or InequalityUse the functions in this group to test whether two IBaseColor objects are inequal or inequal.
![]() |
public:
bool operator !=(const IBaseColor&) const
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
virtual bool operator ==(const IBaseColor&) const
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
Converting Colors Across Color SpacesUse the function in this group to convert a color from RGB to XYZ.
![]() |
public:
virtual void elementsInXYZColorSpace( GIntensity& x, GIntensity& y, GIntensity& z ) const
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
Copying ColorsUse the function in this group to copy RGBA values from the source color.
![]() |
protected:
IBaseColor& copyRGBA(const IBaseColor& source)
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
Getting Color ComponentsUse the functions in this group to get a color component or opacity value of a color.
![]() |
public:
virtual CharIntensity blueMix() const
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
public:
virtual void blueMix(GIntensity& blue) const
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
virtual CharIntensity gray() const
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
virtual void greenMix(GIntensity& green) const
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
public:
virtual CharIntensity greenMix() const
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
virtual CharIntensity opacity() const
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
public:
virtual void opacity(GIntensity& opacity) const
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
virtual void redMix(GIntensity& red) const
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
public:
virtual CharIntensity redMix() const
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
Setting Color ValuesUse the functions in this group to set a color component or opacity value of a color.
![]() |
public:
virtual IBaseColor& setBlue(CharIntensity blue)
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
virtual void setElementsInXYZColorSpace( GIntensity x, GIntensity y, GIntensity z )
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
virtual IBaseColor& setGreen(CharIntensity green)
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
virtual IBaseColor& setOpacity(CharIntensity opacity)
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
virtual IBaseColor& setRed(CharIntensity red)
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
protected:
void setRGB( CharIntensity r, CharIntensity g, CharIntensity b, CharIntensity o = 255 )
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
Streaming the Object In and OutUse the functions in this group to read an IBaseColor object in from the specified stream or write it out to it.
![]() |
protected:
virtual void readFromStream(IDataStream& fromWhere)
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
protected:
virtual void writeToStream(IDataStream& toWhere) const
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
Miscellaneous Members![]() |
protected:
const IColorProfile* colorProfile() const
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
protected:
CharIntensity fBlue
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
protected:
static const IColorProfile* fgColorProfile
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
protected:
CharIntensity fGreen
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
protected:
CharIntensity fOpacity
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
protected:
CharIntensity fRed
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
enum EPredefinedColor { kWhite=0,
kBlue,
kRed,
kPink,
kGreen,
kCyan,
kYellow,
kBlack,
kDarkGray,
kDarkBlue,
kDarkRed,
kDarkPink,
kDarkGreen,
kDarkCyan,
kBrown,
kPaleGray }| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
virtual ~IMStreamable()
void externalizeToStream(IDataStream& towhere) const
void internalizeFromStream(IDataStream& fromwhere)
virtual const ITypeRepresentation& typeRepresentation() const = 0
IMStreamable(const IMStreamable& other)
IMStreamable()
virtual void readFromStream(IDataStream& fromwhere) = 0
virtual void writeToStream(IDataStream& towhere) const = 0