salomeinclude_HEADERS = \
SPlot2d.h \
SPlot2d_Curve.h \
+ SPlot2d_Histogram.h \
SPlot2d_Prs.h \
SPlot2d_ViewModel.h \
SPlot2d_ViewWindow.h
dist_libSPlot2d_la_SOURCES = \
SPlot2d_Curve.cxx \
+ SPlot2d_Histogram.cxx \
SPlot2d_Prs.cxx \
SPlot2d_ViewModel.cxx \
SPlot2d_ViewWindow.cxx
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-
// File : SPlot2d_Curve.cxx
-// Author : Sergey RUIN
-// Module : SUIT
-//
-#include "SPlot2d_Curve.h"
-#include <QString>
-#include <QColor>
+// Author : Sergey RUIN, Open CASCADE S.A.S. (sergey.ruin@opencascade.com)
-using namespace std;
+#include "SPlot2d_Curve.h"
/*!
Constructor
Copy constructor. Makes deep copy of data.
*/
SPlot2d_Curve::SPlot2d_Curve( const SPlot2d_Curve& curve )
+: Plot2d_Curve( curve )
{
- myAutoAssign = curve.isAutoAssign();
- myHorTitle = curve.getHorTitle();
- myVerTitle = curve.getVerTitle();
- myHorUnits = curve.getHorUnits();
- myVerUnits = curve.getVerUnits();
- myColor = curve.getColor();
- myMarker = curve.getMarker();
- myLine = curve.getLine();
- myLineWidth = curve.getLineWidth();
- myPoints = curve.getPointList();
- myIO = curve.getIO();
- myTableIO = curve.getTableIO();
+ myIO = curve.getIO();
+ myTableIO = curve.getTableIO();
}
/*!
*/
SPlot2d_Curve& SPlot2d_Curve::operator=( const SPlot2d_Curve& curve )
{
- myAutoAssign = curve.isAutoAssign();
- myHorTitle = curve.getHorTitle();
- myVerTitle = curve.getVerTitle();
- myHorUnits = curve.getHorUnits();
- myVerUnits = curve.getVerUnits();
- myColor = curve.getColor();
- myMarker = curve.getMarker();
- myLine = curve.getLine();
- myLineWidth = curve.getLineWidth();
- myPoints = curve.getPointList();
+ Plot2d_Curve::operator=(curve);
myIO = curve.getIO();
myTableIO = curve.getTableIO();
return *this;
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-
// File : SPlot2d_Curve.h
-// Author : Sergey RUIN
-// Module : SUIT
-//
+// Author : Sergey RUIN, Open CASCADE S.A.S. (sergey.ruin@opencascade.com)
+
#ifndef SPlot2d_Curve_h
#define SPlot2d_Curve_h
#include "SPlot2d.h"
-
#include "Plot2d_Curve.h"
#ifndef _Handle_SALOME_InteractiveObject_HeaderFile
#endif
#include "SALOME_InteractiveObject.hxx"
-class QString;
-class QColor;
-
class SPLOT2D_EXPORT SPlot2d_Curve : public Plot2d_Curve
{
public:
};
#endif // SPlot2d_Curve_h
-
-
--- /dev/null
+// Copyright (C) 2007-2010 CEA/DEN, EDF R&D, OPEN CASCADE
+//
+// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
+// File : SPlot2d_Histogram.cxx
+// Author : Vadim SANDLER, Open CASCADE S.A.S. (vadim.sandler@opencascade.com)
+
+#include "SPlot2d_Histogram.h"
+
+/*!
+ Constructor
+*/
+SPlot2d_Histogram::SPlot2d_Histogram()
+:Plot2d_Histogram()
+{
+}
+
+/*!
+ Destructor
+*/
+SPlot2d_Histogram::~SPlot2d_Histogram()
+{
+}
+
+/*!
+ Copy constructor. Makes deep copy of data.
+*/
+SPlot2d_Histogram::SPlot2d_Histogram( const SPlot2d_Histogram& hist )
+: Plot2d_Histogram( hist )
+{
+ myIO = hist.getIO();
+}
+
+/*!
+ operator=. Makes deep copy of data.
+*/
+SPlot2d_Histogram& SPlot2d_Histogram::operator=( const SPlot2d_Histogram& hist )
+{
+ Plot2d_Histogram::operator=(hist);
+ myIO = hist.getIO();
+ return *this;
+}
+
+/*!
+ \return corresponding SALOME_InteractiveObject
+*/
+Handle(SALOME_InteractiveObject) SPlot2d_Histogram::getIO() const
+{
+ return myIO;
+}
+
+/*!
+ Sets corresponding SALOME_InteractiveObject
+ \param io - SALOME_InteractiveObject
+*/
+void SPlot2d_Histogram::setIO( const Handle(SALOME_InteractiveObject)& io )
+{
+ myIO = io;
+}
+
+/*!
+ \return SALOME_InteractiveObject
+*/
+bool SPlot2d_Histogram::hasIO() const
+{
+ return !myIO.IsNull();
+}
--- /dev/null
+// Copyright (C) 2007-2010 CEA/DEN, EDF R&D, OPEN CASCADE
+//
+// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
+// File : SPlot2d_Histogram.h
+// Author : Vadim SANDLER, Open CASCADE S.A.S. (vadim.sandler@opencascade.com)
+
+#ifndef SPlot2d_Histogram_h
+#define SPlot2d_Histogram_h
+
+#include "SPlot2d.h"
+
+#include "Plot2d_Histogram.h"
+
+#ifndef _Handle_SALOME_InteractiveObject_HeaderFile
+#include <Handle_SALOME_InteractiveObject.hxx>
+#endif
+#include "SALOME_InteractiveObject.hxx"
+
+class SPLOT2D_EXPORT SPlot2d_Histogram : public Plot2d_Histogram
+{
+public:
+
+ SPlot2d_Histogram();
+ virtual ~SPlot2d_Histogram();
+ SPlot2d_Histogram( const SPlot2d_Histogram& hist );
+ SPlot2d_Histogram& operator= ( const SPlot2d_Histogram& hist );
+
+ virtual bool hasIO() const;
+ virtual Handle(SALOME_InteractiveObject) getIO() const;
+ virtual void setIO( const Handle(SALOME_InteractiveObject)& );
+
+private:
+ Handle(SALOME_InteractiveObject) myIO;
+};
+
+#endif // SPlot2d_Histogram_h
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-
// File : SPlot2d_Prs.cxx
-// Author : Sergey RUIN
-// Module : SUIT
-//
+// Author : Sergey RUIN, Open CASCADE S.A.S. (sergey.ruin@opencascade.com)
+
#include "SPlot2d_Prs.h"
-#ifndef WIN32
-using namespace std;
-#endif
/*!
Default constructor
/*!
Standard constructor
*/
-SPlot2d_Prs::SPlot2d_Prs( const Plot2d_Curve* obj )
+SPlot2d_Prs::SPlot2d_Prs( const Plot2d_Object* obj )
:Plot2d_Prs(obj)
{
}
SPlot2d_Prs::SPlot2d_Prs( const Plot2d_Prs* prs )
{
mySecondY = prs->isSecondY();
- myCurves = prs->getCurves();
+ myObjects = prs->getObjects();
+ myIsAutoDel = false; // VSR: error? should auto-delete flag be removed
}
/*!
}
+/*!
+ Check if the presentation is empty
+*/
+bool SPlot2d_Prs::IsNull() const
+{
+ return Plot2d_Prs::IsNull();
+}
+
+/*!
+ Get contained objects
+*/
+objectList SPlot2d_Prs::GetObjects() const
+{
+ return getObjects();
+}
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-
// File : SPlot2d_Prs.h
-// Author : Sergey RUIN
-// Module : SUIT
-//
+// Author : Sergey RUIN, Open CASCADE S.A.S. (sergey.ruin@opencascade.com)
+
#ifndef SPLOT2D_PRS_H
#define SPLOT2D_PRS_H
class SPLOT2D_EXPORT SPlot2d_Prs : public SALOME_Prs2d, public Plot2d_Prs
{
public:
-
// Default constructor
SPlot2d_Prs();
// Standard constructor
- SPlot2d_Prs( const Plot2d_Curve* obj );
+ SPlot2d_Prs( const Plot2d_Object* obj );
SPlot2d_Prs( const Plot2d_Prs* prs );
// Destructor
~SPlot2d_Prs();
- virtual bool IsNull() const { return Plot2d_Prs::IsNull(); }
+ virtual bool IsNull() const;
// Get curves list
- // Note: Depricated method, use method getCurves
- curveList GetObjects() const { return getCurves(); }
-
+ // Note: Deprecated method, use method getCurves
+ objectList GetObjects() const;
};
#endif