GUIDOLib
1.7.7
A Music Score Rendering Engine
|
Go to the documentation of this file. 1 #ifndef GUIDOScoreMap_H 2 #define GUIDOScoreMap_H 18 # pragma warning (disable : 4661) // don't know how to solve it 47 kNote = 1,
kRest,
kEmpty,
kBar,
kRepeatBegin,
kRepeatEnd,
kStaff,
kSystemSlice,
kSystem,
kPage,
kGraceNote,
kClef,
kMeter 75 void print(std::ostream& out)
const;
315 __declspec(deprecated(
"Deprecated function (not maintained code)."))
std::pair< FloatRect, RectInfos > MapElement
Definition: GUIDOScoreMap.h:138
Definition: GUIDOScoreMap.h:47
GuidoErrCode GuidoGetTimeMap(CARHandler ar, TimeMapCollector &f)
Retrieves the rolled to unrolled time mapping.
std::pair< TimeSegment, FloatRect > TMapSegments
Definition: GUIDOScoreMap.h:85
virtual void Graph2TimeMap(const FloatRect &box, const TimeSegment &dates, const GuidoElementInfos &infos)=0
a method called by the GuidoGetMap function
int num
the date numerator
Definition: GUIDOEngine.h:86
an abstract class to be provided by clients to collect mappings
Definition: GUIDOScoreMap.h:109
Definition: GUIDOScoreMap.h:42
RectInfos(const TimeSegment &ts, const GuidoElementInfos &infos)
Definition: GUIDOScoreMap.h:131
bool intersect(const TimeSegment &ts) const
check for segments intersection
information associated to a rectangle in a mapping (MapElement)
Definition: GUIDOScoreMap.h:127
Definition: GUIDOScoreMap.h:41
virtual ~TimeMapCollector()
Definition: GUIDOScoreMap.h:150
GuidoErrCode GuidoGetSVGMap(GRHandler gr, int pagenum, GuidoElementSelector sel, std::vector< MapElement > &outMap) GUIDOAPI_deprecated
Retrieves the graphic to time mapping corresponding to the SVG output.
bool operator==(const TimeSegment &ts) const
GuidoErrCode GuidoGetRAWSystemMap(CGRHandler gr, int pagenum, float w, float h, Time2GraphicMap &outmap)
Retrieves a guido system graphic to time mapping, without any processing (RAW).
Definition: GUIDOScoreMap.h:47
virtual void Time2TimeMap(const TimeSegment &from, const TimeSegment &to)=0
a method called by the GuidoGetTimeMap function
Definition: GUIDOScoreMap.h:41
class_export TimeSegment
a time segment definition and operations
Definition: GUIDOScoreMap.h:67
Definition: GUIDOScoreMap.h:47
std::pair< TimeSegment, TimeSegment > TTimeMapSegments
Definition: GUIDOScoreMap.h:88
Time2GraphicMap::const_iterator Time2GraphicMapIterator
Definition: GUIDOScoreMap.h:91
std::ostream & operator<<(std::ostream &out, const GuidoDate &d)
Definition: GUIDOScoreMap.h:93
Definition: GUIDOScoreMap.h:41
virtual ~MapCollector()
Definition: GUIDOScoreMap.h:112
int midiPitch
the element midi pitch, or -1 when na
Definition: GUIDOScoreMap.h:59
const struct NodeGR * CGRHandler
Definition: GUIDOEngine.h:39
Definition: GUIDOScoreMap.h:41
const TimeSegment & time() const
Definition: GUIDOScoreMap.h:134
bool GuidoGetPoint(float x, float y, const Time2GraphicMap map, TimeSegment &t, FloatRect &r)
Retrieves a time segment and the associated graphic segment in a mapping.
Definition: GUIDOScoreMap.h:41
#define GUIDOAPI
Definition: GUIDOExport.h:39
int voiceNum
the element voice number or 0 when na
Definition: GUIDOScoreMap.h:58
Definition: GUIDOScoreMap.h:41
#define GUIDOAPI_deprecated
Definition: GUIDOEngine.h:28
Definition: GUIDOScoreMap.h:47
float duration() const
gives the segment duration
Definition: GUIDOScoreMap.h:41
GuidoErrCode GuidoGetSystemMap(CGRHandler gr, int pagenum, float w, float h, Time2GraphicMap &outmap)
Retrieves a guido system graphic to time mapping. New behaviour: if all staves have a rest at a same ...
bool operator<(const TimeSegment &ts) const
order relationship: the smaller is the smaller first date
bool empty() const
check for empty segment
virtual ~RectInfos()
Definition: GUIDOScoreMap.h:132
std::vector< TMapSegments > Time2GraphicMap
Definition: GUIDOScoreMap.h:89
GuidoErrCode
The guido error codes list.
Definition: GUIDOEngine.h:211
GuidoErrCode GuidoGetRAWVoiceMap(CGRHandler gr, int pagenum, float w, float h, int voice, Time2GraphicMap &outmap)
Retrieves a guido voice graphic to time mapping, without any processing (RAW).
GuidoElementType type
the element type
Definition: GUIDOScoreMap.h:56
GuidoErrCode GuidoGetStaffMap(CGRHandler gr, int pagenum, float w, float h, int staff, Time2GraphicMap &outmap)
Retrieves a guido staff graphic to time mapping. New behaviour: if a rest is at a bar start,...
Definition: GUIDOScoreMap.h:41
Definition: GUIDOScoreMap.h:47
Representation of a date as a rational value.
Definition: GUIDOEngine.h:83
GuidoErrCode GuidoGetRAWStaffMap(CGRHandler gr, int pagenum, float w, float h, int staff, Time2GraphicMap &outmap)
Retrieves a guido staff graphic to time mapping, without any processing (RAW).
Definition: GUIDOScoreMap.h:47
Definition: GUIDOScoreMap.h:41
Definition: GUIDOScoreMap.h:47
TimeSegment operator&(const TimeSegment &ts) const
intersection operation (may return an arbitrary empty segment)
Information related to elements.
Definition: GUIDOScoreMap.h:55
int denom
the date denominator
Definition: GUIDOEngine.h:88
const GuidoElementInfos & infos() const
Definition: GUIDOScoreMap.h:135
Definition: GUIDOScoreMap.h:47
Definition: GUIDOScoreMap.h:47
struct NodeGR * GRHandler
Definition: GUIDOEngine.h:37
GuidoErrCode GuidoGetPageMap(CGRHandler gr, int pagenum, float w, float h, Time2GraphicMap &outmap)
Retrieves a guido page graphic to time mapping.
GuidoErrCode GuidoGetSystemMapV1(CGRHandler gr, int pagenum, float w, float h, Time2GraphicMap &outmap)
Retrieves a guido system graphic to time mapping. To use the new behaviour, see GuidoGetSystemMap.
int staffNum
the element staff number or 0 when na
Definition: GUIDOScoreMap.h:57
Definition: GUIDOScoreMap.h:47
Definition: GUIDOScoreMap.h:47
GuidoErrCode GuidoGetStaffMapV1(CGRHandler gr, int pagenum, float w, float h, int staff, Time2GraphicMap &outmap)
Retrieves a guido staff graphic to time mapping. To use the new behaviour, see GuidoGetStaffMap.
Definition: GUIDOScoreMap.h:47
GuidoElementSelector
Definition: GUIDOScoreMap.h:40
#define class_export
Definition: GUIDOExport.h:38
std::vector< TTimeMapSegments > TTime2TimeMap
Definition: GUIDOScoreMap.h:90
bool include(const GuidoDate &date) const
check for date inclusion
std::pair< TimeSegment, TimeSegment > TimeMapElement
Definition: GUIDOScoreMap.h:160
bool startEqual(const TimeSegment &ts) const
check if start date is the same
GuidoErrCode GuidoGetVoiceMap(CGRHandler gr, int pagenum, float w, float h, int voice, Time2GraphicMap &outmap)
Retrieves a guido voice graphic to time mapping.
bool GuidoGetTime(const GuidoDate &date, const Time2GraphicMap map, TimeSegment &t, FloatRect &r)
Retrieves a time segment and the associated graphic segment in a mapping.
Definition: GUIDOScoreMap.h:47
GuidoElementType
Definition: GUIDOScoreMap.h:46
GuidoErrCode GuidoGetMap(CGRHandler gr, int pagenum, float width, float height, GuidoElementSelector sel, MapCollector &f)
Retrieves the graphic to time mapping, without any processing (RAW)
const struct NodeAR * CARHandler
Definition: GUIDOEngine.h:38
an abstract class to be provided by clients to collect time mappings
Definition: GUIDOScoreMap.h:147