28 #ifndef ABSTRACTDOBJFIGURE_H 29 #define ABSTRACTDOBJFIGURE_H 31 #include "AbstractFigure.h" 32 #include "../DataObject/dataobj.h" 33 #include "../common/sharedStructuresQt.h" 34 #include "../common/addInInterface.h" 35 #include "../common/interval.h" 36 #include "../common/qtMetaTypeDeclarations.h" 42 #if !defined(Q_MOC_RUN) || defined(ITOMCOMMONPLOT_MOC) //only moc this file in itomCommonQtLib but not in other libraries or executables linking against this itomCommonQtLib 49 Q_PROPERTY(QSharedPointer<ito::DataObject> source READ getSource WRITE setSource DESIGNABLE
false USER
false)
50 Q_PROPERTY(QSharedPointer<ito::DataObject> displayed READ getDisplayed DESIGNABLE
false USER
false)
51 Q_PROPERTY(QPointer<ito::AddInDataIO> camera READ getCamera WRITE setCamera DESIGNABLE
false USER
false)
53 Q_PROPERTY(
ito::AutoInterval xAxisInterval READ getXAxisInterval WRITE setXAxisInterval DESIGNABLE
true USER
true)
54 Q_PROPERTY(
ito::AutoInterval yAxisInterval READ getYAxisInterval WRITE setYAxisInterval DESIGNABLE
true USER
true)
55 Q_PROPERTY(
ito::AutoInterval zAxisInterval READ getZAxisInterval WRITE setZAxisInterval DESIGNABLE
true USER
true)
56 Q_PROPERTY(QString colorMap READ getColorMap WRITE setColorMap DESIGNABLE
true USER
true)
58 Q_CLASSINFO(
"prop://source",
"Sets the input data object for this plot.")
59 Q_CLASSINFO(
"prop://displayed",
"This returns the currently displayed data object [read only].")
60 Q_CLASSINFO(
"prop://camera",
"Use this property to set a camera/grabber to this plot (live image).")
61 Q_CLASSINFO(
"prop://xAxisInterval",
"Sets the visible range of the displayed x-axis (in coordinates of the data object). Set it to 'auto' if range should be automatically set [default].")
62 Q_CLASSINFO(
"prop://yAxisInterval",
"Sets the visible range of the displayed y-axis (in coordinates of the data object). Set it to 'auto' if range should be automatically set [default].")
63 Q_CLASSINFO(
"prop://zAxisInterval",
"Sets the visible range of the displayed z-axis (in coordinates of the data object). Set it to 'auto' if range should be automatically set [default].")
64 Q_CLASSINFO(
"prop://colorMap",
"Color map (string) that should be used to colorize a non-color data object.")
66 Q_CLASSINFO(
"slot://setSource",
"This slot can be implemented by any plot plugin to send a dataObject to the plot. Here it is not required and therefore not implemented.")
67 Q_CLASSINFO(
"slot://setLinePlot",
"This slot can be implemented by any plot plugin to force the plot to open a line plot. Here it is not required and therefore not implemented.")
70 AbstractDObjFigure(
const QString &itomSettingsFile, AbstractFigure::WindowMode windowMode = AbstractFigure::ModeStandaloneInUi, QWidget *parent = 0);
76 virtual QSharedPointer<ito::DataObject> getSource(
void)
const;
77 virtual void setSource(QSharedPointer<ito::DataObject> source);
79 virtual QSharedPointer<ito::DataObject> getDisplayed(
void);
81 virtual QPointer<ito::AddInDataIO> getCamera(
void)
const;
82 virtual void setCamera( QPointer<ito::AddInDataIO> camera );
93 virtual QString getColorMap(
void)
const;
94 virtual void setColorMap(QString);
97 virtual QPixmap renderToPixMap(
const int xsize,
const int ysize,
const int resolution);
100 QHash<QString, QSharedPointer<ito::DataObject> > m_dataPointer;
101 bool m_cameraConnected;
103 RetVal removeLiveSource();
109 virtual ITOM_PYNOTACCESSIBLE
void setSource(QSharedPointer<ito::DataObject> source,
ItomSharedSemaphore *waitCond);
112 virtual ito::RetVal setLinePlot(
const double x0,
const double y0,
const double x1,
const double y1,
const int destID = -1);
117 #endif //#if !defined(Q_MOC_RUN) || defined(ITOMCOMMONQT_MOC) 119 #endif //ABSTRACTDOBJFIGURE_H
Class for managing status values (like errors or warning)
Definition: retVal.h:54
Definition: apiFunctionsGraph.cpp:39
semaphore which can be used for asychronous thread communication. By using this class it is possible ...
Definition: sharedStructuresQt.h:57
class for a interval type containing a min-max-range and an auto-flag.
Definition: interval.h:49