comparison trunk/src/Modules/Output/Graphics/Devices/GraphicsOutputDeviceCairo.h @ 400:dd13c9834ceb

- Well, most of the graphics stuff at least compiles now. Next step is getting it running. M Modules/Output/Graphics/GraphicsView.h M Modules/Output/Graphics/Devices/GraphicsOutputDeviceMovieDirect.cc M Modules/Output/Graphics/Devices/GraphicsOutputDeviceMovieDirect.h M Modules/Output/Graphics/Devices/GraphicsOutputDeviceCairo.cc M Modules/Output/Graphics/Devices/GraphicsOutputDeviceCairo.h M Modules/Output/Graphics/Devices/GraphicsOutputDeviceMovie.cc M Modules/Output/Graphics/Devices/GraphicsOutputDeviceMovie.h M Modules/Output/Graphics/Scale/ScaleLog.h M Modules/Output/Graphics/Scale/ScaleERB.h M Modules/Output/Graphics/Scale/ScaleLinear.h M Modules/Output/Graphics/Scale/ScaleLogScaled.h M Modules/Output/Graphics/Scale/Scale.cc M Modules/Output/Graphics/Scale/Scale.h M Support/Common.h
author tom@acousticscale.org
date Sat, 16 Oct 2010 23:05:26 +0000
parents 7bfed53caacf
children a908972d234e
comparison
equal deleted inserted replaced
399:7bfed53caacf 400:dd13c9834ceb
25 */ 25 */
26 26
27 #ifndef __GRAPHICS_OUTPUT_DEVICE_CAIRO_H__ 27 #ifndef __GRAPHICS_OUTPUT_DEVICE_CAIRO_H__
28 #define __GRAPHICS_OUTPUT_DEVICE_CAIRO_H__ 28 #define __GRAPHICS_OUTPUT_DEVICE_CAIRO_H__
29 29
30 #include <string>
31
30 #include <stdlib.h> 32 #include <stdlib.h>
31 #include <stdio.h> 33 #include <stdio.h>
32 34
33 #include "cairo.h" 35 #include "cairo.h"
34 36
35 #include "Modules/Output/Graphics/Devices/GraphicsOutputDevice.h" 37 #include "Modules/Output/Graphics/Devices/GraphicsOutputDevice.h"
36 38
37 namespace aimc { 39 namespace aimc {
38 40 using std::string;
39 /*! 41 /*!
40 * \class GraphicsOutputDeviceCairo "Output/GraphicsOutputDeviceCairo.h" 42 * \class GraphicsOutputDeviceCairo "Output/GraphicsOutputDeviceCairo.h"
41 * \brief Output class for output to a graphics file using Cairo 43 * \brief Output class for output to a graphics file using Cairo
42 * 44 *
43 * This class outputs a graphics operation to file. It only supports 2d though, 45 * This class outputs a graphics operation to file. It only supports 2d though,
94 //! \brief Set to true if the input file can be written to 96 //! \brief Set to true if the input file can be written to
95 bool m_bOutputFile; 97 bool m_bOutputFile;
96 //! \brief The Cairo plotter 98 //! \brief The Cairo plotter
97 int m_iPlotHandle; 99 int m_iPlotHandle;
98 //! \brief Output directory 100 //! \brief Output directory
99 char m_sDir[PATH_MAX]; 101 char m_sDir[FILENAME_MAX];
100 //! \brief Current file number 102 //! \brief Current file number
101 unsigned int m_iFileNumber; 103 unsigned int m_iFileNumber;
102 //! \brief true if this is the first vertex after gBegin() 104 //! \brief true if this is the first vertex after gBegin()
103 bool m_bIsFirstVertex; 105 bool m_bIsFirstVertex;
104 106
122 124
123 //! \brief Cairo Context 125 //! \brief Cairo Context
124 cairo_t *m_cCr; 126 cairo_t *m_cCr;
125 127
126 //! \brief Internal store for the input filename 128 //! \brief Internal store for the input filename
127 char m_sFilename[PATH_MAX]; 129 char m_sFilename[FILENAME_MAX];
128 130
129 unsigned int m_iWidth; 131 unsigned int m_iWidth;
130 unsigned int m_iHeight; 132 unsigned int m_iHeight;
131 bool m_bUseMemoryBuffer; 133 bool m_bUseMemoryBuffer;
132 }; 134 };