40 virtual void setRed(
int v) {myRed = v;};
41 virtual int red()
const {
return myRed;};
44 virtual int green()
const {
return myGreen;};
46 virtual void setBlue(
int v) {myBlue = v;};
47 virtual int blue()
const {
return myBlue;};
50 virtual int alpha()
const {
return myAlpha;};
52 virtual void setRgba(
unsigned v);
53 virtual unsigned rgba()
const;
55 virtual void setArgb(
unsigned v);
56 virtual unsigned argb()
const;
73 static float convertRgbaToFloat(
int colorValue);
83 namespace DtBufferSerialize
virtual const char * readerWriterType() const
Used to supply a string type that this reader writer type is. This can be used in place of dynamic-ca...
DT_DLL_readerWriter int getSize(const DtString &val)
The number of bytes required to encode the value.
DtRwInt myGreen
Definition: rwColor.h:77
Definition: symbolString.h:20
virtual void setAlpha(int v)
Definition: rwColor.h:49
DtRwInt myRed
Definition: rwColor.h:76
Definition: readerWriter.h:85
Definition: readerWriterRegistry.h:39
DtRwInt myBlue
Definition: rwColor.h:78
virtual void setGreen(int v)
Definition: rwColor.h:43
Reader-Writer color specified by red, green, blue components.
Definition: rwColor.h:19
virtual DtColor color() const
Definition: rwColor.h:58
virtual int alpha() const
Definition: rwColor.h:50
Description: Readable, Writable int.
Definition: rwInt.h:25
virtual void setRed(int v)
Definition: rwColor.h:40
virtual const char * xmlType() const
Definition: rwColor.h:68
DT_DLL_readerWriter char * encode(const DtFilename &val, char *buffer)
Serializes the provided value val into buffer. buffer must have at least the number of bytes returned...
virtual int blue() const
Definition: rwColor.h:47
#define DT_DLL_vrfutil
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: vrfutilDefines.h:34
const DtReaderWriter & operator=(const DtReaderWriter &orig)
assignment operator
DT_DLL_readerWriter const char * decode(DtString &val, const char *buffer)
Decodes a value from buffer and places the result in val of the type specified by val...
static const char * theXmlType()
The type that is used when archiving to an XML stream.
virtual void setBlue(int v)
Definition: rwColor.h:46
virtual int green() const
Definition: rwColor.h:44
virtual int red() const
Definition: rwColor.h:41
DtRwInt myAlpha
Definition: rwColor.h:79