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

an ending bracket graphical element. More...

Inheritance diagram for GRVolta:
GRPTagARNotationElement GRPositionTag GRARNotationElement GRTag GRNotationElement GObject GRVisitable

Public Types

enum  { kDefault, kRightOpened, kLeftOpened, kOpened }
 
- Public Types inherited from GRTag
enum  TAGTYPE {
  VOICETAG, STAFFTAG, SYSTEMTAG, PAGETAG,
  VOICEANDSYSTEMTAG
}
 

Public Member Functions

 GRVolta (GRStaff *pstaff, const ARVolta *ar)
 
virtual ~GRVolta ()
 
virtual void OnDraw (VGDevice &hdc) const
 
virtual const NVPointgetReferencePosition () const
 Retrieves the Symbol-reference-position with respect to the GUIDO-reference-position. More...
 
virtual void tellPosition (GObject *caller, const NVPoint &newPosition)
 
virtual void FinishPTag (GRStaff *grstaff)
 
GRNotationElementgetEndPos () const
 
GRNotationElementgetBegPos () const
 
NVRect getFirstSegment () const
 
size_t getSegmentsSize () const
 
void setFirstSegment (NVRect r)
 
- Public Member Functions inherited from GRPTagARNotationElement
 GRPTagARNotationElement (GuidoPos p_ep, const ARMusicalObject *el, bool ownsAR=false)
 
 GRPTagARNotationElement (const ARMusicalObject *el, bool ownsAR=false)
 
virtual ~GRPTagARNotationElement ()
 
virtual const NVPointgetOffset () const
 
virtual float getSize () const
 
virtual int getFontSize () const
 
const unsigned char * getColRef () const
 
virtual void addAssociation (GRNotationElement *grnot)
 
virtual void removeAssociation (GRNotationElement *el)
 
- Public Member Functions inherited from GRPositionTag
 GRPositionTag (const ARMusicalTag *armt=0)
 
 GRPositionTag (GuidoPos p_ep, const ARMusicalTag *armt=0)
 
virtual ~GRPositionTag ()
 
virtual void ResumeTag (GRStaff *grstaff, GuidoPos assocpos)
 
virtual void BreakTag (GRStaff *grstaff, GuidoPos &assocpos)
 
virtual void StaffBegin (GRStaff *grstaff=0)
 
virtual void StaffFinished (GRStaff *grstaff=0)
 
virtual void RangeEnd (GRStaff *grstaff=0)
 
virtual bool DeleteStaff (GRStaff *grstaff)
 
void changeCurrentSystem (GRSystem *psystem)
 
void DeleteAllSSEs ()
 
GuidoPos getEndPos () const
 
GRSystemStartEndStructgetSystemStartEndStruct (const GRSystem *grsystem) const
 
void addSystemStartEndStruct (GRSystemStartEndStruct *sse)
 
- Public Member Functions inherited from GRTag
 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 float getSConst () const
 
virtual const char * getFont () const
 
virtual const char * getFontAttrib () const
 
virtual void setSConst (float val)
 
void setTagType (TAGTYPE ntyp)
 
TAGTYPE getTagType () const
 
void setError (int p_error)
 
int getError () const
 
- Public Member Functions inherited from GRARNotationElement
 GRARNotationElement (const ARMusicalObject *abstractRepresentationOfNotationElement, bool p_ownsAR=false)
 
virtual ~GRARNotationElement ()
 
virtual const ARMusicalObjectgetAbstractRepresentation ()
 
virtual const ARMusicalObjectgetAbstractRepresentation () const
 
virtual void setOwnership (bool ownsAR)
 
virtual bool isChordComma () const
 
- Public Member Functions inherited from GRNotationElement
 GRNotationElement ()
 
virtual ~GRNotationElement ()
 
GRStaffgetGRStaff () const
 
virtual void setGRStaff (GRStaff *in)
 
GRSystemSlicegetGRSystemSlice () const
 
virtual int getStaffNumber () const
 
virtual float getLeftSpace () const
 
virtual float getRightSpace () const
 
virtual void setLeftSpace (float lspace)
 
virtual void setRightSpace (float rspace)
 
virtual void setHPosition (float nx)
 
virtual void setPosition (const NVPoint &newPosition)
 
virtual void setNeedsSpring (int inFlag)
 
virtual int getNeedsSpring () const
 
virtual int getSpringID () const
 
virtual void tellSpringID (int inSpringID)
 
NEPointerListgetAssociations ()
 
const NEPointerListgetAssociations () const
 
virtual void removeAssociation (const NEPointerList &nl)
 
void FreeAssociatedList ()
 
virtual NVPoint getTieEnd () const
 
virtual NVPoint getTieStart () const
 
virtual NVRect getAssociatedBoundingBox () const
 
void addToBoundingBox (GRNotationElement *in)
 
void OnDrawSymbol (VGDevice &hdc, unsigned int inSymbol, float inOffsetX=0, float inOffsetY=0, float inFontSize=0) const
 
void OnDrawText (VGDevice &hdc, NVPoint pos, const char *cp, int inCharCount=-1) const
 
void OnDrawText (VGDevice &hdc, const char *cp, int inCharCount=-1) const
 
void DrawSymbol (VGDevice &hdc, unsigned int inSymbol, float x=0, float y=0, float size=0) const
 
void DrawNumericSymbols (VGDevice &hdc, const char *symbols, float x, float y, float size, float spacing=DEFAULTNUMERICSPACE) const
 
void Show (bool status)
 
bool GetShow () const
 
virtual void SendMap (const NVRect &r, MapCollector &f, TYPE_TIMEPOSITION date, TYPE_DURATION dur, GuidoElementType type, MapInfos &infos) const
 
virtual void SendMap (MapCollector &f, TYPE_TIMEPOSITION date, TYPE_DURATION dur, GuidoElementType type, MapInfos &infos) const
 
virtual unsigned int getTextAlign () const
 
virtual const TYPE_DURATIONgetDuration () const
 
virtual void setDuration (const TYPE_TIMEPOSITION &dur)
 
virtual void setRelativeTimePosition (const TYPE_TIMEPOSITION &tp)
 
virtual void setRelativeEndTimePosition (const TYPE_TIMEPOSITION &tp)
 
virtual const TYPE_TIMEPOSITIONgetRelativeTimePosition () const
 
virtual void setDrawOnOff (bool onoff)
 
virtual bool getDrawOnOff ()
 
virtual TYPE_TIMEPOSITION getRelativeEndTimePosition () const
 
virtual void recalcVerticalPosition ()
 
virtual void accept (GRVisitor &visitor)
 
virtual void print (std::ostream &os) const
 
const NEPointerListassociated () const
 
virtual void setIsInHeader (bool state)
 
virtual bool isInHeader () const
 
virtual bool isEmpty () const
 
virtual bool isLyrics () const
 
virtual bool checkCollisionWith () const
 
virtual const GRTextisText () const
 
virtual const GRSingleNoteisSingleNote () const
 
virtual GRSingleNoteisSingleNote ()
 
virtual const GRNoteisGRNote () const
 
virtual const GRRestisRest () const
 
virtual const GREventisGREvent () const
 
virtual GREventisGREvent ()
 
virtual const GRGlueisGRGlue () const
 
virtual const GRTempoisGRTempo () const
 
virtual const GRTrillisGRTrill () const
 
virtual const GRBarisGRBar () const
 
virtual const GRDynamicsisGRDynamic () const
 
virtual GRFingeringisGRFingering ()
 
virtual GRSlurisGRSlur ()
 
virtual const GRHarmonyisGRHarmony () const
 
- Public Member Functions inherited from GObject
virtual ~GObject ()
 
virtual void addToOffset (const NVPoint &)
 
virtual const char * getFont () const
 
virtual const char * getFontAttrib () const
 
const NVPointgetPosition () const
 
const NVRectgetBoundingBox () const
 
void addToBoundingBox (const NVRect &in)
 
NVRectgetReferenceBoundingBox ()
 
virtual bool isGREventClass () const
 
virtual void GetMap (GuidoElementSelector sel, MapCollector &f, MapInfos &infos) const
 
virtual void DrawBoundingBox (VGDevice &hdc, const VGColor &inBrushColor) const
 
- Public Member Functions inherited from GRVisitable
virtual ~GRVisitable ()
 

Protected Member Functions

GRNotationElementgetEndElt (GRNotationElement *after)
 
GRNotationElementgetBegElt (GRNotationElement *before)
 
- Protected Member Functions inherited from GRPositionTag
virtual void setStartElement (const GRStaff *grstaff, GRNotationElement *n_element)
 
virtual void setEndElement (const GRStaff *grstaff, GRNotationElement *n_element)
 
virtual GRPositionTag::GRSaveStructgetNewGRSaveStruct ()
 
- Protected Member Functions inherited from GRNotationElement
void DrawExtents (VGDevice &hdc, const VGColor &inColor) const
 
- Protected Member Functions inherited from GObject
 GObject ()
 
 GObject (const GObject &in)
 

Protected Attributes

GRNotationElementmEnd
 
GRNotationElementmBeg
 
int mShape
 
const char * mString
 
int mStringSize
 
- Protected Attributes inherited from GRPositionTag
SSEList mStartEndList
 
GRSystemStartEndStruct::setflag lastendflag
 
GRNotationElementlastendElement
 
GuidoPos lastendpos
 
- Protected Attributes inherited from GRTag
int isautotag
 
float sconst
 
unsigned char * mColRef
 
std::string fFontName
 
std::string fFontAttrib
 
int fFontSize
 
float mTagSize
 
NVPoint mTagOffset
 
- Protected Attributes inherited from GRARNotationElement
const ARMusicalObjectmAbstractRepresentation
 
bool mOwnsAR
 
- Protected Attributes inherited from GRNotationElement
unsigned int mSymbol
 
GRStaffmGrStaff
 
int mNeedsSpring
 
int mSpringID
 
float mLeftSpace
 
float mRightSpace
 
bool mDraw
 
bool mShow
 
bool mIsInHeader
 
TYPE_DURATION mDurationOfGR
 
NEPointerListmAssociated
 
- Protected Attributes inherited from GObject
NVPoint mPosition
 
NVRect mBoundingBox
 
NVRect mMapping
 

Static Protected Attributes

static NVPoint refpos
 
- Static Protected Attributes inherited from GObject
static std::map< ConstMusicalSymbolID, float > sSymbolExtentMap
 
static NVPoint sRefposNone
 

Additional Inherited Members

- Static Public Member Functions inherited from GRNotationElement
static int ComparePos (const GRNotationElement *g1, const GRNotationElement *g2)
 
- Static Public Member Functions inherited from GObject
static bool positionIsOnStaffLine (float inPositionY, float inLSpace)
 
static float GetSymbolExtent (unsigned int inSymbol)
 

Detailed Description

an ending bracket graphical element.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
kDefault 
kRightOpened 
kLeftOpened 
kOpened 

Constructor & Destructor Documentation

◆ GRVolta()

GRVolta::GRVolta ( GRStaff pstaff,
const ARVolta ar 
)

◆ ~GRVolta()

virtual GRVolta::~GRVolta ( )
virtual

Member Function Documentation

◆ FinishPTag()

virtual void GRVolta::FinishPTag ( GRStaff grstaff)
virtual

Reimplemented from GRPositionTag.

◆ getBegElt()

GRNotationElement* GRVolta::getBegElt ( GRNotationElement before)
protected

◆ getBegPos()

GRNotationElement* GRVolta::getBegPos ( ) const
inline

◆ getEndElt()

GRNotationElement* GRVolta::getEndElt ( GRNotationElement after)
protected

◆ getEndPos()

GRNotationElement* GRVolta::getEndPos ( ) const
inline

◆ getFirstSegment()

NVRect GRVolta::getFirstSegment ( ) const
inline

◆ getReferencePosition()

virtual const NVPoint& GRVolta::getReferencePosition ( ) const
inlinevirtual

Retrieves the Symbol-reference-position with respect to the GUIDO-reference-position.

It is used for "generic" drawing of graphical symbols from a notation-font. Each symbol has to set the reference position according to font-symbol etc... the refpos is always specified using the "regular" fontsize; when the size parameter is different, the actual offset must be calculated during drawing.

Reimplemented from GObject.

◆ getSegmentsSize()

size_t GRVolta::getSegmentsSize ( ) const
inline

◆ OnDraw()

virtual void GRVolta::OnDraw ( VGDevice hdc) const
virtual

Reimplemented from GRNotationElement.

◆ setFirstSegment()

void GRVolta::setFirstSegment ( NVRect  r)
inline

◆ tellPosition()

virtual void GRVolta::tellPosition ( GObject caller,
const NVPoint newPosition 
)
virtual

Reimplemented from GRNotationElement.

Member Data Documentation

◆ mBeg

GRNotationElement * GRVolta::mBeg
protected

◆ mEnd

GRNotationElement* GRVolta::mEnd
protected

◆ mShape

int GRVolta::mShape
protected

◆ mString

const char* GRVolta::mString
protected

◆ mStringSize

int GRVolta::mStringSize
protected

◆ refpos

NVPoint GRVolta::refpos
staticprotected

Guido Project Copyright © 2019 Grame-CNCM