GUIDOLib  1.7.7
Guido Engine Internal Documentation
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
Public Member Functions | Protected Attributes | List of all members
GRSliceHeight Class Reference

This class manages the Height of Slices. More...

Public Member Functions

 GRSliceHeight ()
 
virtual ~GRSliceHeight ()
 
void AddSystemSlice (const GRSystemSlice *slc, bool doboundingrect=false)
 
float getHeight (bool notoprect=false) const
 
float getPosition (int i) const
 

Protected Attributes

HeightVector mHVector
 
float boundingRectTop
 
float boundingRectBottom
 
float minHeight
 

Detailed Description

This class manages the Height of Slices.

This is important so that we know, how high a collection of slices will really be. The Idea is really simple : we just have to remember the maximum height of each staff within all the slices. Whenever a new slice is added, we check the individual staff-heights and check, wether they are bigger than the stored maximum in which case we update the height.

Constructor & Destructor Documentation

◆ GRSliceHeight()

GRSliceHeight::GRSliceHeight ( )

◆ ~GRSliceHeight()

virtual GRSliceHeight::~GRSliceHeight ( )
virtual

Member Function Documentation

◆ AddSystemSlice()

void GRSliceHeight::AddSystemSlice ( const GRSystemSlice slc,
bool  doboundingrect = false 
)

◆ getHeight()

float GRSliceHeight::getHeight ( bool  notoprect = false) const

◆ getPosition()

float GRSliceHeight::getPosition ( int  i) const

Member Data Documentation

◆ boundingRectBottom

float GRSliceHeight::boundingRectBottom
protected

◆ boundingRectTop

float GRSliceHeight::boundingRectTop
protected

◆ mHVector

HeightVector GRSliceHeight::mHVector
protected

◆ minHeight

float GRSliceHeight::minHeight
protected

Guido Project Copyright © 2019 Grame-CNCM