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

GRBeginSpaceForceFunction2 is an derived version of GRSpaceForceFunction2. More...

Inheritance diagram for GRBeginSpaceForceFunction2:
GRSpaceForceFunction2

Public Member Functions

 GRBeginSpaceForceFunction2 (float force)
 
virtual ~GRBeginSpaceForceFunction2 ()
 
float getTop (int i) const
 
float getBottom (int i) const
 
void setHeight (int i, float top, float bottom)
 
- Public Member Functions inherited from GRSpaceForceFunction2
 GRSpaceForceFunction2 (float force)
 
virtual ~GRSpaceForceFunction2 ()
 
 GRSpaceForceFunction2 (const GRSpaceForceFunction2 &sff)
 
void setOptForce (float newoptforce)
 
void writeAllExtents (std::ostream &os) const
 
float EvaluateBreak (float extent)
 
void UnfreezeSpring (GRSpring *spr)
 
void FreezeSpring (GRSpring *spr)
 
void ResetSprings ()
 
void addSFF (const GRSpaceForceFunction2 &sff)
 
float getOptForce ()
 
void addSpring (GRSpring *spr)
 
void deleteSpring (GRSpring *spr)
 
float getExtent (float force) const
 
float getForce (float extent)
 
float getOptConstant () const
 
float getXminOpt () const
 

Protected Attributes

FloatVect vecttop
 
FloatVect vectbottom
 
- Protected Attributes inherited from GRSpaceForceFunction2
SortedForceList sortedlist
 
float xmin
 
float cmax
 
float xminopt
 
float copt
 
float optforce
 

Additional Inherited Members

- Static Protected Member Functions inherited from GRSpaceForceFunction2
static float CalcSpringConstant (float c1, float c2)
 

Detailed Description

GRBeginSpaceForceFunction2 is an derived version of GRSpaceForceFunction2.

Additionally to the orginal SFF2, this version includes a float-vector which captures the height of each staff for the begin-slice that would be added if the line of music would really be created.

Constructor & Destructor Documentation

◆ GRBeginSpaceForceFunction2()

GRBeginSpaceForceFunction2::GRBeginSpaceForceFunction2 ( float  force)
inline

◆ ~GRBeginSpaceForceFunction2()

virtual GRBeginSpaceForceFunction2::~GRBeginSpaceForceFunction2 ( )
inlinevirtual

Member Function Documentation

◆ getBottom()

float GRBeginSpaceForceFunction2::getBottom ( int  i) const
inline

◆ getTop()

float GRBeginSpaceForceFunction2::getTop ( int  i) const
inline

◆ setHeight()

void GRBeginSpaceForceFunction2::setHeight ( int  i,
float  top,
float  bottom 
)
inline

Member Data Documentation

◆ vectbottom

FloatVect GRBeginSpaceForceFunction2::vectbottom
protected

◆ vecttop

FloatVect GRBeginSpaceForceFunction2::vecttop
protected

Guido Project Copyright © 2019 Grame-CNCM