GUIDOLib  1.7.7
Guido Engine Internal Documentation
SVGMapDevice.h
1 #ifndef __SVGMapDevice__
2 #define __SVGMapDevice__
3 
4 /*
5  GUIDO Library
6  Copyright (C) 2011 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 "SVGDevice.h"
18 
19 #include "GUIDOExport.h"
20 #include "GUIDOScoreMap.h"
21 
22 class_export SVGMapDevice : public SVGDevice
23 {
24 public :
25  SVGMapDevice(std::ostream& outstream, SVGSystem* system, const char* guidofont, int inMappingMode);
26 
27  void addVoiceMap (Time2GraphicMap inVoiceMap) { voicesMapsVector->push_back(inVoiceMap); }
28  void addStaffMap (Time2GraphicMap inStaffMap) { stavesMapsVector->push_back(inStaffMap); }
29  void addSystemMap(Time2GraphicMap inSystemMap) { systemMapsVector->push_back(inSystemMap); }
30 
31 private:
32  virtual void EndDraw();
33 
34  virtual void drawMap(std::vector<Time2GraphicMap> *mapsVector);
35  virtual void drawMaps();
36 
37  std::vector<Time2GraphicMap> *voicesMapsVector;
38  std::vector<Time2GraphicMap> *stavesMapsVector;
39  std::vector<Time2GraphicMap> *systemMapsVector;
40 
41  int mappingMode;
42 };
43 
44 #endif
SVGDevice
class_export SVGDevice
A SVG based drawing device.
Definition: SVGDevice.h:67
Time2GraphicMap
std::vector< TMapSegments > Time2GraphicMap
Definition: GUIDOScoreMap.h:89
SVGSystem
class_export SVGSystem
Definition: SVGSystem.h:35
EndDraw
virtual void EndDraw()

Guido Project Copyright © 2019 Grame-CNCM