GUIDOLib  1.7.7
Guido Engine Internal Documentation
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
GObject Class Referenceabstract

The base class for all graphic objects. More...

Inheritance diagram for GObject:
GRNotationElement GRAccidental GRARNotationElement GRCompositeNotationElement GRDummy GRFlag GRGlue GRNoteDot GRNoteHead GRSimpleBeam GRStem GRSystemTag

Public Member Functions

virtual ~GObject ()
 
virtual void addToOffset (const NVPoint &)
 
virtual const NVPointgetOffset () const
 
virtual const char * getFont () const
 
virtual const char * getFontAttrib () const
 
virtual const unsigned char * getColRef () const
 
virtual int getFontSize () const
 
virtual float getSize () const
 
virtual const NVPointgetReferencePosition () const
 Retrieves the Symbol-reference-position with respect to the GUIDO-reference-position. More...
 
virtual void setPosition (const NVPoint &pos)
 
virtual void setHPosition (float nx)
 
const NVPointgetPosition () const
 
virtual void tellPosition (GObject *caller, const NVPoint &newPosition)
 
const NVRectgetBoundingBox () const
 
void addToBoundingBox (const NVRect &in)
 
NVRectgetReferenceBoundingBox ()
 
virtual bool isGREventClass () const
 
virtual void OnDraw (VGDevice &hdc) const =0
 
virtual void GetMap (GuidoElementSelector sel, MapCollector &f, MapInfos &infos) const
 
virtual void DrawBoundingBox (VGDevice &hdc, const VGColor &inBrushColor) const
 

Static Public Member Functions

static bool positionIsOnStaffLine (float inPositionY, float inLSpace)
 
static float GetSymbolExtent (unsigned int inSymbol)
 

Protected Member Functions

 GObject ()
 
 GObject (const GObject &in)
 

Protected Attributes

NVPoint mPosition
 
NVRect mBoundingBox
 
NVRect mMapping
 

Static Protected Attributes

static std::map< ConstMusicalSymbolID, float > sSymbolExtentMap
 
static NVPoint sRefposNone
 

Detailed Description

The base class for all graphic objects.

Constructor & Destructor Documentation

◆ ~GObject()

virtual GObject::~GObject ( )
inlinevirtual

◆ GObject() [1/2]

GObject::GObject ( )
inlineprotected

◆ GObject() [2/2]

GObject::GObject ( const GObject in)
protected

Member Function Documentation

◆ addToBoundingBox()

void GObject::addToBoundingBox ( const NVRect in)

◆ addToOffset()

virtual void GObject::addToOffset ( const NVPoint )
inlinevirtual

◆ DrawBoundingBox()

virtual void GObject::DrawBoundingBox ( VGDevice hdc,
const VGColor inBrushColor 
) const
virtual

◆ getBoundingBox()

const NVRect& GObject::getBoundingBox ( ) const
inline

◆ getColRef()

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

◆ getFont()

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

Reimplemented in GRTagARNotationElement.

◆ getFontAttrib()

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

Reimplemented in GRTagARNotationElement.

◆ getFontSize()

virtual int GObject::getFontSize ( ) const
inlinevirtual

◆ GetMap()

virtual void GObject::GetMap ( GuidoElementSelector  sel,
MapCollector f,
MapInfos infos 
) const
inlinevirtual

◆ getOffset()

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

◆ getPosition()

const NVPoint& GObject::getPosition ( ) const
inline

◆ getReferenceBoundingBox()

NVRect& GObject::getReferenceBoundingBox ( )
inline

◆ getReferencePosition()

virtual const NVPoint& GObject::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 in GRSingleRest, GRFlag, GRBar, GRTrill, GRVolta, GRRepeatEnd, GRArticulation, GRAccidental, GRNoteDot, GRStem, GRClef, GRRepeatBegin, GRJump, GRStdNoteHead, GRBreathMark, GRFinishBar, and GRInstrument.

◆ getSize()

virtual float GObject::getSize ( ) const
inlinevirtual

◆ GetSymbolExtent()

static float GObject::GetSymbolExtent ( unsigned int  inSymbol)
static

◆ isGREventClass()

virtual bool GObject::isGREventClass ( ) const
inlinevirtual

Reimplemented in GREvent.

◆ OnDraw()

virtual void GObject::OnDraw ( VGDevice hdc) const
pure virtual

◆ positionIsOnStaffLine()

static bool GObject::positionIsOnStaffLine ( float  inPositionY,
float  inLSpace 
)
static

◆ setHPosition()

virtual void GObject::setHPosition ( float  nx)
inlinevirtual

◆ setPosition()

virtual void GObject::setPosition ( const NVPoint pos)
inlinevirtual

◆ tellPosition()

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

Member Data Documentation

◆ mBoundingBox

NVRect GObject::mBoundingBox
protected

◆ mMapping

NVRect GObject::mMapping
protected

◆ mPosition

NVPoint GObject::mPosition
protected

◆ sRefposNone

NVPoint GObject::sRefposNone
staticprotected

◆ sSymbolExtentMap

std::map<ConstMusicalSymbolID, float> GObject::sSymbolExtentMap
staticprotected

Guido Project Copyright © 2019 Grame-CNCM