23#ifndef _CurveCreator_Diff_HeaderFile
24#define _CurveCreator_Diff_HeaderFile
72 const int theIntParam);
85 const int theIntParam1,
86 const int theIntParam2);
97 const std::list<int>& theParams);
109 const std::string& theName,
111 const int theIntParam1,
112 const int theIntParam2);
124 const std::string &theName,
125 const int theIntParam1 );
171 const int theIntParam1,
172 const int theIntParam2[3]);
202 const int theIndex)
const;
221 const int theIntParam1,
222 const int theIntParam2);
The CurveCreator_Curve object is represented as one or more sets of connected points; thus CurveCreat...
Definition: CurveCreator_Curve.hxx:51
This is the support class for store/retrieve differences of undo/redo operations.
Definition: CurveCreator_Diff.hxx:38
int getSectionIndex(const CurveCreator_Curve *theCurve, const int theIndex) const
This method returns the section index.
Definition: CurveCreator_Diff.cxx:549
int myNbUndos
Definition: CurveCreator_Diff.hxx:226
CurveCreator_Operation * myPUndo
Definition: CurveCreator_Diff.hxx:227
CurveCreator_Operation * myPRedo
Definition: CurveCreator_Diff.hxx:228
bool addSectionToUndo(const CurveCreator_Curve *theCurve, const int theIndex, CurveCreator_Operation &theOperation) const
Convert theIndex'th section of theCurve into AddSection command and store it in theOperation.
Definition: CurveCreator_Diff.cxx:560
void applyRedo(CurveCreator_Curve *theCurve)
This method applies redo operation to theCurve.
Definition: CurveCreator_Diff.cxx:509
~CurveCreator_Diff()
Destructor.
Definition: CurveCreator_Diff.cxx:45
bool setTypeOrClosedToUndo(const CurveCreator_Curve *theCurve, const CurveCreator_Operation::Type theType, const int theIntParam1, const int theIntParam2)
Construct undos for SetType and SetClosed operations.
Definition: CurveCreator_Diff.cxx:580
void setNbUndos(const int theNbUndos)
This method sets the number of undos and allocates the required space for myPUndo.
Definition: CurveCreator_Diff.cxx:539
bool init(const CurveCreator_Curve *theCurve)
This method initializes the difference with an operation without parameters.
Definition: CurveCreator_Diff.cxx:54
CurveCreator_Diff()
Constructor.
Definition: CurveCreator_Diff.cxx:34
void clear()
This method clears initialized data pointers.
Definition: CurveCreator_Diff.cxx:520
void applyUndo(CurveCreator_Curve *theCurve)
This method applies undo operation to theCurve.
Definition: CurveCreator_Diff.cxx:496
std::deque< SectionToPoint > SectionToPointList
Definition: CurveCreator_ICurve.hxx:76
std::deque< std::pair< SectionToPoint, CurveCreator::Coordinates > > SectionToPointCoordsList
Definition: CurveCreator_ICurve.hxx:78
This is the support class that describes a modification operation that can be applied to CurveCreator...
Definition: CurveCreator_Operation.hxx:41
Type
This is a type of CurveCreator_Curve modification operation.
Definition: CurveCreator_Operation.hxx:49
std::deque< TypeCoord > Coordinates
List of coordinates in format depends on section dimension: 2D: [x1, y1, x2, y2, x3,...
Definition: CurveCreator.hxx:42