00001 // Copyright (C) 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE 00002 // 00003 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, 00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 00005 // 00006 // This library is free software; you can redistribute it and/or 00007 // modify it under the terms of the GNU Lesser General Public 00008 // License as published by the Free Software Foundation; either 00009 // version 2.1 of the License. 00010 // 00011 // This library is distributed in the hope that it will be useful, 00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 // Lesser General Public License for more details. 00015 // 00016 // You should have received a copy of the GNU Lesser General Public 00017 // License along with this library; if not, write to the Free Software 00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 // 00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com 00021 // 00022 // File : SPlot2d_Curve.h 00023 // Author : Sergey RUIN, Open CASCADE S.A.S. (sergey.ruin@opencascade.com) 00024 00025 #ifndef SPlot2d_Curve_h 00026 #define SPlot2d_Curve_h 00027 00028 #include "SPlot2d.h" 00029 #include "Plot2d_Curve.h" 00030 00031 00032 #include <QSet> 00033 00034 #ifndef _Handle_SALOME_InteractiveObject_HeaderFile 00035 #include <Handle_SALOME_InteractiveObject.hxx> 00036 #endif 00037 #include "SALOME_InteractiveObject.hxx" 00038 00039 typedef QSet<QString> OwnerSet; 00040 00041 class SPLOT2D_EXPORT SPlot2d_Curve : public Plot2d_Curve 00042 { 00043 public: 00044 00045 SPlot2d_Curve(); 00046 virtual ~SPlot2d_Curve(); 00047 SPlot2d_Curve( const SPlot2d_Curve& curve ); 00048 SPlot2d_Curve& operator= ( const SPlot2d_Curve& curve ); 00049 00050 virtual QString getTableTitle() const; 00051 00052 virtual bool hasIO() const; 00053 virtual Handle(SALOME_InteractiveObject) getIO() const; 00054 virtual void setIO( const Handle(SALOME_InteractiveObject)& ); 00055 00056 virtual bool hasTableIO() const; 00057 virtual Handle(SALOME_InteractiveObject) getTableIO() const; 00058 virtual void setTableIO( const Handle(SALOME_InteractiveObject)& ); 00059 00060 virtual void addOwner(const QString& owner); 00061 virtual void removeOwner(const QString& owner); 00062 virtual OwnerSet getOwners() const; 00063 virtual void addOwners (OwnerSet& owners); 00064 00065 private: 00066 Handle(SALOME_InteractiveObject) myIO; 00067 Handle(SALOME_InteractiveObject) myTableIO; 00068 OwnerSet myOwners; 00069 }; 00070 00071 #endif // SPlot2d_Curve_h