GUIDOLib  1.7.7
Guido Engine Internal Documentation
DecoratorDevice.h
1 #ifndef __DecoratorDevice__
2 #define __DecoratorDevice__
3 
4 /*
5  GUIDO Library
6  Copyright (C) 2003, 2004 Grame
7 
8  This Source Code Form is subject to the terms of the Mozilla Public
9  License, v. 2.0. If a copy of the MPL was not distributed with this
10  file, You can obtain one at http://mozilla.org/MPL/2.0/.
11 
12  Grame Research Laboratory, 11, cours de Verdun Gensoul 69002 Lyon - France
13  research@grame.fr
14 
15 */
16 
17 #include "VGDevice.h"
18 
19 // --------------------------------------------------------------
20 class DecoratorDevice : public VGDevice
21 {
22  protected:
23  bool fDevOwner;
25  virtual void * GetNativeContext() const;
26 
27  public:
28  DecoratorDevice(VGDevice * dev, bool owner=true) : fDevOwner(owner), fDevice(dev) {}
29  virtual ~DecoratorDevice() { if (fDevOwner) delete fDevice; }
30 
31  virtual bool IsValid() const;
32 
33  // - Drawing services ------------------------------------------------
34  virtual bool BeginDraw();
35  virtual void EndDraw();
36  virtual void InvalidateRect( float left, float top, float right, float bottom );
37 
38  // - Standard graphic primitives -------------------------
39  virtual void MoveTo( float x, float y );
40  virtual void LineTo( float x, float y );
41  virtual void Line( float x1, float y1, float x2, float y2 );
42  virtual void Frame( float left, float top, float right, float bottom );
43  virtual void Arc( float left, float top,
44  float right, float bottom,
45  float startX, float startY,
46  float endX, float endY );
47  virtual void FrameEllipse( float x, float y, float width, float height);
48 
49  // - Filled surfaces --------------------------------------
50  virtual void Ellipse( float x, float y, float width, float height, const VGColor& color);
51  virtual void Triangle( float x1, float y1,
52  float x2, float y2,
53  float x3, float y3 );
54  virtual void Polygon( const float * xCoords, const float * yCoords, int count );
55  virtual void Rectangle( float left, float top, float right, float bottom );
56 
57  // - Font services ---------------------------------------------------
58  virtual void SetMusicFont( const VGFont * font );
59  virtual const VGFont * GetMusicFont() const;
60  virtual void SetTextFont( const VGFont * font );
61  virtual const VGFont * GetTextFont() const;
62 
63 
64 
65  // - Pen & brush services --------------------------------------------
66  virtual void SelectPen( const VGColor & inColor, float witdh );
67  virtual void SelectFillColor( const VGColor & c );
68  virtual void PushPen( const VGColor & inColor, float inWidth );
69  virtual void PopPen();
70  virtual void PushFillColor( const VGColor & inColor );
71  virtual void PopFillColor();
72  virtual void SetRasterOpMode( VRasterOpMode ROpMode);
73  virtual VRasterOpMode GetRasterOpMode() const;
74 
75 
76  // - Bitmap services (bit-block copy methods) --------------------------
77  virtual bool CopyPixels( VGDevice* pSrcDC, float alpha = -1.0);
78  virtual bool CopyPixels( int xDest, int yDest,
79  VGDevice* pSrcDC,
80  int xSrc, int ySrc,
81  int nSrcWidth, int nSrcHeight, float alpha = -1.0);
82  virtual bool CopyPixels( int xDest, int yDest,
83  int dstWidth, int dstHeight,
84  VGDevice* pSrcDC, float alpha = -1.0);
85  virtual bool CopyPixels( int xDest, int yDest,
86  int dstWidth, int dstHeight,
87  VGDevice* pSrcDC,
88  int xSrc, int ySrc,
89  int nSrcWidth, int nSrcHeight, float alpha = -1.0);
90 
91  // - Coordinate services ------------------------------------------------
92  virtual void SetScale( float x, float y );
93  virtual void SetOrigin( float x, float y );
94  virtual void OffsetOrigin( float x, float y );
95  virtual void LogicalToDevice( float * x, float * y ) const;
96  virtual void DeviceToLogical( float * x, float * y ) const;
97  virtual float GetXScale() const;
98  virtual float GetYScale() const;
99  virtual float GetXOrigin() const;
100  virtual float GetYOrigin() const;
101  virtual void NotifySize( int inWidth, int inHeight );
102  virtual int GetWidth() const;
103  virtual int GetHeight() const;
104 
105 
106  // - Text and music symbols services -------------------------------------
107  virtual void DrawMusicSymbol(float x, float y,
108  unsigned int inSymbolID );
109  virtual void DrawString( float x, float y,
110  const char * s,
111  int inCharCount );
112  virtual void SetFontColor( const VGColor & inColor );
113  virtual VGColor GetFontColor() const;
114  virtual void SetFontBackgroundColor( const VGColor & inColor );
115  virtual VGColor GetFontBackgroundColor() const;
116  virtual void SetFontAlign( unsigned int inAlign );
117  virtual unsigned int GetFontAlign() const;
118 
119  // - Printer informations services ----------------------------------------
120  virtual void SetDPITag( float inDPI );
121  virtual float GetDPITag() const;
122 
123  virtual void* GetBitMapPixels();
124  virtual void ReleaseBitMapPixels();
125  virtual const char* GetImageData(const char* & outDataPtr, int& outLength);
126  virtual void ReleaseImageData(const char *) const;
127 
128  virtual VGSystem * getVGSystem() const;
129 
130  // - Data export services ----------------------------------------
131 // virtual void ExportToFile( const char * inFilePath );
132 
133  // - VGDevice extension
134  virtual void SelectPenColor(const VGColor & inColor);
135  virtual void SelectPenWidth(float witdh);
136  virtual void PushPenColor( const VGColor & inColor);
137  virtual void PopPenColor();
138  virtual void PushPenWidth( float width);
139  virtual void PopPenWidth();
140 };
141 
142 // --------------------------------------------------------------
143 inline bool DecoratorDevice::IsValid() const {
144  return fDevice->IsValid ();
145 }
146 
147 // --------------------------------------------------------------
149  return fDevice->BeginDraw();
150 }
152  fDevice->EndDraw();
153 }
154 inline void DecoratorDevice::InvalidateRect(float left, float top, float right, float bottom) {
155  fDevice->InvalidateRect(left, top, right, bottom);
156 }
157 // --------------------------------------------------------------
158 inline void DecoratorDevice::MoveTo( float x, float y ) {
159  fDevice->MoveTo (x, y);
160 }
161 inline void DecoratorDevice::LineTo( float x, float y ) {
162  fDevice->LineTo (x, y);
163 }
164 inline void DecoratorDevice::Line( float x1, float y1, float x2, float y2 ) {
165  fDevice->Line (x1, y1, x2, y2);
166 }
167 inline void DecoratorDevice::Frame( float left, float top, float right, float bottom ) {
168  fDevice->Frame (left, top, right, bottom);
169 }
170 inline void DecoratorDevice::FrameEllipse(float x, float y, float width, float height) {
171  fDevice->FrameEllipse (x, y, width, height);
172 }
173 inline void DecoratorDevice::Ellipse(float x, float y, float width, float height, const VGColor& color) {
174  fDevice->Ellipse (x, y, width, height, color);
175 }
176 inline void DecoratorDevice::Arc( float left, float top, float right, float bottom, float startX, float startY, float endX, float endY ) {
177  fDevice->Arc (left, top, right, bottom, startX, startY, endX, endY);
178 }
179 inline void DecoratorDevice::Triangle( float x1, float y1, float x2, float y2, float x3, float y3 ) {
180  fDevice->Triangle (x1, y1, x2, y2, x3, y3);
181 }
182 inline void DecoratorDevice::Polygon( const float * x, const float * y, int count ) {
183  fDevice->Polygon (x, y, count);
184 }
185 inline void DecoratorDevice::Rectangle( float left, float top, float right, float bottom ) {
186  fDevice->Rectangle (left, top, right, bottom);
187 }
188 
189 // --------------------------------------------------------------
190 inline void DecoratorDevice::SetMusicFont(const VGFont * font) {
191  fDevice->SetMusicFont(font);
192 }
193 inline const VGFont* DecoratorDevice::GetMusicFont() const {
194  return fDevice->GetMusicFont();
195 }
196 inline void DecoratorDevice::SetTextFont(const VGFont * font) {
197  fDevice->SetTextFont(font);
198 }
199 inline const VGFont* DecoratorDevice::GetTextFont() const {
200  return fDevice->GetTextFont();
201 }
202 
203 // --------------------------------------------------------------
204 inline void DecoratorDevice::SelectPen(const VGColor & inColor, float witdh) {
205  fDevice->SelectPen(inColor, witdh);
206 }
207 inline void DecoratorDevice::SelectPenColor(const VGColor & inColor) {
208  fDevice->SelectPenColor(inColor);
209 }
210 inline void DecoratorDevice::SelectPenWidth(float witdh) {
211  fDevice->SelectPenWidth(witdh);
212 }
213 inline void DecoratorDevice::PushPenColor(const VGColor & inColor) {
214  fDevice->PushPenColor(inColor);
215 }
216 inline void DecoratorDevice::PushPenWidth(float witdh) {
217  fDevice->PushPenWidth(witdh);
218 }
220  fDevice->PopPenColor();
221 }
223  fDevice->PopPenWidth();
224 }
225 
226 inline void DecoratorDevice::SelectFillColor(const VGColor & inColor) {
227  fDevice->SelectFillColor(inColor);
228 }
229 inline void DecoratorDevice::PushPen(const VGColor & inColor, float witdh) {
230  fDevice->PushPen(inColor, witdh);
231 }
232 inline void DecoratorDevice::PopPen() {
233  fDevice->PopPen();
234 }
235 inline void DecoratorDevice::PushFillColor(const VGColor & inColor) {
236  fDevice->PushFillColor(inColor);
237 }
240 }
242  fDevice->SetRasterOpMode(ROpMode);
243 }
245  return fDevice->GetRasterOpMode();
246 }
247 
248 // --------------------------------------------------------------
249 inline bool DecoratorDevice::CopyPixels(VGDevice* pSrcDC, float alpha) {
250  return fDevice->CopyPixels(pSrcDC, alpha);
251 }
252 inline bool DecoratorDevice::CopyPixels(int xDest, int yDest, VGDevice* pSrcDC, int xSrc, int ySrc,
253  int nSrcWidth, int nSrcHeight, float alpha) {
254  return fDevice->CopyPixels(xDest, yDest, pSrcDC, xSrc, ySrc, nSrcWidth, nSrcHeight, alpha);
255 }
256 inline bool DecoratorDevice::CopyPixels(int xDest, int yDest, int dstWidth, int dstHeight, VGDevice* pSrcDC, float alpha) {
257  return fDevice->CopyPixels(xDest, yDest, dstWidth, dstHeight, pSrcDC, alpha);
258 }
259 
260 inline bool DecoratorDevice::CopyPixels( int xDest, int yDest, int dstWidth, int dstHeight, VGDevice* pSrcDC,
261  int xSrc, int ySrc, int nSrcWidth, int nSrcHeight, float alpha) {
262  return fDevice->CopyPixels(xDest, yDest, dstWidth, dstHeight, pSrcDC, xSrc, ySrc, nSrcWidth, nSrcHeight, alpha);
263 }
264 
265 // --------------------------------------------------------------
266 inline void DecoratorDevice::SetScale(float x, float y) {
267  fDevice->SetScale(x, y);
268 }
269 inline void DecoratorDevice::SetOrigin(float x, float y) {
270  fDevice->SetOrigin(x, y);
271 }
272 inline void DecoratorDevice::OffsetOrigin(float x, float y) {
273  fDevice->OffsetOrigin(x, y);
274 }
275 inline void DecoratorDevice::LogicalToDevice(float * x, float * y) const {
276  fDevice->LogicalToDevice(x, y);
277 }
278 inline void DecoratorDevice::DeviceToLogical(float * x, float * y) const {
279  fDevice->DeviceToLogical(x, y);
280 }
281 inline float DecoratorDevice::GetXScale() const {
282  return fDevice->GetXScale();
283 }
284 inline float DecoratorDevice::GetYScale() const {
285  return fDevice->GetYScale();
286 }
287 inline float DecoratorDevice::GetXOrigin() const {
288  return fDevice->GetXOrigin();
289 }
290 inline float DecoratorDevice::GetYOrigin() const {
291  return fDevice->GetYOrigin();
292 }
293 inline void DecoratorDevice::NotifySize( int inWidth, int inHeight ) {
294  fDevice->NotifySize (inWidth, inHeight);
295 }
296 inline int DecoratorDevice::GetWidth() const {
297  return fDevice->GetWidth();
298 }
299 inline int DecoratorDevice::GetHeight() const {
300  return fDevice->GetHeight();
301 }
302 
303 // --------------------------------------------------------------
304 inline void DecoratorDevice::DrawMusicSymbol(float x, float y, unsigned int inSymbolID) {
305  fDevice->DrawMusicSymbol(x, y, inSymbolID);
306 }
307 inline void DecoratorDevice::DrawString(float x, float y, const char * s, int inCharCount) {
308  fDevice->DrawString(x, y, s, inCharCount);
309 }
310 inline void DecoratorDevice::SetFontColor(const VGColor & inColor) {
311  fDevice->SetFontColor(inColor);
312 }
314  return fDevice->GetFontColor();
315 }
316 inline void DecoratorDevice::SetFontBackgroundColor(const VGColor & inColor) {
318 }
321 }
322 inline void DecoratorDevice::SetFontAlign(unsigned int inAlign) {
323  fDevice->SetFontAlign(inAlign);
324 }
325 inline unsigned int DecoratorDevice::GetFontAlign() const {
326  return fDevice->GetFontAlign();
327 }
328 
329 // --------------------------------------------------------------
330 inline void DecoratorDevice::SetDPITag(float inDPI) {
331  fDevice->SetDPITag(inDPI);
332 }
333 inline float DecoratorDevice::GetDPITag() const {
334  return fDevice->GetDPITag();
335 }
337  return fDevice->GetBitMapPixels();
338 }
341 }
342 inline const char* DecoratorDevice::GetImageData(const char* & outDataPtr, int& outLength) {
343  return fDevice->GetImageData(outDataPtr, outLength);
344 }
345 inline void DecoratorDevice::ReleaseImageData(const char * ptr) const {
347 }
348 
350  return fDevice->getVGSystem();
351 }
352 
353 // --------------------------------------------------------------
354 /*inline void DecoratorDevice::ExportToFile( const char * inFilePath ) {
355  fDevice->ExportToFile(inFilePath);
356 } */
357 
358 // --------------------------------------------------------------
359 inline void* DecoratorDevice::GetNativeContext() const {
360  return fDevice->GetNativeContext();
361 }
362 
363 #endif
DecoratorDevice::BeginDraw
virtual bool BeginDraw()
Definition: DecoratorDevice.h:148
VGDevice::Triangle
virtual void Triangle(float x1, float y1, float x2, float y2, float x3, float y3)=0
VGDevice::ReleaseImageData
virtual void ReleaseImageData(const char *) const =0
Release the pointer returned by GetImageData.
DecoratorDevice::PushPenWidth
virtual void PushPenWidth(float width)
Definition: DecoratorDevice.h:216
DecoratorDevice::Rectangle
virtual void Rectangle(float left, float top, float right, float bottom)
Definition: DecoratorDevice.h:185
VGDevice::GetTextFont
virtual const VGFont * GetTextFont() const =0
Returns the currently selected text VGFont.
DecoratorDevice::GetBitMapPixels
virtual void * GetBitMapPixels()
Allows pixels operations and returns a pointer to the bitmap pixels.
Definition: DecoratorDevice.h:336
VGDevice::EndDraw
virtual void EndDraw()=0
DecoratorDevice::LineTo
virtual void LineTo(float x, float y)
Definition: DecoratorDevice.h:161
VGDevice::GetWidth
virtual int GetWidth() const =0
Returns the width (set via NotifySize) of the current VGDevice.
DecoratorDevice::IsValid
virtual bool IsValid() const
Returns the ability of the current VGdevice to be drawn into.
Definition: DecoratorDevice.h:143
VGDevice::GetImageData
virtual const char * GetImageData(const char *&outDataPtr, int &outLength)=0
Gives the current device data and returns the data associated mime type.
DecoratorDevice::GetNativeContext
virtual void * GetNativeContext() const
Exports all graphical data to an image file.
Definition: DecoratorDevice.h:359
DecoratorDevice::GetDPITag
virtual float GetDPITag() const
Returns the printing resolution of the current VGDevice.
Definition: DecoratorDevice.h:333
VGDevice::PopPen
virtual void PopPen()=0
VGDevice::SetTextFont
virtual void SetTextFont(const VGFont *font)=0
DecoratorDevice::SetRasterOpMode
virtual void SetRasterOpMode(VRasterOpMode ROpMode)
Definition: DecoratorDevice.h:241
VGDevice::GetNativeContext
virtual void * GetNativeContext() const =0
Exports all graphical data to an image file.
VGDevice::FrameEllipse
virtual void FrameEllipse(float x, float y, float width, float height)=0
Draws an ellipse.
DecoratorDevice::EndDraw
virtual void EndDraw()
Definition: DecoratorDevice.h:151
DecoratorDevice::CopyPixels
virtual bool CopyPixels(VGDevice *pSrcDC, float alpha=-1.0)
Definition: DecoratorDevice.h:249
DecoratorDevice::SelectPen
virtual void SelectPen(const VGColor &inColor, float witdh)
Definition: DecoratorDevice.h:204
DecoratorDevice::PopFillColor
virtual void PopFillColor()
Definition: DecoratorDevice.h:238
VGDevice::GetFontColor
virtual VGColor GetFontColor() const =0
Returns the text/music color of the current VGDevice.
VGDevice::MoveTo
virtual void MoveTo(float x, float y)=0
Moves the current position to the point specified by (x,y).
DecoratorDevice::DrawString
virtual void DrawString(float x, float y, const char *s, int inCharCount)
Definition: DecoratorDevice.h:307
DecoratorDevice::FrameEllipse
virtual void FrameEllipse(float x, float y, float width, float height)
Draws an ellipse.
Definition: DecoratorDevice.h:170
DecoratorDevice::DecoratorDevice
DecoratorDevice(VGDevice *dev, bool owner=true)
Definition: DecoratorDevice.h:28
VGDevice::GetXScale
virtual float GetXScale() const =0
VGDevice::PopPenColor
virtual void PopPenColor()=0
DecoratorDevice::GetTextFont
virtual const VGFont * GetTextFont() const
Returns the currently selected text VGFont.
Definition: DecoratorDevice.h:199
DecoratorDevice::SelectPenWidth
virtual void SelectPenWidth(float witdh)
Creates a new VGPen object with the specified VGColor.
Definition: DecoratorDevice.h:210
DecoratorDevice::InvalidateRect
virtual void InvalidateRect(float left, float top, float right, float bottom)
Definition: DecoratorDevice.h:154
VGDevice::ReleaseBitMapPixels
virtual void ReleaseBitMapPixels()=0
Update bitmap pixels and ends pixels operations.
DecoratorDevice::GetHeight
virtual int GetHeight() const
Returns the height (set via NotifySize) of the current VGDevice.
Definition: DecoratorDevice.h:299
VGDevice::InvalidateRect
virtual void InvalidateRect(float left, float top, float right, float bottom)=0
VGDevice::SetFontBackgroundColor
virtual void SetFontBackgroundColor(const VGColor &inColor)=0
Sets the text/music background color for the current VGDevice.
DecoratorDevice::Frame
virtual void Frame(float left, float top, float right, float bottom)
Definition: DecoratorDevice.h:167
VGDevice::GetDPITag
virtual float GetDPITag() const =0
Returns the printing resolution of the current VGDevice.
VGDevice::GetMusicFont
virtual const VGFont * GetMusicFont() const =0
Returns the currently selected music VGFont.
VGDevice::IsValid
virtual bool IsValid() const =0
Returns the ability of the current VGdevice to be drawn into.
DecoratorDevice::GetYScale
virtual float GetYScale() const
Definition: DecoratorDevice.h:284
DecoratorDevice::GetFontBackgroundColor
virtual VGColor GetFontBackgroundColor() const
Returns the text/music background color of the current VGDevice.
Definition: DecoratorDevice.h:319
DecoratorDevice::Triangle
virtual void Triangle(float x1, float y1, float x2, float y2, float x3, float y3)
Definition: DecoratorDevice.h:179
DecoratorDevice::GetFontColor
virtual VGColor GetFontColor() const
Returns the text/music color of the current VGDevice.
Definition: DecoratorDevice.h:313
DecoratorDevice::NotifySize
virtual void NotifySize(int inWidth, int inHeight)
Definition: DecoratorDevice.h:293
DecoratorDevice::SetFontColor
virtual void SetFontColor(const VGColor &inColor)
Sets the text/music color for the current VGDevice.
Definition: DecoratorDevice.h:310
DecoratorDevice::SelectPenColor
virtual void SelectPenColor(const VGColor &inColor)
Creates a new VGPen object with the specified VGColor.
Definition: DecoratorDevice.h:207
VGDevice::BeginDraw
virtual bool BeginDraw()=0
DecoratorDevice::Polygon
virtual void Polygon(const float *xCoords, const float *yCoords, int count)
Definition: DecoratorDevice.h:182
VGDevice::PushPen
virtual void PushPen(const VGColor &inColor, float inWidth)=0
VGDevice::GetRasterOpMode
virtual VRasterOpMode GetRasterOpMode() const =0
DecoratorDevice::GetYOrigin
virtual float GetYOrigin() const
Definition: DecoratorDevice.h:290
VGDevice::GetFontAlign
virtual unsigned int GetFontAlign() const =0
VGDevice::GetXOrigin
virtual float GetXOrigin() const =0
VGDevice::PopPenWidth
virtual void PopPenWidth()=0
VGDevice::PushFillColor
virtual void PushFillColor(const VGColor &inColor)=0
DecoratorDevice::fDevice
VGDevice * fDevice
Definition: DecoratorDevice.h:24
VGDevice::SelectPenColor
virtual void SelectPenColor(const VGColor &inColor)=0
Creates a new VGPen object with the specified VGColor.
DecoratorDevice::GetRasterOpMode
virtual VRasterOpMode GetRasterOpMode() const
Definition: DecoratorDevice.h:244
DecoratorDevice::Ellipse
virtual void Ellipse(float x, float y, float width, float height, const VGColor &color)
Draws a filled ellipse.
Definition: DecoratorDevice.h:173
VGDevice::Ellipse
virtual void Ellipse(float x, float y, float width, float height, const VGColor &color)=0
Draws a filled ellipse.
VGDevice::SetScale
virtual void SetScale(float x, float y)=0
Sets the scale factors of the current VGDevice to the input values.
VGDevice::SelectFillColor
virtual void SelectFillColor(const VGColor &c)=0
DecoratorDevice::ReleaseBitMapPixels
virtual void ReleaseBitMapPixels()
Update bitmap pixels and ends pixels operations.
Definition: DecoratorDevice.h:339
DecoratorDevice::PushPenColor
virtual void PushPenColor(const VGColor &inColor)
Definition: DecoratorDevice.h:213
DecoratorDevice::PopPenWidth
virtual void PopPenWidth()
Definition: DecoratorDevice.h:222
DecoratorDevice::Line
virtual void Line(float x1, float y1, float x2, float y2)
Definition: DecoratorDevice.h:164
VGDevice::GetHeight
virtual int GetHeight() const =0
Returns the height (set via NotifySize) of the current VGDevice.
VGDevice::SetMusicFont
virtual void SetMusicFont(const VGFont *font)=0
VGDevice::SelectPenWidth
virtual void SelectPenWidth(float witdh)=0
Creates a new VGPen object with the specified VGColor.
VGSystem
Generic pure virtual class for manipulating platform independant drawing devices and fonts.
Definition: VGSystem.h:61
VGDevice::CopyPixels
virtual bool CopyPixels(VGDevice *pSrcDC, float alpha=-1.0)=0
DecoratorDevice::SetDPITag
virtual void SetDPITag(float inDPI)
Sets the printing resolution of the current VGDevice.
Definition: DecoratorDevice.h:330
DecoratorDevice::PopPen
virtual void PopPen()
Definition: DecoratorDevice.h:232
VGDevice::SetFontColor
virtual void SetFontColor(const VGColor &inColor)=0
Sets the text/music color for the current VGDevice.
VGDevice::NotifySize
virtual void NotifySize(int inWidth, int inHeight)=0
VGDevice::LineTo
virtual void LineTo(float x, float y)=0
DecoratorDevice::SetFontAlign
virtual void SetFontAlign(unsigned int inAlign)
Definition: DecoratorDevice.h:322
DecoratorDevice::SetFontBackgroundColor
virtual void SetFontBackgroundColor(const VGColor &inColor)
Sets the text/music background color for the current VGDevice.
Definition: DecoratorDevice.h:316
VGDevice::PopFillColor
virtual void PopFillColor()=0
VGDevice
Generic platform independant drawing device.
Definition: VGDevice.h:68
VGColor
Generic class to manipulate device independant colors.
Definition: VGColor.h:34
DecoratorDevice::PopPenColor
virtual void PopPenColor()
Definition: DecoratorDevice.h:219
DecoratorDevice::fDevOwner
bool fDevOwner
Definition: DecoratorDevice.h:23
VGDevice::Frame
virtual void Frame(float left, float top, float right, float bottom)=0
VGDevice::SetFontAlign
virtual void SetFontAlign(unsigned int inAlign)=0
VGDevice::VRasterOpMode
VRasterOpMode
Raster operation modes (color fill, bit copy, etc.)
Definition: VGDevice.h:77
DecoratorDevice::DrawMusicSymbol
virtual void DrawMusicSymbol(float x, float y, unsigned int inSymbolID)
Definition: DecoratorDevice.h:304
DecoratorDevice::SelectFillColor
virtual void SelectFillColor(const VGColor &c)
Definition: DecoratorDevice.h:226
VGDevice::GetFontBackgroundColor
virtual VGColor GetFontBackgroundColor() const =0
Returns the text/music background color of the current VGDevice.
DecoratorDevice::SetMusicFont
virtual void SetMusicFont(const VGFont *font)
Definition: DecoratorDevice.h:190
VGDevice::PushPenColor
virtual void PushPenColor(const VGColor &inColor)=0
VGDevice::DeviceToLogical
virtual void DeviceToLogical(float *x, float *y) const =0
VGDevice::Rectangle
virtual void Rectangle(float left, float top, float right, float bottom)=0
DecoratorDevice::PushPen
virtual void PushPen(const VGColor &inColor, float inWidth)
Definition: DecoratorDevice.h:229
VGDevice::GetYScale
virtual float GetYScale() const =0
DecoratorDevice::DeviceToLogical
virtual void DeviceToLogical(float *x, float *y) const
Definition: DecoratorDevice.h:278
VGDevice::PushPenWidth
virtual void PushPenWidth(float width)=0
VGDevice::OffsetOrigin
virtual void OffsetOrigin(float x, float y)=0
Offsets the current VGDevice's origin (see above).
DecoratorDevice::GetMusicFont
virtual const VGFont * GetMusicFont() const
Returns the currently selected music VGFont.
Definition: DecoratorDevice.h:193
VGDevice::SetRasterOpMode
virtual void SetRasterOpMode(VRasterOpMode ROpMode)=0
DecoratorDevice::PushFillColor
virtual void PushFillColor(const VGColor &inColor)
Definition: DecoratorDevice.h:235
DecoratorDevice::LogicalToDevice
virtual void LogicalToDevice(float *x, float *y) const
Definition: DecoratorDevice.h:275
VGDevice::Arc
virtual void Arc(float left, float top, float right, float bottom, float startX, float startY, float endX, float endY)=0
VGDevice::GetYOrigin
virtual float GetYOrigin() const =0
VGDevice::SetDPITag
virtual void SetDPITag(float inDPI)=0
Sets the printing resolution of the current VGDevice.
VGFont
Generic pure virtual & device-independant font class.
Definition: VGFont.h:36
VGDevice::LogicalToDevice
virtual void LogicalToDevice(float *x, float *y) const =0
VGDevice::getVGSystem
virtual VGSystem * getVGSystem() const =0
temporary hack - must be removed asap
VGDevice::DrawMusicSymbol
virtual void DrawMusicSymbol(float x, float y, unsigned int inSymbolID)=0
DecoratorDevice
Definition: DecoratorDevice.h:20
DecoratorDevice::ReleaseImageData
virtual void ReleaseImageData(const char *) const
Release the pointer returned by GetImageData.
Definition: DecoratorDevice.h:345
DecoratorDevice::SetOrigin
virtual void SetOrigin(float x, float y)
Specifies which VGDevice point (x,y) maps to the window origin (0,0).
Definition: DecoratorDevice.h:269
DecoratorDevice::GetImageData
virtual const char * GetImageData(const char *&outDataPtr, int &outLength)
Gives the current device data and returns the data associated mime type.
Definition: DecoratorDevice.h:342
DecoratorDevice::GetWidth
virtual int GetWidth() const
Returns the width (set via NotifySize) of the current VGDevice.
Definition: DecoratorDevice.h:296
DecoratorDevice::GetFontAlign
virtual unsigned int GetFontAlign() const
Definition: DecoratorDevice.h:325
DecoratorDevice::SetScale
virtual void SetScale(float x, float y)
Sets the scale factors of the current VGDevice to the input values.
Definition: DecoratorDevice.h:266
VGDevice::Line
virtual void Line(float x1, float y1, float x2, float y2)=0
DecoratorDevice::SetTextFont
virtual void SetTextFont(const VGFont *font)
Definition: DecoratorDevice.h:196
DecoratorDevice::MoveTo
virtual void MoveTo(float x, float y)
Moves the current position to the point specified by (x,y).
Definition: DecoratorDevice.h:158
DecoratorDevice::GetXScale
virtual float GetXScale() const
Definition: DecoratorDevice.h:281
VGDevice::SelectPen
virtual void SelectPen(const VGColor &inColor, float witdh)=0
VGDevice::GetBitMapPixels
virtual void * GetBitMapPixels()=0
Allows pixels operations and returns a pointer to the bitmap pixels.
DecoratorDevice::getVGSystem
virtual VGSystem * getVGSystem() const
temporary hack - must be removed asap
Definition: DecoratorDevice.h:349
DecoratorDevice::~DecoratorDevice
virtual ~DecoratorDevice()
Definition: DecoratorDevice.h:29
DecoratorDevice::Arc
virtual void Arc(float left, float top, float right, float bottom, float startX, float startY, float endX, float endY)
Definition: DecoratorDevice.h:176
VGDevice::SetOrigin
virtual void SetOrigin(float x, float y)=0
Specifies which VGDevice point (x,y) maps to the window origin (0,0).
DecoratorDevice::OffsetOrigin
virtual void OffsetOrigin(float x, float y)
Offsets the current VGDevice's origin (see above).
Definition: DecoratorDevice.h:272
DecoratorDevice::GetXOrigin
virtual float GetXOrigin() const
Definition: DecoratorDevice.h:287
VGDevice::DrawString
virtual void DrawString(float x, float y, const char *s, int inCharCount)=0
VGDevice::Polygon
virtual void Polygon(const float *xCoords, const float *yCoords, int count)=0

Guido Project Copyright © 2019 Grame-CNCM