Public Member Functions

VGSystem Class Reference
[Virtual Graphic System]

Generic pure virtual class for manipulating platform independant drawing devices and fonts. More...

List of all members.

Public Member Functions

virtual ~VGSystem ()
virtual VGDeviceCreateDisplayDevice ()=0
virtual VGDeviceCreateMemoryDevice (int inWidth, int inHeight)=0
virtual VGDeviceCreateMemoryDevice (const char *inPath)=0
virtual VGDeviceCreatePrinterDevice ()=0
 Creates and returns a pointer to a new printer VGDevice.
virtual VGDeviceCreateAntiAliasedMemoryDevice (int inWidth, int inHeight)=0
virtual const VGFontCreateVGFont (const char *faceName, int size, int properties) const =0
 Creates and returns a pointer to a new VGFont using the specified parameters.

Detailed Description

Generic pure virtual class for manipulating platform independant drawing devices and fonts.

A VGSystem object (for Virtual Guido drawing System) is the highest graphical abstraction whose child-object can be used by a client app to obtain a platform dependant graphical system able to perform guido drawing or printing operations (like double-buffered display on the current screen or printing). To do so, the client app simply needs to intantiate an object of the appropriate platform dependant VGSystem derived class using the correct platform dependant parameters.

A VGSystem object deals mainly with two kinds of graphical objects:


Constructor & Destructor Documentation

virtual ~VGSystem (  ) [inline, virtual]

Member Function Documentation

virtual VGDevice* CreateDisplayDevice (  ) [pure virtual]

Creates and returns a pointer to a new display VGDevice which can be used to draw directly on the screen.

virtual VGDevice* CreateMemoryDevice ( int  inWidth,
int  inHeight 
) [pure virtual]

Creates and returns a pointer to a new memory VGDevice compatible with the application's current screen. This device can be used to draw into a bitmap.

virtual VGDevice* CreateMemoryDevice ( const char *  inPath ) [pure virtual]

Creates and returns a pointer to a new memory VGDevice compatible with the file (pixmap) located at the specified path.

virtual VGDevice* CreatePrinterDevice (  ) [pure virtual]

Creates and returns a pointer to a new printer VGDevice.

virtual VGDevice* CreateAntiAliasedMemoryDevice ( int  inWidth,
int  inHeight 
) [pure virtual]

Creates and returns a pointer to a new memory VGDevice compatible with the application's current screen and using anti-aliasing capabilities. This device can be used to draw into a bitmap.

virtual const VGFont* CreateVGFont ( const char *  faceName,
int  size,
int  properties 
) const [pure virtual]

Creates and returns a pointer to a new VGFont using the specified parameters.