30#include <QDomDocument>
36#include <QXmlStreamReader>
37#include <QXmlStreamWriter>
59 <<
" image=" << image.width() <<
"x" << image.height();
63 m_successfulRead =
true;
65 m_pixmap.convertFromImage (image);
73 <<
" fileName=" << fileName.toLatin1().data();
75 m_successfulRead =
true;
78 QFile fileVersion (fileName);
79 if (fileVersion.open(QIODevice::ReadOnly)) {
81 QByteArray bytesStart = fileVersion.read (
FOUR_BYTES);
84 if (bytesIndicatePreVersion6 (bytesStart)) {
86 QFile *file =
new QFile (fileName);
87 if (file->open (QIODevice::ReadOnly)) {
88 QDataStream str (file);
91 loadPreVersion6 (str);
95 m_successfulRead =
false;
96 m_reasonForUnsuccessfulRead = QObject::tr (
"Operating system says file is not readable");
97 LOG4CPP_ERROR_S ((*
mainCat)) <<
"Document::loadVersion6 " << m_reasonForUnsuccessfulRead.toLatin1().data();
102 QFile *file =
new QFile (fileName);
103 if (file->open (QIODevice::ReadOnly | QIODevice::Text)) {
105 int version = versionFromFile (file);
119 loadVersions7AndUp (file);
123 m_successfulRead =
false;
124 m_reasonForUnsuccessfulRead = QString (
"Engauge %1 %2 %3 %4 Engauge")
126 .arg (QObject::tr (
"cannot read newer files from version"))
128 .arg (QObject::tr (
"of"));\
129 LOG4CPP_ERROR_S ((*
mainCat)) <<
"Document::loadVersion6 " << m_reasonForUnsuccessfulRead.toLatin1().data();
140 m_successfulRead =
false;
141 m_reasonForUnsuccessfulRead = QObject::tr (
"Operating system says file is not readable");
146 fileVersion.close ();
147 m_successfulRead =
false;
148 m_reasonForUnsuccessfulRead = QString (
"%1 '%2' %3")
149 .arg (QObject::tr (
"File"))
151 .arg (QObject::tr (
"was not found"));
159 <<
" toAdd=" << numberCoordSystemToAdd;
161 m_coordSystemContext.addCoordSystems(numberCoordSystemToAdd);
168 m_coordSystemContext.addGraphCurveAtEnd (curveName);
172 const QPointF &posGraph,
179 m_coordSystemContext.addPointAxisWithGeneratedIdentifier(posScreen,
187 const QPointF &posGraph,
188 const QString &identifier,
194 m_coordSystemContext.addPointAxisWithSpecifiedIdentifier(posScreen,
202 const QPointF &posScreen,
208 m_coordSystemContext.addPointGraphWithGeneratedIdentifier(curveName,
215 const QPointF &posScreen,
216 const QString &identifier,
221 m_coordSystemContext.addPointGraphWithSpecifiedIdentifier(curveName,
231 m_coordSystemContext.addPointsInCurvesGraphs(
curvesGraphs);
235 const QPointF &posScreen1,
237 QString &identifier0,
238 QString &identifier1,
244 const bool IS_X_ONLY =
false;
246 m_coordSystemContext.addPointAxisWithGeneratedIdentifier(posScreen0,
251 m_coordSystemContext.addPointAxisWithGeneratedIdentifier(posScreen1,
252 QPointF (scaleLength, 0),
258bool Document::bytesIndicatePreVersion6 (
const QByteArray &bytes)
const
262 QByteArray preVersion6MagicNumber;
266 preVersion6MagicNumber[0] =
'\x00';
267 preVersion6MagicNumber[1] =
'\x00';
268 preVersion6MagicNumber[2] =
'\xCA';
269 preVersion6MagicNumber[3] =
'\xFE';
271 return (bytes == preVersion6MagicNumber);
275 const QPointF &posGraph,
277 QString &errorMessage,
282 m_coordSystemContext.checkAddPointAxis(posScreen,
287 m_documentAxesPointsRequired);
291 const QPointF &posScreen,
292 const QPointF &posGraph,
294 QString &errorMessage)
298 m_coordSystemContext.checkEditPointAxis(pointIdentifier,
303 m_documentAxesPointsRequired);
310 return m_coordSystemContext.coordSystem();
317 return m_coordSystemContext.coordSystemCount();
324 return m_coordSystemContext.coordSystemIndex();
331 return m_coordSystemContext.curveAxes();
345 return m_coordSystemContext.curveForCurveName (curveName);
352 return m_coordSystemContext.curvesGraphs();
366 return m_coordSystemContext.curvesGraphsNumPoints(curveName);
371 return m_documentAxesPointsRequired;
375 const QString &identifier)
379 m_coordSystemContext.editPointAxis(posGraph,
387 const QStringList &identifiers,
392 m_coordSystemContext.editPointGraph (isX,
400void Document::generateEmptyPixmap(
const QXmlStreamAttributes &attributes)
404 int width = 800, height = 500;
414 m_pixmap = QPixmap (width, height);
421 ENGAUGE_ASSERT (!m_coordSystemContext.modelGridDisplay().stable());
427 Functor2wRet<const QString &, const Point &, CallbackSearchReturn> ftorWithCallback = functor_ret (ftor,
441 boundingRectGraphMax,
452 return m_coordSystemContext.isXOnly (pointIdentifier);
459 m_coordSystemContext.iterateThroughCurvePointsAxes(ftorWithCallback);
466 m_coordSystemContext.iterateThroughCurvePointsAxes(ftorWithCallback);
470 const Functor2wRet<const Point &, const Point &, CallbackSearchReturn> &ftorWithCallback)
const
474 m_coordSystemContext.iterateThroughCurveSegments(curveName,
482 m_coordSystemContext.iterateThroughCurvesPointsGraphs(ftorWithCallback);
489 m_coordSystemContext.iterateThroughCurvesPointsGraphs(ftorWithCallback);
492void Document::loadImage(QXmlStreamReader &reader)
497 if (reader.isCDATA ()) {
500 QByteArray array64 = reader.text().toString().toUtf8();
504 array = QByteArray::fromBase64(array64);
507 QDataStream str (&array, QIODevice::ReadOnly);
508 QImage img = m_pixmap.toImage ();
510 m_pixmap = QPixmap::fromImage (img);
513 while ((reader.tokenType() != QXmlStreamReader::EndElement) ||
523 reader.raiseError (QObject::tr (
"Cannot read image data"));
527void Document::loadPreVersion6 (QDataStream &str)
542 m_coordSystemContext.loadPreVersion6 (str,
544 m_documentAxesPointsRequired);
547void Document::loadVersion6 (QFile *file)
551 QXmlStreamReader reader (file);
560 bool inDocumentSubtree =
false;
563 while (!reader.atEnd() &&
564 !reader.hasError()) {
569 (tokenType == QXmlStreamReader::StartElement)) {
571 generateEmptyPixmap (reader.attributes());
576 (tokenType == QXmlStreamReader::StartElement)) {
578 inDocumentSubtree =
true;
581 (tokenType == QXmlStreamReader::EndElement)) {
587 if (inDocumentSubtree) {
590 if (tokenType == QXmlStreamReader::StartElement) {
593 QString tag = reader.name().toString();
599 m_coordSystemContext.loadVersion6 (reader,
600 m_documentAxesPointsRequired);
609 if (reader.hasError ()) {
611 m_successfulRead =
false;
612 m_reasonForUnsuccessfulRead = reader.errorString();
613 LOG4CPP_ERROR_S ((*
mainCat)) <<
"Document::loadVersion6 " << m_reasonForUnsuccessfulRead.toLatin1().data();
619void Document::loadVersions7AndUp (QFile *file)
623 const int ONE_COORDINATE_SYSTEM = 1;
625 QXmlStreamReader reader (file);
629 bool inDocumentSubtree =
false;
632 while (!reader.atEnd() &&
633 !reader.hasError()) {
638 (tokenType == QXmlStreamReader::StartElement)) {
640 generateEmptyPixmap (reader.attributes());
645 (tokenType == QXmlStreamReader::StartElement)) {
647 inDocumentSubtree =
true;
649 QXmlStreamAttributes attributes = reader.attributes();
657 (tokenType == QXmlStreamReader::EndElement)) {
663 if (inDocumentSubtree) {
666 if (tokenType == QXmlStreamReader::StartElement) {
669 QString tag = reader.name().toString();
671 m_coordSystemContext.addCoordSystems (ONE_COORDINATE_SYSTEM);
672 m_coordSystemContext.loadVersions7AndUp (reader);
677 m_modelLoadViews.loadXml (reader);
683 if (reader.hasError ()) {
685 m_successfulRead =
false;
686 m_reasonForUnsuccessfulRead = reader.errorString();\
687 LOG4CPP_ERROR_S ((*
mainCat)) <<
"Document::loadVersions7AndUp " << m_reasonForUnsuccessfulRead.toLatin1().data();
697 return m_coordSystemContext.modelAxesChecker();
704 return m_coordSystemContext.modelColorFilter();
711 return m_coordSystemContext.modelCoords();
718 return m_coordSystemContext.modelCurveStyles();
725 return m_coordSystemContext.modelDigitizeCurve();
732 return m_coordSystemContext.modelExport();
739 return m_coordSystemContext.modelGeneral();
746 return m_coordSystemContext.modelGridDisplay();
753 return m_coordSystemContext.modelGridRemoval();
760 return m_coordSystemContext.modelGuideline();
767 return m_modelLoadViews;
774 return m_coordSystemContext.modelPointMatch();
781 return m_coordSystemContext.modelSegments();
785 const QPointF &deltaScreen)
787 m_coordSystemContext.movePoint (pointIdentifier,
795 return m_coordSystemContext.nextOrdinalForCurve(curveName);
798void Document::overrideGraphDefaultsWithMapDefaults ()
800 const int DEFAULT_WIDTH = 1;
825 QStringList::const_iterator itr;
826 for (itr = curveNames.begin(); itr != curveNames.end(); itr++) {
827 QString curveName = *itr;
850 return m_coordSystemContext.positionGraph(pointIdentifier);
855 return m_coordSystemContext.positionScreen(pointIdentifier);
861 QTextStream str (&text);
865 std::cerr << text.toLatin1().data();
869 QTextStream &str)
const
871 str << indentation <<
"Document\n";
875 str << indentation <<
"name=" << m_name <<
"\n";
876 str << indentation <<
"pixmap=" << m_pixmap.width() <<
"x" << m_pixmap.height() <<
"\n";
878 m_coordSystemContext.printStream(indentation,
886 return m_reasonForUnsuccessfulRead;
893 m_coordSystemContext.removePointAxis(identifier);
900 m_coordSystemContext.removePointGraph(identifier);
907 m_coordSystemContext.removePointsInCurvesGraphs(
curvesGraphs);
923 QDataStream str (&array, QIODevice::WriteOnly);
924 QImage img = m_pixmap.toImage ();
933 writer.writeCDATA (array.toBase64 ());
934 writer.writeEndElement();
936 m_coordSystemContext.saveXml (writer);
937 m_modelLoadViews.saveXml (writer);
942 return m_coordSystemContext.selectedCurveName();
956 m_coordSystemContext.setCurveAxes (
curveAxes);
974 overrideGraphDefaultsWithMapDefaults ();
990 ColorFilterSettingsList::const_iterator itr;
995 QString curveName = itr.key();
1016 QStringList::iterator itr;
1017 for (itr = curveNames.begin(); itr != curveNames.end(); itr++) {
1019 QString curveName = *itr;
1038 m_coordSystemContext.setModelExport (
modelExport);
1094 m_pixmap = QPixmap::fromImage (image);
1104 return m_successfulRead;
1111 m_coordSystemContext.updatePointOrdinals(transformation);
1114int Document::versionFromFile (QFile *file)
const
1121 if (doc.setContent (file)) {
1124 if (nodes.count() > 0) {
1125 QDomNode node = nodes.at (0);
1127 QDomNamedNodeMap attributes = node.attributes();
1131 QDomElement elem = node.toElement();
const QString AXIS_CURVE_NAME
unsigned int CoordSystemIndex
Zero-based index for identifying CoordSystem instantiations.
@ CONNECT_AS_RELATION_STRAIGHT
DocumentAxesPointsRequired
@ DOCUMENT_AXES_POINTS_REQUIRED_3
@ DOCUMENT_AXES_POINTS_REQUIRED_2
const QString DOCUMENT_SERIALIZE_COORD_SYSTEM
const QString DOCUMENT_SERIALIZE_AXES_POINTS_REQUIRED
const QString DOCUMENT_SERIALIZE_IMAGE
const QString DOCUMENT_SERIALIZE_IMAGE_HEIGHT
const QString DOCUMENT_SERIALIZE_IMAGE_WIDTH
const QString DOCUMENT_SERIALIZE_DOCUMENT
const QString DOCUMENT_SERIALIZE_APPLICATION_VERSION_NUMBER
const QString DOCUMENT_SERIALIZE_LOAD_VIEWS
const int NOMINAL_COORD_SYSTEM_COUNT
#define ENGAUGE_ASSERT(cond)
Drop in replacement for Q_ASSERT.
log4cpp::Category * mainCat
const QString INDENTATION_DELTA
const char * VERSION_NUMBER
QXmlStreamReader::TokenType loadNextFromReader(QXmlStreamReader &reader)
Load next token from xml reader.
Callback for computing the bounding rectangles of the screen and graph coordinates of the points in t...
QPointF boundingRectGraphMin(bool &isEmpty) const
Graph coordinate bounding rectangle's (xmin,ymin) corner.
CallbackSearchReturn callback(const QString &curveName, const Point &point)
Callback method.
QPointF boundingRectGraphMax(bool &isEmpty) const
Graph coordinate bounding rectangle's (xmax,ymax) corner.
Color filter parameters for one curve. For a class, this is handled the same as LineStyle and PointSt...
virtual Curve * curveForCurveName(const QString &curveName)
See CurvesGraphs::curveForCurveName, although this also works for AXIS_CURVE_NAME.
Storage of data belonging to one coordinate system.
Container for LineStyle and PointStyle for one Curve.
LineStyle lineStyle() const
Get method for LineStyle.
void setPointStyle(const PointStyle &pointStyle)
Set method for PointStyle.
PointStyle pointStyle() const
Get method for PointStyle.
void setLineStyle(const LineStyle &lineStyle)
Set method for LineStyle.
Model for DlgSettingsCurveProperties and CmdSettingsCurveProperties.
CurveStyle curveStyle(const QString &curveName) const
CurveStyle in specified curve.
void setCurveStyle(const QString &curveName, const CurveStyle &curveStyle)
Set method for curve style.
Container for one set of digitized Points.
void setCurveStyle(const CurveStyle &curveStyle)
Set curve style.
void setColorFilterSettings(const ColorFilterSettings &colorFilterSettings)
Set color filter.
Container for all graph curves. The axes point curve is external to this class.
QStringList curvesGraphsNames() const
List of graph curve names.
Model for DlgSettingsAxesChecker and CmdSettingsAxesChecker.
Model for DlgSettingsColorFilter and CmdSettingsColorFilter.
Model for DlgSettingsCoords and CmdSettingsCoords.
Model for DlgSettingsDigitizeCurve and CmdSettingsDigitizeCurve.
Model for DlgSettingsGeneral and CmdSettingsGeneral.
Model for DlgSettingsGridDisplay and CmdSettingsGridDisplay.
Model for DlgSettingsGridRemoval and CmdSettingsGridRemoval.
Model for managing the coordinate values corresponding Guidelines.
Model for storing enabled/disabled states of views for optional restoration during loading.
Model for DlgSettingsPointMatch and CmdSettingsPointMatch.
Model for DlgSettingsSegments and CmdSettingsSegments.
QPointF positionScreen(const QString &pointIdentifier) const
See Curve::positionScreen.
unsigned int coordSystemCount() const
Number of CoordSystem.
void editPointAxis(const QPointF &posGraph, const QString &identifier)
Edit the graph coordinates of a single axis point. Call this after checkAddPointAxis to guarantee suc...
void iterateThroughCurveSegments(const QString &curveName, const Functor2wRet< const Point &, const Point &, CallbackSearchReturn > &ftorWithCallback) const
See Curve::iterateThroughCurveSegments, for any axes or graph curve.
void setModelGridRemoval(const DocumentModelGridRemoval &modelGridRemoval)
Set method for DocumentModelGridRemoval.
void setCoordSystemIndex(CoordSystemIndex coordSystemIndex)
Set the index of current active CoordSystem.
void iterateThroughCurvePointsAxes(const Functor2wRet< const QString &, const Point &, CallbackSearchReturn > &ftorWithCallback)
See Curve::iterateThroughCurvePoints, for the axes curve.
void printStream(QString indentation, QTextStream &str) const
Debugging method that supports print method of this class and printStream method of some other class(...
void updatePointOrdinals(const Transformation &transformation)
Update point ordinals after point addition/removal or dragging.
QPixmap pixmap() const
Return the image that is being digitized.
void setDocumentAxesPointsRequired(DocumentAxesPointsRequired documentAxesPointsRequired)
Set the number of axes points required.
DocumentModelGeneral modelGeneral() const
Get method for DocumentModelGeneral.
void addPointAxisWithGeneratedIdentifier(const QPointF &posScreen, const QPointF &posGraph, QString &identifier, double ordinal, bool isXOnly)
Add a single axis point with a generated point identifier.
QPointF positionGraph(const QString &pointIdentifier) const
See Curve::positionGraph.
const Curve & curveAxes() const
Get method for axis curve.
CoordSystemIndex coordSystemIndex() const
Index of current active CoordSystem.
QString selectedCurveName() const
Currently selected curve name. This is used to set the selected curve combobox in MainWindow.
void iterateThroughCurvesPointsGraphs(const Functor2wRet< const QString &, const Point &, CallbackSearchReturn > &ftorWithCallback)
See Curve::iterateThroughCurvePoints, for all the graphs curves.
void addPointGraphWithSpecifiedIdentifier(const QString &curveName, const QPointF &posScreen, const QString &identifier, double ordinal)
Add a single graph point with the specified point identifier. Note that PointStyle is not applied to ...
QStringList curvesGraphsNames() const
See CurvesGraphs::curvesGraphsNames.
bool isXOnly(const QString &pointIdentifier) const
See Curve::isXOnly.
void setModelPointMatch(const DocumentModelPointMatch &modelPointMatch)
Set method for DocumentModelPointMatch.
Document(const QImage &image)
Constructor for imported images and dragged images. Only one coordinate system is create - others are...
void removePointGraph(const QString &identifier)
Perform the opposite of addPointGraph.
DocumentModelGuideline modelGuideline() const
Get method for DocumentModelGuideline.
void setModelCurveStyles(const CurveStyles &modelCurveStyles)
Set method for CurveStyles.
void addPointAxisWithSpecifiedIdentifier(const QPointF &posScreen, const QPointF &posGraph, const QString &identifier, double ordinal, bool isXOnly)
Add a single axis point with the specified point identifier.
const CoordSystem & coordSystem() const
Currently active CoordSystem.
void initializeGridDisplay(const Transformation &transformation)
Initialize grid display. This is called immediately after the transformation has been defined for the...
void setModelGridDisplay(const DocumentModelGridDisplay &modelGridDisplay)
Set method for DocumentModelGridDisplay.
DocumentModelPointMatch modelPointMatch() const
Get method for DocumentModelPointMatch.
DocumentModelDigitizeCurve modelDigitizeCurve() const
Get method for DocumentModelDigitizeCurve.
int nextOrdinalForCurve(const QString &curveName) const
Default next ordinal value for specified curve.
void setModelGuideline(const DocumentModelGuideline &modelGuideline)
Set method for DocumentModelGuideline.
void removePointsInCurvesGraphs(CurvesGraphs &curvesGraphs)
Remove all points identified in the specified CurvesGraphs. See also addPointsInCurvesGraphs.
void print() const
Debugging method for printing directly from symbolic debugger.
bool successfulRead() const
Return true if startup loading succeeded. If the loading failed then reasonForUnsuccessfulRed will ex...
void addCoordSystems(unsigned int numberCoordSystemToAdd)
Add some number (0 or more) of additional coordinate systems.
void addGraphCurveAtEnd(const QString &curveName)
Add new graph curve to the list of existing graph curves.
void setModelColorFilter(const DocumentModelColorFilter &modelColorFilter)
Set method for DocumentModelColorFilter.
void setModelDigitizeCurve(const DocumentModelDigitizeCurve &modelDigitizeCurve)
Set method for DocumentModelDigitizeCurve.
QString reasonForUnsuccessfulRead() const
Return an informative text message explaining why startup loading failed. Applies if successfulRead r...
void saveXml(QXmlStreamWriter &writer) const
Save document to xml.
void addScaleWithGeneratedIdentifier(const QPointF &posScreen0, const QPointF &posScreen1, double scaleLength, QString &identifier0, QString &identifier1, double ordinal0, double ordinal1)
Add scale with a generated point identifier.
DocumentModelAxesChecker modelAxesChecker() const
Get method for DocumentModelAxesChecker.
void editPointGraph(bool isX, bool isY, double x, double y, const QStringList &identifiers, const Transformation &transformation)
Edit the graph coordinates of one or more graph points.
DocumentModelCoords modelCoords() const
Get method for DocumentModelCoords.
DocumentModelColorFilter modelColorFilter() const
Get method for DocumentModelColorFilter.
void checkEditPointAxis(const QString &pointIdentifier, const QPointF &posScreen, const QPointF &posGraph, bool &isError, QString &errorMessage)
Check before calling editPointAxis.
void setCurvesGraphs(const CurvesGraphs &curvesGraphs)
Let CmdAbstract classes overwrite CurvesGraphs.
CurveStyles modelCurveStyles() const
Get method for CurveStyles.
void setModelCoords(const DocumentModelCoords &modelCoords)
Set method for DocumentModelCoords.
DocumentModelLoadViews modelLoadViews() const
Get method for DocumentModelLoadViews.
void setModelAxesChecker(const DocumentModelAxesChecker &modelAxesChecker)
Set method for DocumentModelAxesChecker.
DocumentAxesPointsRequired documentAxesPointsRequired() const
Get method for DocumentAxesPointsRequired.
void setModelSegments(const DocumentModelSegments &modelSegments)
Set method for DocumentModelSegments.
void setCurveAxes(const Curve &curveAxes)
Let CmdAbstract classes overwrite axes Curve.
const CurvesGraphs & curvesGraphs() const
Make all Curves available, read only, for CmdAbstract classes only.
int curvesGraphsNumPoints(const QString &curveName) const
See CurvesGraphs::curvesGraphsNumPoints.
void setModelGeneral(const DocumentModelGeneral &modelGeneral)
Set method for DocumentModelGeneral.
void setModelExport(const DocumentModelExportFormat &modelExport)
Set method for DocumentModelExportFormat.
DocumentModelGridRemoval modelGridRemoval() const
Get method for DocumentModelGridRemoval.
DocumentModelGridDisplay modelGridDisplay() const
Get method for DocumentModelGridDisplay.
DocumentModelExportFormat modelExport() const
Get method for DocumentModelExportFormat.
void setSelectedCurveName(const QString &selectedCurveName)
Save curve name that is selected for the current coordinate system, for the next time the coordinate ...
void setModelLoadViews(const DocumentModelLoadViews &modelLoadViews)
Set method for DocumentModelLoadViews.
void movePoint(const QString &pointIdentifier, const QPointF &deltaScreen)
See Curve::movePoint.
const Curve * curveForCurveName(const QString &curveName) const
See CurvesGraphs::curveForCurveNames, although this also works for AXIS_CURVE_NAME.
DocumentModelSegments modelSegments() const
Get method for DocumentModelSegments.
void setPixmap(const QImage &image)
Set method for the background pixmap.
void checkAddPointAxis(const QPointF &posScreen, const QPointF &posGraph, bool &isError, QString &errorMessage, bool isXOnly)
Check before calling addPointAxis. Also returns the next available ordinal number (to prevent clashes...
void removePointAxis(const QString &identifier)
Perform the opposite of addPointAxis.
void addPointGraphWithGeneratedIdentifier(const QString &curveName, const QPointF &posScreen, QString &generatedIentifier, double ordinal)
Add a single graph point with a generated point identifier.
void addPointsInCurvesGraphs(CurvesGraphs &curvesGraphs)
Add all points identified in the specified CurvesGraphs. See also removePointsInCurvesGraphs.
This class initializes the count, start, step and stop parameters for one coordinate (either x/theta ...
DocumentModelGridDisplay initializeWithWidePolarCoverage(const QPointF &boundingRectGraphMin, const QPointF &boundingRectGraphMax, const DocumentModelCoords &modelCoords, const Transformation &transformation, const QSize &imageSize) const
Initialize given the boundaries of the graph coordinates, and then extra processing for polar coordin...
Details for a specific Line.
void setCurveConnectAs(CurveConnectAs curveConnectAs)
Set connect as.
void setWidth(int width)
Set width of line.
void setPaletteColor(ColorPalette paletteColor)
Set method for line color.
Details for a specific Point.
void setPaletteColor(ColorPalette paletteColor)
Set method for point color.
void setShape(PointShape shape)
Set method for point shape.
#define LOG4CPP_INFO_S(logger)
#define LOG4CPP_DEBUG_S(logger)
#define LOG4CPP_ERROR_S(logger)