#include <qsgraphicaldata.h>
Inheritance diagram for QSGraphicalData:
Signals | |
void | sigTitleChanged (const QString &newTitle) |
Public Methods | |
QSGraphicalData (QObject *parent=0, QSGraphicalData *parentObject=0, const char *name=0) | |
virtual | ~QSGraphicalData () |
void | setTitle (const QString &title) |
QString | title () const |
virtual bool | setMatrix (int channel, QSMatrix *m) |
virtual QSMatrix * | matrix (int channel) const |
virtual void | deleteMatrix (int channel) |
virtual QSMatrix * | takeMatrix (int channel, QSMatrix *newMatrix) |
int | channelCount () const |
double | value (int row, int col, int channel) |
int | matrixRows (int channel) const |
int | matrixCols (int channel) const |
bool | isChannel (int channel) const |
void | setFont (int e, const QSGFont &font) |
void | setFill (int e, const QSGFill &fill) |
void | setLine (int e, const QSGLine &line) |
void | setPoint (int e, const QSGPoint &point) |
QSGFont | font (int e) const |
QSGFill | fill (int e) const |
QSGLine | line (int e) const |
QSGPoint | point (int e) const |
int | fontCount () const |
int | fillCount () const |
int | lineCount () const |
int | pointCount () const |
virtual void | loadStateFromStream (QDataStream &stream, QSObjectFactory *factory) |
virtual void | saveStateToStream (QDataStream &stream, QSObjectFactory *factory) |
Protected Methods | |
void | initChannelTable (int channels_num) |
void | initAttributeTables (int fonts_num, int fills_num, int lines_num, int points_num) |
virtual void | parametersChanging () |
virtual void | parametersChanged () |
double | _log (double value, double logBase=10.0) |
Static Protected Methods | |
QSGFont | fontFromData (QSMatrix *source, int row, int start_col, const QSGFont &default_value) |
QSGFill | fillFromData (QSMatrix *source, int row, int start_col, const QSGFill &default_value) |
QSGLine | lineFromData (QSMatrix *source, int row, int start_col, const QSGLine &default_value) |
QSGPoint | pointFromData (QSMatrix *source, int row, int start_col, const QSGPoint &default_value) |
QSGArrow | arrowFromData (QSMatrix *source, int row, int start_col, const QSGArrow &default_value) |
QSGColor | colorFromData (QSMatrix *source, int row, int start_col, const QSGColor &default_value) |
ColumnType | fontColumnFormat (int column) |
ColumnType | fillColumnFormat (int column) |
ColumnType | lineColumnFormat (int column) |
ColumnType | pointColumnFormat (int column) |
ColumnType | arrowColumnFormat (int column) |
ColumnType | colorColumnFormat (int column) |
Protected Attributes | |
QSGraphicalData::settings_t | m_settings |
QSMatrix ** | m_channels |
int | m_channels_count |
QString | m_title_str |
QSGraphicalData * | m_parent_base_object |
See new functions : setFill(), setFont(), setLine(), setPoint(). Contains also implementation of the QSData interface.
|
Constructor |
|
Destructor. |
|
Calculates a logarithm of value 'value'. Fix it to remember log10(logBase); |
|
Standard column types for arrow. See arrowFromData(). |
|
Reads an arrow style from matrix. Row format is [ style, size ] |
|
Returns the total number of channels. Reimplemented from QSData. |
|
Standard column types for font. See colorFromData(). |
|
Reads a color from matrix. Row format is [ red, green, blue, alpha ] |
|
Deletes the choosen matrix. Reimplemented from QSData. |
|
Returns a fill style of the given element |
|
Standard column types for font. See fillFromData(). |
|
Returns the total number of fill elements. |
|
Reads fill style from matrix. Row format is [ style, red, green, blue, alpha ] |
|
Returns a font style of the given element |
|
Standard column types for font. See fontFromData(). |
|
Returns the total number of font elements. |
|
Reads font from matrix. Row formst is [ family(text), size, bold, italic, red, green. blue, alpha ) ] |
|
Allocates memory for fonts, fills, ... tables. |
|
Allocates memory for channels |
|
Returns 'true' if matrix at the given channel exist. |
|
Returns a point style of the given element |
|
Standard column types for font. See lineFromData(). |
|
Returns the total number of line elements. |
|
Reads a line style from matrix. Row format is [ style, width, red, green, blue, alpha ] |
|
Restores all graphics atributes Reimplemented from QSData. Reimplemented in QSAxes. |
|
Returns matrix 'channel' if any, or NULL. Notice that you should not operate on it during drawing ( see QSAxes::state ) because this affects internal iterator positions in those matrices. Reimplemented from QSData. |
|
Returs the width of the choosen matrix or 0 if it is not set. |
|
Returs the height of the choosen matrix or 0 if it is not set. |
|
This function is called after any parameter change. This function can be reimplemented but unfortunately there is no information, which parameter has changed. It informs derived classes that they should repaint themselves. Default implementation calls parent->parametersChanging(); Reimplemented in QSAxes. |
|
This function is called before any parameter change. This function can be reimplemented but unfortunately there is no information, which parameter has changed. It informs derived classes to stop the drawing process. Default implementation calls parent->paremerersChanging() Reimplemented in QSAxes. |
|
Returns a point style of the given element |
|
Standard column types for point. See pointFromData(). |
|
Returns the total number of points elements. |
|
Reads a point form matrix. Row format is [ style, fill, size, red, green, blue, alpha ] |
|
Saves all graphics attributes Reimplemented from QSData. Reimplemented in QSAxes. |
|
Sets the fill for the 'e' element. |
|
Sets the font for the 'e' element. |
|
Set a line style for the 'e' element. |
|
Sets a new matrix as the given channel in the plot. Reimplemented from QSData. |
|
Set a point style for the 'e' element. |
|
Sets a plot title. |
|
Title has changed. |
|
Return matrix and sets data to NULL. Reimplemented from QSData. |
|
Returns title. |
|
Returns value at the position (x, y) from the channel 'channel'. You have to pass correct arguments to this function because it does not perform any channel or range checking. |
|
list of matrices |
|
fonts, fills and lines styles |