GUIDOLib  1.7.7
Guido Engine Internal Documentation
Public Types | Public Member Functions | Protected Attributes | List of all members
GRTag Class Reference

The GRTag class is the base class for all GUIDO tags. More...

Inheritance diagram for GRTag:
GRKey GRPositionTag GRSpecial GRTagARNotationElement GRCluster GRGrace GROctava GRPTagARNotationElement GRRange GRAccolade GRArticulation GRBar GRBarFormat GRBreathMark GRClef GRDrHoos GRDrRenz GRInstrument GRIntens GRJump GRMeter GRNotations GRPageText GRRepeatBegin GRTempo

Public Types

enum  TAGTYPE {
  VOICETAG, STAFFTAG, SYSTEMTAG, PAGETAG,
  VOICEANDSYSTEMTAG
}
 

Public Member Functions

 GRTag (const ARMusicalTag *artag=0, float curLSPACE=50.0f)
 
virtual ~GRTag ()
 
virtual bool operator!= (const GRTag &tag) const
 
virtual bool operator== (const GRTag &tag) const
 
int getIsAuto () const
 
bool IsStateTag () const
 
virtual const NVPointgetOffset () const
 
virtual float getSize () const
 
virtual float getSConst () const
 
virtual const char * getFont () const
 
virtual const char * getFontAttrib () const
 
virtual int getFontSize () const
 
virtual const unsigned char * getColRef () const
 
virtual void setSConst (float val)
 
void setTagType (TAGTYPE ntyp)
 
TAGTYPE getTagType () const
 
void setError (int p_error)
 
int getError () const
 
virtual void StaffFinished (GRStaff *grstaff=0)
 
virtual void StaffBegin (GRStaff *grstaff=0)
 
virtual void RangeEnd (GRStaff *grstaff=0)
 

Protected Attributes

int isautotag
 
float sconst
 
unsigned char * mColRef
 
std::string fFontName
 
std::string fFontAttrib
 
int fFontSize
 
float mTagSize
 
NVPoint mTagOffset
 

Detailed Description

The GRTag class is the base class for all GUIDO tags.

It is used to distinguish different types of tags. There are Voice-Tags, Staff-Tags and System-Tags and even Page-Tags. This distinction is used to build rods/springs and to find contradicting entries for tags on the different levels.

Member Enumeration Documentation

◆ TAGTYPE

Enumerator
VOICETAG 
STAFFTAG 
SYSTEMTAG 
PAGETAG 
VOICEANDSYSTEMTAG 

Constructor & Destructor Documentation

◆ GRTag()

GRTag::GRTag ( const ARMusicalTag artag = 0,
float  curLSPACE = 50.0f 
)

◆ ~GRTag()

virtual GRTag::~GRTag ( )
virtual

Member Function Documentation

◆ getColRef()

virtual const unsigned char* GRTag::getColRef ( ) const
inlinevirtual

◆ getError()

int GRTag::getError ( ) const
inline

◆ getFont()

virtual const char* GRTag::getFont ( ) const
inlinevirtual

Reimplemented in GRTagARNotationElement.

◆ getFontAttrib()

virtual const char* GRTag::getFontAttrib ( ) const
inlinevirtual

Reimplemented in GRTagARNotationElement.

◆ getFontSize()

virtual int GRTag::getFontSize ( ) const
inlinevirtual

◆ getIsAuto()

int GRTag::getIsAuto ( ) const

◆ getOffset()

virtual const NVPoint& GRTag::getOffset ( ) const
inlinevirtual

◆ getSConst()

virtual float GRTag::getSConst ( ) const
inlinevirtual

◆ getSize()

virtual float GRTag::getSize ( ) const
inlinevirtual

◆ getTagType()

TAGTYPE GRTag::getTagType ( ) const
inline

◆ IsStateTag()

bool GRTag::IsStateTag ( ) const

◆ operator!=()

virtual bool GRTag::operator!= ( const GRTag tag) const
inlinevirtual

◆ operator==()

virtual bool GRTag::operator== ( const GRTag tag) const
virtual

Reimplemented in GRBar, GRClef, and GRKey.

◆ RangeEnd()

virtual void GRTag::RangeEnd ( GRStaff grstaff = 0)
virtual

◆ setError()

void GRTag::setError ( int  p_error)
inline

◆ setSConst()

virtual void GRTag::setSConst ( float  val)
inlinevirtual

◆ setTagType()

void GRTag::setTagType ( TAGTYPE  ntyp)
inline

◆ StaffBegin()

virtual void GRTag::StaffBegin ( GRStaff grstaff = 0)
virtual

Reimplemented in GRBeam, and GRPositionTag.

◆ StaffFinished()

virtual void GRTag::StaffFinished ( GRStaff grstaff = 0)
virtual

Reimplemented in GRBeam, and GRPositionTag.

Member Data Documentation

◆ fFontAttrib

std::string GRTag::fFontAttrib
protected

◆ fFontName

std::string GRTag::fFontName
protected

◆ fFontSize

int GRTag::fFontSize
protected

◆ isautotag

int GRTag::isautotag
protected

◆ mColRef

unsigned char* GRTag::mColRef
protected

◆ mTagOffset

NVPoint GRTag::mTagOffset
protected

◆ mTagSize

float GRTag::mTagSize
protected

◆ sconst

float GRTag::sconst
protected

Guido Project Copyright © 2019 Grame-CNCM