Mercurial > hg > aimc
comparison trunk/src/Modules/Output/Graphics/Devices/GraphicsOutputDeviceCairo.h @ 399:7bfed53caacf
- A few changes to get graphics working. In progress.
author | tom@acousticscale.org |
---|---|
date | Sat, 16 Oct 2010 22:27:03 +0000 |
parents | 3ee03a6b95a0 |
children | dd13c9834ceb |
comparison
equal
deleted
inserted
replaced
398:3ee03a6b95a0 | 399:7bfed53caacf |
---|---|
32 | 32 |
33 #include "cairo.h" | 33 #include "cairo.h" |
34 | 34 |
35 #include "Modules/Output/Graphics/Devices/GraphicsOutputDevice.h" | 35 #include "Modules/Output/Graphics/Devices/GraphicsOutputDevice.h" |
36 | 36 |
37 namespace aimc { | |
38 | |
37 /*! | 39 /*! |
38 * \class GraphicsOutputDeviceCairo "Output/GraphicsOutputDeviceCairo.h" | 40 * \class GraphicsOutputDeviceCairo "Output/GraphicsOutputDeviceCairo.h" |
39 * \brief Output class for output to a graphics file using Cairo | 41 * \brief Output class for output to a graphics file using Cairo |
40 * | 42 * |
41 * This class outputs a graphics operation to file. It only supports 2d though, | 43 * This class outputs a graphics operation to file. It only supports 2d though, |
42 * so the z-component is ignored. | 44 * so the z-component is ignored. |
43 */ | 45 */ |
44 class GraphicsOutputDeviceCairo : public GraphicsOutputDevice | 46 class GraphicsOutputDeviceCairo : public GraphicsOutputDevice { |
45 { | |
46 public: | 47 public: |
47 GraphicsOutputDeviceCairo(AimParameters *pParam); | 48 GraphicsOutputDeviceCairo(Parameters *pParam); |
48 virtual ~GraphicsOutputDeviceCairo(); | 49 virtual ~GraphicsOutputDeviceCairo(); |
49 | 50 |
50 /*! \brief Initializes this output device, prepares plotting tools. | 51 /*! \brief Initializes this output device, prepares plotting tools. |
51 * \param sDir Directory or filename where to put images, max length is | 52 * \param sDir Directory or filename where to put images, max length is |
52 * _MAX_PATH. Must end with slash!!! | 53 * _MAX_PATH. Must end with slash!!! |
127 | 128 |
128 unsigned int m_iWidth; | 129 unsigned int m_iWidth; |
129 unsigned int m_iHeight; | 130 unsigned int m_iHeight; |
130 bool m_bUseMemoryBuffer; | 131 bool m_bUseMemoryBuffer; |
131 }; | 132 }; |
132 | 133 } // namespace aimc |
133 #endif /* __GRAPHICS_OUTPUT_DEVICE_CAIRO_H__ */ | 134 #endif /* __GRAPHICS_OUTPUT_DEVICE_CAIRO_H__ */ |