|
GUIDOLib
1.7.7
Guido Engine Internal Documentation
|
Classes | |
| class | AbstractFont |
| a Abstract font class. More... | |
| class | BinaryFont |
| a DSL font class. More... | |
| class | svgendl |
| class | SVGFont |
| a SVG font class. More... | |
| class | VGColor |
| Generic class to manipulate device independant colors. More... | |
| class | VGDevice |
| Generic platform independant drawing device. More... | |
| class | VGFont |
| Generic pure virtual & device-independant font class. More... | |
| class | VGPen |
| Generic class to manipulate device independant pens. More... | |
| class | VGSystem |
| Generic pure virtual class for manipulating platform independant drawing devices and fonts. More... | |
Macros | |
| #define | ALPHA_TRANSPARENT 0 |
| #define | ALPHA_OPAQUE 255 |
Enumerations | |
| enum | TagType { penTag, penWidthTag, penColorTag, fillColorTag, fontTag, scaleTag, originTag } |
| enum | { kNoFont, kMusicFont, kTextFont } |
| enum | { kSVGSizeDivider = 8 } |
Functions | |
| void | writeColor (const VGColor &color) const |
| void | writeFormattedImage (VGDevice *pSrcDC) const |
| void | writeRasterOpModeToString (VRasterOpMode mode) const |
| void | writeFont (const VGFont *font) const |
| AbstractDevice (std::ostream &outstream, AbstractSystem *system) | |
| virtual | ~AbstractDevice () |
| virtual bool | IsValid () const |
| Returns the ability of the current VGdevice to be drawn into. More... | |
| virtual bool | BeginDraw () |
| virtual void | EndDraw () |
| virtual void | InvalidateRect (float left, float top, float right, float bottom) |
| virtual void | MoveTo (float x, float y) |
| virtual void | LineTo (float x, float y) |
| virtual void | Line (float x1, float y1, float x2, float y2) |
| virtual void | Frame (float left, float top, float right, float bottom) |
| virtual void | Arc (float left, float top, float right, float bottom, float startX, float startY, float endX, float endY) |
| virtual void | FrameEllipse (float x, float y, float width, float height) |
| virtual void | Ellipse (float x, float y, float width, float height, const VGColor &color) |
| virtual void | Triangle (float x1, float y1, float x2, float y2, float x3, float y3) |
| virtual void | Polygon (const float *xCoords, const float *yCoords, int count) |
| virtual void | Rectangle (float left, float top, float right, float bottom) |
| virtual void | SetMusicFont (const VGFont *font) |
| virtual const VGFont * | GetMusicFont () const |
| virtual void | SetTextFont (const VGFont *font) |
| virtual const VGFont * | GetTextFont () const |
| virtual void | SelectPen (const VGColor &inColor, float witdh) |
| virtual void | SelectFillColor (const VGColor &c) |
| virtual void | PushPen (const VGColor &inColor, float inWidth) |
| virtual void | PopPen () |
| virtual void | PushFillColor (const VGColor &inColor) |
| virtual void | PopFillColor () |
| virtual void | SetRasterOpMode (VRasterOpMode ROpMode) |
| virtual VRasterOpMode | GetRasterOpMode () const |
| virtual bool | CopyPixels (VGDevice *pSrcDC, float alpha=-1.0) |
| virtual bool | CopyPixels (int xDest, int yDest, VGDevice *pSrcDC, int xSrc, int ySrc, int nSrcWidth, int nSrcHeight, float alpha=-1.0) |
| virtual bool | CopyPixels (int xDest, int yDest, int dstWidth, int dstHeight, VGDevice *pSrcDC, float alpha=-1.0) |
| virtual bool | CopyPixels (int xDest, int yDest, int dstWidth, int dstHeight, VGDevice *pSrcDC, int xSrc, int ySrc, int nSrcWidth, int nSrcHeight, float alpha=-1.0) |
| virtual void | SetScale (float x, float y) |
| virtual void | SetOrigin (float x, float y) |
| virtual void | OffsetOrigin (float x, float y) |
| virtual void | LogicalToDevice (float *x, float *y) const |
| virtual void | DeviceToLogical (float *x, float *y) const |
| virtual float | GetXScale () const |
| virtual float | GetYScale () const |
| virtual float | GetXOrigin () const |
| virtual float | GetYOrigin () const |
| virtual void | NotifySize (int inWidth, int inHeight) |
| virtual int | GetWidth () const |
| virtual int | GetHeight () const |
| virtual void | DrawMusicSymbol (float x, float y, unsigned int inSymbolID) |
| virtual void | DrawString (float x, float y, const char *s, int inCharCount) |
| virtual void | SetFontColor (const VGColor &inColor) |
| virtual VGColor | GetFontColor () const |
| virtual void | SetFontBackgroundColor (const VGColor &inColor) |
| virtual VGColor | GetFontBackgroundColor () const |
| virtual void | SetFontAlign (unsigned int inAlign) |
| virtual unsigned int | GetFontAlign () const |
| virtual void | SetDPITag (float inDPI) |
| virtual float | GetDPITag () const |
| virtual void * | GetBitMapPixels () |
| virtual void | ReleaseBitMapPixels () |
| virtual const char * | GetImageData (const char *&outDataPtr, int &outLength) |
| virtual void | ReleaseImageData (const char *) const |
| virtual VGSystem * | getVGSystem () const |
| temporary hack - must be removed asap More... | |
| virtual void * | GetNativeContext () const |
| virtual void | SelectPenColor (const VGColor &inColor) |
| virtual void | SelectPenWidth (float witdh) |
| virtual void | PushPenColor (const VGColor &inColor) |
| virtual void | PopPenColor () |
| virtual void | PushPenWidth (float width) |
| virtual void | PopPenWidth () |
| virtual VGDevice * | CreateDisplayDevice () |
| virtual VGDevice * | CreateMemoryDevice (int inWidth, int inHeight) |
| virtual VGDevice * | CreateMemoryDevice (const char *inPath) |
| virtual VGDevice * | CreatePrinterDevice () |
| virtual VGDevice * | CreateAntiAliasedMemoryDevice (int inWidth, int inHeight) |
| virtual const VGFont * | CreateVGFont (const char *faceName, int size, int properties) const |
| void | writeString (const char *str) const |
| BinaryDevice (std::ostream &outstream, BinarySystem *system) | |
| virtual | ~BinaryDevice () |
| std::ostream & | operator<< (std::ostream &os, const svgendl &eol) |
| void | print (std::ostream &out, const VGColor &color) const |
| void | printFont (std::ostream &out, const char *font) const |
| void | getsvgfont (const char *ptr, std::string &str) const |
| float | alpha2float (const VGColor &color) const |
| void | selectfont (int font) |
| void | checkfont () |
| const char * | align2str (int align) const |
| const char * | baseline2str (int align) const |
| void | putbase64 (VGDevice *pSrcDC) const |
| void | closegroup () |
| SVGDevice (std::ostream &outstream, SVGSystem *system, const char *guidofont, bool setviewport=false) | |
| virtual | ~SVGDevice () |
| virtual | ~SVGSystem () |
| virtual VGDevice * | CreateDisplayDevice (std::ostream &outstream, int mappingMode) |
| std::ostream & | operator<< (std::ostream &out, const VGColor &c) |
| VGColor & | VGColor::operator+= (short v) |
Variables | |
| class_export | AbstractDevice |
| An abstract drawing device, for use with higher level devices. outputs commands and their passed parameters represents images, colors and fonts via their important parameters more comments on this below. More... | |
| std::ostream & | fStream |
| std::string | fSpace |
| int | fWidth |
| int | fHeight |
| const VGFont * | fMusicFont |
| const VGFont * | fTextFont |
| VRasterOpMode | fOpMode |
| float | fXScale |
| float | fYScale |
| float | fXOrigin |
| float | fYOrigin |
| unsigned int | fFontAlign |
| float | fDPI |
| VGColor | fFontColor |
| VGColor | fFontBackgroundColor |
| class_export | AbstractSystem |
| class_export | BinaryDevice |
| An abstract drawing device, for use with higher level devices. outputs commands and their passed parameters in a binary storage format. More... | |
| std::ostream & | fStream |
| int | fWidth |
| int | fHeight |
| const VGFont * | fMusicFont |
| const VGFont * | fTextFont |
| VRasterOpMode | fOpMode |
| float | fXScale |
| float | fYScale |
| float | fXOrigin |
| float | fYOrigin |
| unsigned int | fFontAlign |
| float | fDPI |
| VGColor | fFontColor |
| VGColor | fFontBackgroundColor |
| class_export | BinarySystem |
| class_export | SVGDevice |
| A SVG based drawing device. More... | |
| const char * | fGuidoFont |
| int | fWidth |
| int | fHeight |
| const VGFont * | fMusicFont |
| const VGFont * | fTextFont |
| VRasterOpMode | fOpMode |
| float | fXScale |
| float | fYScale |
| float | fXOrigin |
| float | fYOrigin |
| float | fXPos |
| float | fYPos |
| VGColor | fFontColor |
| VGColor | fFontBackgroundColor |
| int | fFontAlign |
| float | fDPI |
| bool | fViewPort |
| VGColor * | fPendingStrokeColor |
| VGColor * | fPendingFillColor |
| bool | fBeginDone |
| std::ostream & | fStream |
| svgendl | fEndl |
| bool | fPushedPen |
| bool | fPushedPenColor |
| bool | fPushedPenWidth |
| bool | fPushedFill |
| bool | fScaled |
| bool | fOffset |
| int | fCurrFont |
| class_export | SVGSystem |
The virtual graphic system is intended as an abstract layer covering platform dependencies at graphic level. It represents a set of abstract classes covering the basic needs of an application: printing text, drawing to the screen or to an offscreen, etc... The set of abstract classes includes:
This set of classes is implemented for different target platforms: implementations are provided for Windows GDI and Mac OSX Quartz, implementations for Windows GDI+, OpenGL and Linux GTK are in progress.
| #define ALPHA_OPAQUE 255 |
| #define ALPHA_TRANSPARENT 0 |
| enum TagType |
| AbstractDevice | ( | std::ostream & | outstream, |
| AbstractSystem * | system | ||
| ) |
| const char* align2str | ( | int | align | ) | const |
| float alpha2float | ( | const VGColor & | color | ) | const |
|
virtual |
| const char* baseline2str | ( | int | align | ) | const |
|
virtual |
| BinaryDevice | ( | std::ostream & | outstream, |
| BinarySystem * | system | ||
| ) |
| void checkfont | ( | ) |
|
protected |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
| void getsvgfont | ( | const char * | ptr, |
| std::string & | str | ||
| ) | const |
|
virtual |
|
virtual |
temporary hack - must be removed asap
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Returns the ability of the current VGdevice to be drawn into.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
inline |
| std::ostream& operator<< | ( | std::ostream & | os, |
| const svgendl & | eol | ||
| ) |
|
inline |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
| void print | ( | std::ostream & | out, |
| const VGColor & | color | ||
| ) | const |
| void printFont | ( | std::ostream & | out, |
| const char * | font | ||
| ) | const |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
| void putbase64 | ( | VGDevice * | pSrcDC | ) | const |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
| void selectfont | ( | int | font | ) |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
| SVGDevice | ( | std::ostream & | outstream, |
| SVGSystem * | system, | ||
| const char * | guidofont, | ||
| bool | setviewport = false |
||
| ) |
|
virtual |
| void writeColor | ( | const VGColor & | color | ) | const |
| void writeFont | ( | const VGFont * | font | ) | const |
| void writeFormattedImage | ( | VGDevice * | pSrcDC | ) | const |
| void writeRasterOpModeToString | ( | VRasterOpMode | mode | ) | const |
| void writeString | ( | const char * | str | ) | const |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
| class_export AbstractDevice |
An abstract drawing device, for use with higher level devices. outputs commands and their passed parameters represents images, colors and fonts via their important parameters more comments on this below.
| class_export AbstractSystem |
| class_export BinaryDevice |
An abstract drawing device, for use with higher level devices. outputs commands and their passed parameters in a binary storage format.
| class_export BinarySystem |
| bool fBeginDone |
|
protected |
| float fDPI |
| float fDPI |
| float fDPI |
|
protected |
| unsigned int fFontAlign |
| unsigned int fFontAlign |
| int fFontAlign |
| VGColor fFontBackgroundColor |
| VGColor fFontBackgroundColor |
| VGColor fFontBackgroundColor |
| VGColor fFontColor |
| VGColor fFontColor |
| VGColor fFontColor |
| const char* fGuidoFont |
| int fHeight |
| int fHeight |
| int fHeight |
| const VGFont* fMusicFont |
| const VGFont* fMusicFont |
| const VGFont* fMusicFont |
|
protected |
| VRasterOpMode fOpMode |
| VRasterOpMode fOpMode |
| VRasterOpMode fOpMode |
| VGColor* fPendingFillColor |
| VGColor* fPendingStrokeColor |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| std::string fSpace |
| std::ostream& fStream |
| std::ostream& fStream |
|
protected |
| const VGFont* fTextFont |
| const VGFont* fTextFont |
| const VGFont* fTextFont |
| bool fViewPort |
| int fWidth |
| int fWidth |
| int fWidth |
| float fXOrigin |
| float fXOrigin |
| float fXOrigin |
| float fXPos |
| float fXScale |
| float fXScale |
| float fXScale |
| float fYOrigin |
| float fYOrigin |
| float fYOrigin |
| float fYPos |
| float fYScale |
| float fYScale |
| float fYScale |
| class_export SVGDevice |
A SVG based drawing device.
| class_export SVGSystem |