ProcessVoidEvent( new TEvent(id) );
}
+/*!
+ \fn QString SalomePyQt::getPlot2dTitle( const int id, ObjectType type = MainTitle )
+ \brief Get title of corresponding type
+ \param id window identifier
+ \param type is type of title
+ \return title of corresponding type
+*/
+
+class TGetPlot2dTitle: public SALOME_Event
+{
+public:
+ typedef QString TResult;
+ TResult myResult;
+ int myWndId;
+ ObjectType myType;
+ TGetPlot2dTitle(const int id, ObjectType type) :
+ myWndId(id),
+ myType(type) {}
+ virtual void Execute() {
+ Plot2d_ViewWindow* wnd = dynamic_cast<Plot2d_ViewWindow*>(getWnd( myWndId ));
+ if ( wnd )
+ {
+ myResult = wnd->getViewFrame()->getTitle((Plot2d_ViewFrame::ObjectType)myType);
+ }
+ }
+};
+QString SalomePyQt::getPlot2dTitle(const int id, ObjectType type)
+{
+ return ProcessEvent( new TGetPlot2dTitle(id, type) );
+}
+
+
/*!
\fn void SalomePyQt::setPlot2dTitle( const int id, const QString& title, ObjectType type = MainTitle, bool show = true )
\brief Set title of corresponding type
static void eraseCurve(const int, Plot2d_Curve*);
static void eraseCurve(Plot2d_Curve*);
static void updateCurves( const int );
+ static QString getPlot2dTitle(const int, ObjectType = MainTitle);
static void setPlot2dTitle(const int, const QString&, ObjectType = MainTitle, bool = true);
static QList<double> getPlot2dFitRangeByCurves(const int);
static QList<double> getPlot2dFitRangeCurrent(const int);
static void eraseCurve(const int, Plot2d_Curve*) /ReleaseGIL/ ;
static void eraseCurve(Plot2d_Curve*) /ReleaseGIL/ ;
static void updateCurves( const int ) /ReleaseGIL/ ;
+ static QString getPlot2dTitle(const int, ObjectType = MainTitle) /ReleaseGIL/ ;
static void setPlot2dTitle(const int, const QString&, ObjectType = MainTitle, bool = true) /ReleaseGIL/ ;
static QList<double> getPlot2dFitRangeByCurves(const int) /ReleaseGIL/ ;
static QList<double> getPlot2dFitRangeCurrent(const int) /ReleaseGIL/ ;