class MorphElement: public DataElement
Implements a morphable data element. Morph elements can either have the initial shape of a bar or a pie slice and can then morph to the other shape.
Inherits from DataElement.
| MorphElement | Implements a morphable data element. |
| Functions | |
| MorphElement | Initializes the object as a copy of a bar data element. |
| MorphElement | Initializes the object as a copy of a pie slice data element. |
| ~MorphElement | Releases all allocated resources. |
| Draw | Draws the morph element. |
| DrawLabels | Unused function. |
| ChangePosition | Changes the position of the morph element. |
| Scale | Scales the object. |
| ChangeAlpha | Changes the alpha value of the morph element. |
| Morph | Morphs the object to the shape of the result morph element by moving the single vertices according to the morph steps. |
| GetAllPoints | Returns all vertices of the morph element. |
| GetVertexCount | Returns the total number of vertices of the element. |
| GetResultElement | Returns the pointer to the specified result morph element. |
MorphElement( DataEntry * pDataEntry, MorphElement * pResultElement, int iVerticesPerSide, float fLeft, float fTop, float fBottom, float fWidth )
Initializes the object as a copy of a bar data element.
| pDataEntry | Pointer to the data entry object that shall be represented by the morph element. |
| pResultElement | Pointer to the morph element whose shape shall be the result of the morphing process. |
| iVerticesPerSide | Number of vertices of the bar. |
| fLeft | The x value of the bar. |
| fTop | The upper y value of the bar. |
| fBottom | The lower y value of the bar. |
| fWidth | The width of the bar. |
MorphElement( DataEntry * pDataEntry, MorphElement * pResultElement, int iVerticesPerSide, float fBeginValue, float fWidth )
Initializes the object as a copy of a pie slice data element.
| pDataEntry | Pointer to the data entry object that shall be represented by the morph element. |
| pResultElement | Pointer to the morph element whose shape shall be the result of the morphing process. |
| iVerticesPerSide | Number of outter vertices of the pie slice. |
| fBeginValue | Accumulated data entry values of predecessor pie slices. |
| fWidth | Data entry value of the pie slice. |
void Draw( QPainter * pPainter )
Draws the morph element. Inherited from AlterableObject.
| pPainter | The QPainter object that shall be used for painting. |
void DrawLabels( QPainter * pPainter )
Unused function. Inherited from AlterableObject.
| pPainter | Unused parameter. |
void ChangePosition( float fDeltaLeft, float fDeltaTop, float fDeltaBottom = 0.0f )
Changes the position of the morph element. Inherited from AlterableObject.
| fDeltaLeft | Total horizontal distance. |
| fDeltaTop | Total vertical distance according to the upper vertices. |
| fDeltaBottom | Total vertical distance according to the lower vertices. Default value is 0.0f. |
void Scale( float fDeltaWidth, float fDeltaHeight )
Scales the object. Inherited from DataElement.
| fDeltaWidth | Total horizontal scaling value. |
| fDeltaHeight | Total vertical scaling value. |
void ChangeAlpha( float fDeltaAlpha )
Changes the alpha value of the morph element. Inherited from AlterableObject.
| fDeltaAlpha | Change of alpha value. Default value is 0.0f. |
Implements a morphable data element.
class MorphElement: public DataElement
Initializes the object as a copy of a bar data element.
MorphElement( DataEntry * pDataEntry, MorphElement * pResultElement, int iVerticesPerSide, float fLeft, float fTop, float fBottom, float fWidth )
Releases all allocated resources.
~MorphElement()
Draws the morph element.
void Draw( QPainter * pPainter )
Unused function.
void DrawLabels( QPainter * pPainter )
Changes the position of the morph element.
void ChangePosition( float fDeltaLeft, float fDeltaTop, float fDeltaBottom = 0.0f )
Scales the object.
void Scale( float fDeltaWidth, float fDeltaHeight )
Changes the alpha value of the morph element.
void ChangeAlpha( float fDeltaAlpha )
Morphs the object to the shape of the result morph element by moving the single vertices according to the morph steps.
void Morph( glm:: vec2 * vMorphSteps )
Returns all vertices of the morph element.
glm::vec4* GetAllPoints()
Returns the total number of vertices of the element.
int GetVertexCount()
Returns the pointer to the specified result morph element.
MorphElement* GetResultElement()
Abstract class that implements the skeleton of a data element.
class DataElement: public AlterableObject
Abstract class that implements the skeleton of an alterable object, i.e.
class AlterableObject