Salome HOME
projects
/
modules
/
hydro.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refs #550: fix crash when myObject is NULL
[modules/hydro.git]
/
src
/
HYDROGUI
/
HYDROGUI_ProfileInterpolateOp.h
diff --git
a/src/HYDROGUI/HYDROGUI_ProfileInterpolateOp.h
b/src/HYDROGUI/HYDROGUI_ProfileInterpolateOp.h
index 241c0683b4c48eef6888cc43f67ada57f839ea88..bd05e2c0c638303fccda2a0b56be01d9034e39d7 100644
(file)
--- a/
src/HYDROGUI/HYDROGUI_ProfileInterpolateOp.h
+++ b/
src/HYDROGUI/HYDROGUI_ProfileInterpolateOp.h
@@
-1,8
+1,4
@@
-// Copyright (C) 2007-2015 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
-//
+// Copyright (C) 2014-2015 EDF-R&D
// 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
// 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
@@
-29,6
+25,11
@@
#include <AIS_Shape.hxx>
#include <AIS_Shape.hxx>
+#include <QPair>
+#include <QList>
+
+class HYDROData_IProfilesInterpolator;
+
class HYDROGUI_ProfileInterpolateOp : public HYDROGUI_Operation
{
Q_OBJECT
class HYDROGUI_ProfileInterpolateOp : public HYDROGUI_Operation
{
Q_OBJECT
@@
-37,6
+38,9
@@
public:
HYDROGUI_ProfileInterpolateOp( HYDROGUI_Module* theModule );
virtual ~HYDROGUI_ProfileInterpolateOp();
HYDROGUI_ProfileInterpolateOp( HYDROGUI_Module* theModule );
virtual ~HYDROGUI_ProfileInterpolateOp();
+protected:
+ typedef QList< QPair<QString, QString> > ParamsList;
+
protected:
virtual void startOperation();
virtual void abortOperation();
protected:
virtual void startOperation();
virtual void abortOperation();
@@
-48,6
+52,13
@@
protected:
QStringList& theBrowseObjectsEntries );
QStringList interpolators() const;
QStringList& theBrowseObjectsEntries );
QStringList interpolators() const;
+ HYDROData_IProfilesInterpolator* interpolator( const QString& ) const;
+ void updateInterpolator( HYDROData_IProfilesInterpolator* );
+ HYDROData_Profile::ProfilePoints profile( const QString& ) const;
+ ParamsList parameters( const QString& ) const;
+ QString parameters( const ParamsList& ) const;
+
+ TopoDS_Shape previewShape( HYDROData_IProfilesInterpolator* ) const;
private slots:
void updatePreview();
private slots:
void updatePreview();