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

This class manages the staffs of a system. More...

Public Member Functions

 GRStaffManager (GRMusic *p_grmusic, ARPageFormat *inPageFormat=0, const GuidoLayoutSettings *settings=0)
 
virtual ~GRStaffManager ()
 
GRBeginSpaceForceFunction2getCurrentBegSFF ()
 
int IsAutoPageBreak () const
 
void setAutoTag (const ARAuto *p_arauto)
 
void setBarFormat (const ARBarFormat *barfrmt, GRStaff *curstaff)
 
void setSystemDistance (float distance, const GRVoiceManager &p_vcmgr)
 
void setPageFormat (const ARPageFormat *pform)
 
void setSystemFormat (const ARSystemFormat *sysfrm)
 
void NewPage (GRPage *newpage)
 
void addElementToSpring (GRNotationElement *grne, int springid)
 
int deleteRod (GRRod *rod)
 
int addRod (GRRod *rod, bool spaceactive, bool atHead=false, int voiceID=-1)
 
int FinishSyncSlice (const TYPE_TIMEPOSITION &tp)
 
int AddGRSyncElement (GRNotationElement *grel, GRStaff *grstaff, int voiceid, GRVoice *vce, GRNotationElement *sameel=0)
 
int AddSystemTag (GRNotationElement *grel, GRStaff *grstaff, int voiceid)
 
int AddPageTag (GRNotationElement *grel, GRStaff *grstaff, int voiceid)
 
int getNewLinePage () const
 
virtual bool setStaffStateTag (const ARMusicalTag *tag, int staffnum)
 
virtual float getSystemWidthCm ()
 
virtual TYPE_TIMEPOSITION getRelativeTimePositionOfGR () const
 
virtual GRStaffgetStaff (int staff)
 
virtual void prepareStaff (int staff)
 
TYPE_TIMEPOSITION getRelativeEndTimePosition () const
 
GRGlobalStemgetOtherGlobalStem (GRSystemSlice *psys, GRVoiceManager *curvcmgr, const NVstring &label)
 
void createStaves ()
 
GRMusicgetGRMusic ()
 
int getNumVoices () const
 
void notifyAccoladeTag (const ARAccolade *inAccoladeTag)
 

Static Public Member Functions

static float InitialSpringStretch (int start, int end, IRodList *simplerods, IRodList *complerods, ISpringVector *sprvect, std::ofstream *springlog=0)
 

Protected Member Functions

void UpdateBeginningSFF (int staffnum)
 
void ResumeOpenTags (const GRSystemSlice *lastslice, GRSystemSlice *beginslice)
 

Protected Attributes

bool mIsBreak
 
int mSystemSize
 
float mSystemDistancePrev
 
float mSystemDistance
 
GRClefmMaxClef
 
GRKeymMaxKey
 
NEPointerListdeletedElements
 
int mNewLinePage
 
VStaffmMyStaffs
 
PositionVector staffposvect
 
VoiceManagerListmVoiceMgrList
 
GRSystemSlicemGrSystemSlice
 
GRSystemmGrSystem
 
GRMusicmGrMusic
 
GRPagemGrPage
 
const ARSystemFormatmCurSysFormat
 
sysslicelistmSystemSlices
 
bsfflistbeg_sff_list
 
sprlistbeg_spr_list
 
FloatVector staffTopVector
 
FloatVector staffBottomVector
 
GRRodlastrod
 
GRRodfirstrod
 
TYPE_TIMEPOSITION relativeTimePositionOfGR
 
TYPE_DURATION mDurationOfGR
 
const ARMusicmArMusic
 
SystemHash systemHash
 
PageHash pageHash
 
SyncHash syncHash
 
VoiceSpringIDArray voiceSpringArr
 
int mTempSpringID
 
int mSpringID
 
int mLastSpringID
 
IRodListmSimpleRods
 
IRodListmComplexRods
 
ISpringVectormSpringVector
 
IStaffStateVectormStaffStateVect
 
GRSpaceForceFunction2cursff
 
vce_ev_list evlist
 
GRPBListpblist
 
const ARAutomArAuto
 
std::vector< const ARAccolade * > mCurAccoladeTag
 
GuidoLayoutSettings settings
 

Friends

class GRSystem
 
class GRPossibleBreakState
 

Detailed Description

This class manages the staffs of a system.

The class fills a staff with objects/events (it converts the abstract representation into the graphical representation). The GRStaffManager will be called from the GRSystem. That means GRSystem gives the start and end time of the system and abstract representation and the GRStaffManager retrieves the objects and put them into the staffs. At the end the staffs will be added to the system.

Constructor & Destructor Documentation

◆ GRStaffManager()

GRStaffManager::GRStaffManager ( GRMusic p_grmusic,
ARPageFormat inPageFormat = 0,
const GuidoLayoutSettings settings = 0 
)

◆ ~GRStaffManager()

virtual GRStaffManager::~GRStaffManager ( )
virtual

Member Function Documentation

◆ addElementToSpring()

void GRStaffManager::addElementToSpring ( GRNotationElement grne,
int  springid 
)

◆ AddGRSyncElement()

int GRStaffManager::AddGRSyncElement ( GRNotationElement grel,
GRStaff grstaff,
int  voiceid,
GRVoice vce,
GRNotationElement sameel = 0 
)

◆ AddPageTag()

int GRStaffManager::AddPageTag ( GRNotationElement grel,
GRStaff grstaff,
int  voiceid 
)

◆ addRod()

int GRStaffManager::addRod ( GRRod rod,
bool  spaceactive,
bool  atHead = false,
int  voiceID = -1 
)

◆ AddSystemTag()

int GRStaffManager::AddSystemTag ( GRNotationElement grel,
GRStaff grstaff,
int  voiceid 
)

◆ createStaves()

void GRStaffManager::createStaves ( )

◆ deleteRod()

int GRStaffManager::deleteRod ( GRRod rod)

◆ FinishSyncSlice()

int GRStaffManager::FinishSyncSlice ( const TYPE_TIMEPOSITION tp)

◆ getCurrentBegSFF()

GRBeginSpaceForceFunction2* GRStaffManager::getCurrentBegSFF ( )

◆ getGRMusic()

GRMusic* GRStaffManager::getGRMusic ( )
inline

◆ getNewLinePage()

int GRStaffManager::getNewLinePage ( ) const

◆ getNumVoices()

int GRStaffManager::getNumVoices ( ) const

◆ getOtherGlobalStem()

GRGlobalStem* GRStaffManager::getOtherGlobalStem ( GRSystemSlice psys,
GRVoiceManager curvcmgr,
const NVstring label 
)

◆ getRelativeEndTimePosition()

TYPE_TIMEPOSITION GRStaffManager::getRelativeEndTimePosition ( ) const
inline

◆ getRelativeTimePositionOfGR()

virtual TYPE_TIMEPOSITION GRStaffManager::getRelativeTimePositionOfGR ( ) const
inlinevirtual

◆ getStaff()

virtual GRStaff* GRStaffManager::getStaff ( int  staff)
virtual

◆ getSystemWidthCm()

virtual float GRStaffManager::getSystemWidthCm ( )
virtual

◆ InitialSpringStretch()

static float GRStaffManager::InitialSpringStretch ( int  start,
int  end,
IRodList simplerods,
IRodList complerods,
ISpringVector sprvect,
std::ofstream *  springlog = 0 
)
static

◆ IsAutoPageBreak()

int GRStaffManager::IsAutoPageBreak ( ) const

◆ NewPage()

void GRStaffManager::NewPage ( GRPage newpage)

◆ notifyAccoladeTag()

void GRStaffManager::notifyAccoladeTag ( const ARAccolade inAccoladeTag)

◆ prepareStaff()

virtual void GRStaffManager::prepareStaff ( int  staff)
virtual

◆ ResumeOpenTags()

void GRStaffManager::ResumeOpenTags ( const GRSystemSlice lastslice,
GRSystemSlice beginslice 
)
protected

◆ setAutoTag()

void GRStaffManager::setAutoTag ( const ARAuto p_arauto)

◆ setBarFormat()

void GRStaffManager::setBarFormat ( const ARBarFormat barfrmt,
GRStaff curstaff 
)

◆ setPageFormat()

void GRStaffManager::setPageFormat ( const ARPageFormat pform)

◆ setStaffStateTag()

virtual bool GRStaffManager::setStaffStateTag ( const ARMusicalTag tag,
int  staffnum 
)
virtual

◆ setSystemDistance()

void GRStaffManager::setSystemDistance ( float  distance,
const GRVoiceManager p_vcmgr 
)

◆ setSystemFormat()

void GRStaffManager::setSystemFormat ( const ARSystemFormat sysfrm)

◆ UpdateBeginningSFF()

void GRStaffManager::UpdateBeginningSFF ( int  staffnum)
protected

Friends And Related Function Documentation

◆ GRPossibleBreakState

friend class GRPossibleBreakState
friend

◆ GRSystem

friend class GRSystem
friend

Member Data Documentation

◆ beg_sff_list

bsfflist* GRStaffManager::beg_sff_list
protected

◆ beg_spr_list

sprlist* GRStaffManager::beg_spr_list
protected

◆ cursff

GRSpaceForceFunction2* GRStaffManager::cursff
protected

◆ deletedElements

NEPointerList* GRStaffManager::deletedElements
protected

◆ evlist

vce_ev_list GRStaffManager::evlist
protected

◆ firstrod

GRRod* GRStaffManager::firstrod
protected

◆ lastrod

GRRod* GRStaffManager::lastrod
protected

◆ mArAuto

const ARAuto* GRStaffManager::mArAuto
protected

◆ mArMusic

const ARMusic* GRStaffManager::mArMusic
protected

◆ mComplexRods

IRodList* GRStaffManager::mComplexRods
protected

◆ mCurAccoladeTag

std::vector<const ARAccolade*> GRStaffManager::mCurAccoladeTag
protected

◆ mCurSysFormat

const ARSystemFormat* GRStaffManager::mCurSysFormat
protected

◆ mDurationOfGR

TYPE_DURATION GRStaffManager::mDurationOfGR
protected

◆ mGrMusic

GRMusic* GRStaffManager::mGrMusic
protected

◆ mGrPage

GRPage* GRStaffManager::mGrPage
protected

◆ mGrSystem

GRSystem* GRStaffManager::mGrSystem
protected

◆ mGrSystemSlice

GRSystemSlice* GRStaffManager::mGrSystemSlice
protected

◆ mIsBreak

bool GRStaffManager::mIsBreak
protected

◆ mLastSpringID

int GRStaffManager::mLastSpringID
protected

◆ mMaxClef

GRClef* GRStaffManager::mMaxClef
protected

◆ mMaxKey

GRKey* GRStaffManager::mMaxKey
protected

◆ mMyStaffs

VStaff* GRStaffManager::mMyStaffs
protected

◆ mNewLinePage

int GRStaffManager::mNewLinePage
protected

◆ mSimpleRods

IRodList* GRStaffManager::mSimpleRods
protected

◆ mSpringID

int GRStaffManager::mSpringID
protected

◆ mSpringVector

ISpringVector* GRStaffManager::mSpringVector
protected

◆ mStaffStateVect

IStaffStateVector* GRStaffManager::mStaffStateVect
protected

◆ mSystemDistance

float GRStaffManager::mSystemDistance
protected

◆ mSystemDistancePrev

float GRStaffManager::mSystemDistancePrev
protected

◆ mSystemSize

int GRStaffManager::mSystemSize
protected

◆ mSystemSlices

sysslicelist* GRStaffManager::mSystemSlices
protected

◆ mTempSpringID

int GRStaffManager::mTempSpringID
protected

◆ mVoiceMgrList

VoiceManagerList* GRStaffManager::mVoiceMgrList
protected

◆ pageHash

PageHash GRStaffManager::pageHash
protected

◆ pblist

GRPBList* GRStaffManager::pblist
protected

◆ relativeTimePositionOfGR

TYPE_TIMEPOSITION GRStaffManager::relativeTimePositionOfGR
protected

◆ settings

GuidoLayoutSettings GRStaffManager::settings
protected

◆ staffBottomVector

FloatVector GRStaffManager::staffBottomVector
protected

◆ staffposvect

PositionVector GRStaffManager::staffposvect
protected

◆ staffTopVector

FloatVector GRStaffManager::staffTopVector
protected

◆ syncHash

SyncHash GRStaffManager::syncHash
protected

◆ systemHash

SystemHash GRStaffManager::systemHash
protected

◆ voiceSpringArr

VoiceSpringIDArray GRStaffManager::voiceSpringArr
protected

Guido Project Copyright © 2019 Grame-CNCM