Generic functor class to process sketcher command. More...
Public Member Functions | |
Functor () | |
Constructor. More... | |
virtual | ~Functor () |
Destructor. More... | |
virtual void | init (const TCollection_AsciiString &) |
Initialize functor from the script. More... | |
virtual void | initCommand ()=0 |
virtual void | addPoint (const TCollection_AsciiString &x, const TCollection_AsciiString &y)=0 |
virtual void | addAngle (const TCollection_AsciiString &angle)=0 |
virtual void | addSegmentParalX (const TCollection_AsciiString &x)=0 |
virtual void | addSegmentParalXToZero ()=0 |
virtual void | addSegmentParalY (const TCollection_AsciiString &y)=0 |
virtual void | addSegmentParalYToZero ()=0 |
virtual void | addSegmentAbsolute (const TCollection_AsciiString &x, const TCollection_AsciiString &y)=0 |
virtual void | addSegmentRelative (const TCollection_AsciiString &dx, const TCollection_AsciiString &dy)=0 |
virtual void | addSegmentLength (const TCollection_AsciiString &length)=0 |
virtual void | addSegmentX (const TCollection_AsciiString &x, int CurrentIndex)=0 |
virtual void | addSegmentY (const TCollection_AsciiString &y, int CurrentIndex)=0 |
virtual void | addSegmentAngleLength (const TCollection_AsciiString &angle, const TCollection_AsciiString &length, int &CurrentIndex)=0 |
virtual void | addSegmentAngleX (const TCollection_AsciiString &angle, const TCollection_AsciiString &x, int &CurrentIndex)=0 |
virtual void | addSegmentAngleY (const TCollection_AsciiString &angle, const TCollection_AsciiString &y, int &CurrentIndex)=0 |
virtual void | addSegmentDirectionLength (const TCollection_AsciiString &dx, const TCollection_AsciiString &dy, const TCollection_AsciiString &length, int &CurrentIndex)=0 |
virtual void | addSegmentDirectionX (const TCollection_AsciiString &dx, const TCollection_AsciiString &dy, const TCollection_AsciiString &x, int &CurrentIndex)=0 |
virtual void | addSegmentDirectionY (const TCollection_AsciiString &dx, const TCollection_AsciiString &dy, const TCollection_AsciiString &y, int &CurrentIndex)=0 |
virtual void | addArcAbsolute (const TCollection_AsciiString &x, const TCollection_AsciiString &y)=0 |
virtual void | addArcRelative (const TCollection_AsciiString &dx, const TCollection_AsciiString &dy)=0 |
virtual void | addArcRadiusAbsolute (const TCollection_AsciiString &x, const TCollection_AsciiString &y, const TCollection_AsciiString &radius, const TCollection_AsciiString &flag)=0 |
virtual void | addArcRadiusRelative (const TCollection_AsciiString &dx, const TCollection_AsciiString &dy, const TCollection_AsciiString &radius, const TCollection_AsciiString &flag)=0 |
virtual void | addArcCenterAbsolute (const TCollection_AsciiString &x, const TCollection_AsciiString &y, const TCollection_AsciiString &xc, const TCollection_AsciiString &yc, const TCollection_AsciiString &flag1, const TCollection_AsciiString &flag2)=0 |
virtual void | addArcCenterRelative (const TCollection_AsciiString &dx, const TCollection_AsciiString &dy, const TCollection_AsciiString &xc, const TCollection_AsciiString &yc, const TCollection_AsciiString &flag1, const TCollection_AsciiString &flag2)=0 |
virtual void | addArcRadiusLength (const TCollection_AsciiString &radius, const TCollection_AsciiString &length)=0 |
virtual void | addArcAngleRadiusLength (const TCollection_AsciiString &angle, const TCollection_AsciiString &radius, const TCollection_AsciiString &length, int &CurrentIndex)=0 |
virtual void | addArcDirectionRadiusLength (const TCollection_AsciiString &dx, const TCollection_AsciiString &dy, const TCollection_AsciiString &radius, const TCollection_AsciiString &length, int &CurrentIndex)=0 |
virtual void | closeWire ()=0 |
virtual void | closeWireAndBuildFace ()=0 |
virtual void | nextCommand (int &CurrentIndex)=0 |
virtual void | makeResult ()=0 |
void | setNumberOfCommand (int n) |
Set total number of sketcher operators. More... | |
double | error () |
Get error (numerical value that describes, e.g. a deviation of point from the specified arc) More... | |
bool | isOk () |
Get result of parsing. More... | |
Protected Attributes | |
int | myNumberOfCommand |
double | myError |
bool | myOk |
Sketcher_Profile::Functor::Functor | ( | ) |
|
virtual |
|
pure virtual |
Implemented in Sketcher_Profile::DumpFunctor, and Sketcher_Profile::ShapeFunctor.
|
pure virtual |
Implemented in Sketcher_Profile::DumpFunctor, and Sketcher_Profile::ShapeFunctor.
|
pure virtual |
Implemented in Sketcher_Profile::DumpFunctor, and Sketcher_Profile::ShapeFunctor.
|
pure virtual |
Implemented in Sketcher_Profile::DumpFunctor, and Sketcher_Profile::ShapeFunctor.
|
pure virtual |
Implemented in Sketcher_Profile::DumpFunctor, and Sketcher_Profile::ShapeFunctor.
|
pure virtual |
Implemented in Sketcher_Profile::DumpFunctor, and Sketcher_Profile::ShapeFunctor.
|
pure virtual |
Implemented in Sketcher_Profile::DumpFunctor, and Sketcher_Profile::ShapeFunctor.
|
pure virtual |
Implemented in Sketcher_Profile::DumpFunctor, and Sketcher_Profile::ShapeFunctor.
|
pure virtual |
Implemented in Sketcher_Profile::DumpFunctor, and Sketcher_Profile::ShapeFunctor.
|
pure virtual |
Implemented in Sketcher_Profile::DumpFunctor, and Sketcher_Profile::ShapeFunctor.
|
pure virtual |
Implemented in Sketcher_Profile::DumpFunctor, and Sketcher_Profile::ShapeFunctor.
|
pure virtual |
Implemented in Sketcher_Profile::DumpFunctor, and Sketcher_Profile::ShapeFunctor.
|
pure virtual |
Implemented in Sketcher_Profile::DumpFunctor, and Sketcher_Profile::ShapeFunctor.
|
pure virtual |
Implemented in Sketcher_Profile::DumpFunctor, and Sketcher_Profile::ShapeFunctor.
|
pure virtual |
Implemented in Sketcher_Profile::DumpFunctor, and Sketcher_Profile::ShapeFunctor.
|
pure virtual |
Implemented in Sketcher_Profile::DumpFunctor, and Sketcher_Profile::ShapeFunctor.
|
pure virtual |
Implemented in Sketcher_Profile::DumpFunctor, and Sketcher_Profile::ShapeFunctor.
|
pure virtual |
Implemented in Sketcher_Profile::DumpFunctor, and Sketcher_Profile::ShapeFunctor.
|
pure virtual |
Implemented in Sketcher_Profile::DumpFunctor, and Sketcher_Profile::ShapeFunctor.
|
pure virtual |
Implemented in Sketcher_Profile::DumpFunctor, and Sketcher_Profile::ShapeFunctor.
|
pure virtual |
Implemented in Sketcher_Profile::DumpFunctor, and Sketcher_Profile::ShapeFunctor.
|
pure virtual |
Implemented in Sketcher_Profile::DumpFunctor, and Sketcher_Profile::ShapeFunctor.
|
pure virtual |
Implemented in Sketcher_Profile::DumpFunctor, and Sketcher_Profile::ShapeFunctor.
|
pure virtual |
Implemented in Sketcher_Profile::DumpFunctor, and Sketcher_Profile::ShapeFunctor.
|
pure virtual |
Implemented in Sketcher_Profile::DumpFunctor, and Sketcher_Profile::ShapeFunctor.
|
pure virtual |
Implemented in Sketcher_Profile::DumpFunctor, and Sketcher_Profile::ShapeFunctor.
|
pure virtual |
Implemented in Sketcher_Profile::DumpFunctor, and Sketcher_Profile::ShapeFunctor.
|
pure virtual |
Implemented in Sketcher_Profile::DumpFunctor, and Sketcher_Profile::ShapeFunctor.
double Sketcher_Profile::Functor::error | ( | ) |
|
virtual |
command | sketcher command being parsed |
Reimplemented in Sketcher_Profile::DumpFunctor.
|
pure virtual |
Implemented in Sketcher_Profile::DumpFunctor, and Sketcher_Profile::ShapeFunctor.
bool Sketcher_Profile::Functor::isOk | ( | ) |
true
if parsing is successful or false
otherwise
|
pure virtual |
Implemented in Sketcher_Profile::DumpFunctor, and Sketcher_Profile::ShapeFunctor.
|
pure virtual |
Implemented in Sketcher_Profile::DumpFunctor, and Sketcher_Profile::ShapeFunctor.
void Sketcher_Profile::Functor::setNumberOfCommand | ( | int | n | ) |
n | total number of sketcher operators |
|
protected |
|
protected |
|
protected |