points at once.
return res;
}
+//! Set coordinates of specified points from different sections
+bool CurveCreator_Curve::setSeveralPoints( const SectionToPointCoordsList &theSectionToPntCoords)
+{
+ return false;
+}
+
//! For internal use only! Undo/Redo are not used here.
bool CurveCreator_Curve::removePointsInternal( const std::vector<int> &theISections,
const std::vector<int> &theIPnts )
return res;
}
-//=======================================================================
+//! Remove several points from different sections with given ids
+bool CurveCreator_Curve::removeSeveralPoints( const SectionToPointList &theSectionToPntIDs)
+{
+ return false;
+}
+
+ //=======================================================================
// function: getCoordinates
// purpose:
//=======================================================================
const int theIPnt,
const CurveCreator::Coordinates& theNewCoords );
+ //! Set coordinates of specified points from different sections
+ virtual bool setSeveralPoints( const SectionToPointCoordsList &theSectionToPntCoords);
+
//! For internal use only! Undo/Redo are not used here.
virtual bool removePointsInternal( const std::vector<int> &theISections,
const std::vector<int> &theIPnts );
/** Remove point with given id */
virtual bool removePoint( const int theISection, const int theIPnt = -1 );
+ //! Remove several points from different sections with given ids
+ virtual bool removeSeveralPoints( const SectionToPointList &theSectionToPntIDs);
+
//! Get coordinates of specified point
virtual CurveCreator::Coordinates getPoint( const int theISection,
const int theIPnt ) const;
public:
typedef std::vector<Handle_AIS_InteractiveObject> ListAISObjects;
+ 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 ***/
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 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,
return true;
}
+//! Set coordinates of specified points from different sections
+bool HYDROData_PolylineXY::setSeveralPoints( const SectionToPointCoordsList &theSectionToPntCoords)
+{
+ return false;
+}
+
bool HYDROData_PolylineXY::removePoint( const int theISection,
const int theIPnt )
{
return true;
}
+//! Remove several points from different sections with given ids
+bool HYDROData_PolylineXY::removeSeveralPoints( const SectionToPointList &theSectionToPntIDs)
+{
+ return false;
+}
+
CurveCreator::Coordinates HYDROData_PolylineXY::getPoints( const int theISection ) const
{
CurveCreator::Coordinates aResList;
const int theIPnt,
const CurveCreator::Coordinates& theCoords );
+ //! Set coordinates of specified points from different sections
+ HYDRODATA_EXPORT virtual bool setSeveralPoints( const SectionToPointCoordsList &theSectionToPntCoords);
+
//! Remove point with given id
HYDRODATA_EXPORT virtual bool removePoint( const int theISection, const int theIPnt = -1 );
+ //! Remove several points from different sections with given ids
+ HYDRODATA_EXPORT virtual bool removeSeveralPoints( const SectionToPointList &theSectionToPntIDs);
+
/**
* Get points of a section (the total points in Curve if theISection is equal to -1)..
*/
return true;
}
+//! Remove several points from different sections with given ids
+bool HYDROData_ProfileUZ::removeSeveralPoints( const SectionToPointList &theSectionToPntIDs)
+{
+ return false;
+}
+
bool HYDROData_ProfileUZ::setPoint( const int /*theISection*/,
const int theIPoint,
const CurveCreator::Coordinates& theNewCoords )
return aRes;
}
+//! Set coordinates of specified points from different sections
+bool HYDROData_ProfileUZ::setSeveralPoints( const SectionToPointCoordsList &theSectionToPntCoords)
+{
+ return false;
+}
+
CurveCreator::Coordinates HYDROData_ProfileUZ::getPoints( const int /*theISection*/ ) const
{
CurveCreator::Coordinates aResList;
const int theIPnt,
const CurveCreator::Coordinates& theCoords );
+ //! Set coordinates of specified points from different sections
+ HYDRODATA_EXPORT virtual bool setSeveralPoints( const SectionToPointCoordsList &theSectionToPntCoords);
+
//! Remove point with given id
HYDRODATA_EXPORT virtual bool removePoint( const int theISection, const int theIPnt = -1 );
+ //! Remove several points from different sections with given ids
+ HYDRODATA_EXPORT virtual bool removeSeveralPoints( const SectionToPointList &theSectionToPntIDs);
+
/**
* Get points of a section (the total points in Curve if theISection is equal to -1)..
*/