23 #ifndef _CurveCreator_Curve_HeaderFile
24 #define _CurveCreator_Curve_HeaderFile
66 virtual std::string getUniqSectionName()
const;
75 virtual void removeDisplayer();
80 virtual void setUndoDepth(
const int theDepth = -1);
83 virtual int getUndoDepth()
const;
85 virtual void startOperation();
86 virtual void finishOperation();
92 virtual int toICoord(
const int theIPnt)
const;
95 virtual bool moveSectionInternal(
const int theISection,
96 const int theNewIndex);
98 virtual bool moveSection(
const int theISection,
99 const int theNewIndex);
106 virtual bool addEmptyDiff();
109 void getCoordinates(
int theISection,
int theIPoint,
double& theX,
double& theY,
double& theZ )
const;
111 void redisplayCurve();
138 virtual bool clearInternal();
140 virtual bool clear();
143 virtual bool joinInternal(
const std::list<int>& theSections );
147 virtual bool join(
const std::list<int>& theSections );
153 virtual int addSectionInternal(
const std::string &theName,
155 const bool theIsClosed,
158 virtual int addSection(
const std::string &theName,
160 const bool theIsClosed );
162 virtual int addSection(
const std::string &theName,
164 const bool theIsClosed,
168 virtual bool removeSectionInternal(
const int theISection );
173 virtual bool isClosed(
const int theISection )
const;
176 virtual bool setClosedInternal(
const int theISection,
177 const bool theIsClosed );
182 virtual bool setClosed(
const int theISection,
183 const bool theIsClosed );
186 virtual std::string
getSectionName(
const int theISection )
const;
189 virtual bool setSectionNameInternal(
const int theISection,
190 const std::string& theName );
193 const std::string& theName );
199 virtual bool setSectionTypeInternal(
const int theISection,
211 if (theSectionIndex >= 0 && theSectionIndex < mySections.size())
235 const int theISection,
236 const int theIPnt = -1 );
241 virtual bool setPoint(
const int theISection,
246 virtual bool setSeveralPoints(
const SectionToPointCoordsList &theSectionToPntCoords,
247 const bool theIsToSaveDiff =
true );
250 virtual bool removePointsInternal(
const SectionToPointList &thePoints );
252 virtual bool removePoint(
const int theISection,
const int theIPnt = -1 );
259 const int theIPnt )
const;
271 virtual int getNbPoints(
const int theISection )
const;
287 virtual void saveCoordDiff(
const SectionToPointCoordsList &theOldCoords );
304 bool removeSectionPoints( const
int theSectionId,
305 const std::list<
int>& thePointIds );
311 void convert( const SectionToPointList &thePoints,
312 std::map<
int, std::list<
int> > &theConvPoints );
315 virtual
void constructAISObject();