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
Bug #183: regression: polyline - unnecessary table in Additition mode.
[modules/hydro.git]
/
src
/
HYDROCurveCreator
/
CurveCreator_ICurve.hxx
diff --git
a/src/HYDROCurveCreator/CurveCreator_ICurve.hxx
b/src/HYDROCurveCreator/CurveCreator_ICurve.hxx
index 5f269c864cbc1cb28e63e7d3e636a598adc8add5..40696e9bebe51e741207ff1852a71f72a42c7830 100644
(file)
--- a/
src/HYDROCurveCreator/CurveCreator_ICurve.hxx
+++ b/
src/HYDROCurveCreator/CurveCreator_ICurve.hxx
@@
-25,8
+25,11
@@
#include "CurveCreator_Macro.hxx"
#include <deque>
#include "CurveCreator_Macro.hxx"
#include <deque>
+#include <vector>
#include <string>
#include <string>
+class Handle_AIS_InteractiveObject;
+
namespace CurveCreator
{
//! Type of the section
namespace CurveCreator
{
//! Type of the section
@@
-54,6
+57,12
@@
namespace CurveCreator
*/
class CURVECREATOR_EXPORT CurveCreator_ICurve
{
*/
class CURVECREATOR_EXPORT CurveCreator_ICurve
{
+public:
+ typedef std::pair<int,int> SectionToPoint;
+ typedef std::deque<SectionToPoint> SectionToPointList;
+
+ typedef std::deque< std::pair< SectionToPoint,std::deque< float > > > SectionToPointCoordsList;
+
public:
/***********************************************/
/*** Undo/Redo methods ***/
public:
/***********************************************/
/*** Undo/Redo methods ***/
@@
-141,9
+150,14
@@
public:
virtual bool setPoint( const int theISection,
const int theIPnt,
const std::deque<float>& theNewCoords ) = 0;
virtual bool setPoint( const int theISection,
const int theIPnt,
const std::deque<float>& theNewCoords ) = 0;
+
+ //! Set coordinates of specified points from different sections
+ virtual bool setSeveralPoints( const SectionToPointCoordsList &theSectionToPntCoords) = 0;
//! Remove point with given id
virtual bool removePoint( const int theISection, const int theIPnt = -1 ) = 0;
//! Remove point with given id
virtual bool removePoint( const int theISection, const int theIPnt = -1 ) = 0;
+ //! Remove several points from different sections
+ virtual bool removeSeveralPoints( const SectionToPointList &theSectionToPntIDs) = 0;
//! Get coordinates of specified point
virtual std::deque<float> getPoint( const int theISection,
//! Get coordinates of specified point
virtual std::deque<float> getPoint( const int theISection,
@@
-164,7
+178,12
@@
public:
/***********************************************/
/*** Presentation methods ***/
/***********************************************/
/***********************************************/
/*** Presentation methods ***/
/***********************************************/
-// virtual TopoDS_Wire constructWire() const = 0;
+
+ virtual Handle_AIS_InteractiveObject getAISObject( const bool theNeedToBuild = false ) const = 0;
+
+protected:
+ virtual void constructAISObject() = 0;
+
};
#endif
};
#endif