Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Sketcher_Profile::Functor Class Referenceabstract

Generic functor class to process sketcher command. More...

Inheritance diagram for Sketcher_Profile::Functor:
Inheritance graph

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
 

Detailed Description

Constructor & Destructor Documentation

Sketcher_Profile::Functor::Functor ( )
Sketcher_Profile::Functor::~Functor ( )
virtual

Member Function Documentation

virtual void Sketcher_Profile::Functor::addAngle ( const TCollection_AsciiString &  angle)
pure virtual
virtual void Sketcher_Profile::Functor::addArcAbsolute ( const TCollection_AsciiString &  x,
const TCollection_AsciiString &  y 
)
pure virtual
virtual void Sketcher_Profile::Functor::addArcAngleRadiusLength ( const TCollection_AsciiString &  angle,
const TCollection_AsciiString &  radius,
const TCollection_AsciiString &  length,
int &  CurrentIndex 
)
pure virtual
virtual void Sketcher_Profile::Functor::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 
)
pure virtual
virtual void Sketcher_Profile::Functor::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 
)
pure virtual
virtual void Sketcher_Profile::Functor::addArcDirectionRadiusLength ( const TCollection_AsciiString &  dx,
const TCollection_AsciiString &  dy,
const TCollection_AsciiString &  radius,
const TCollection_AsciiString &  length,
int &  CurrentIndex 
)
pure virtual
virtual void Sketcher_Profile::Functor::addArcRadiusAbsolute ( const TCollection_AsciiString &  x,
const TCollection_AsciiString &  y,
const TCollection_AsciiString &  radius,
const TCollection_AsciiString &  flag 
)
pure virtual
virtual void Sketcher_Profile::Functor::addArcRadiusLength ( const TCollection_AsciiString &  radius,
const TCollection_AsciiString &  length 
)
pure virtual
virtual void Sketcher_Profile::Functor::addArcRadiusRelative ( const TCollection_AsciiString &  dx,
const TCollection_AsciiString &  dy,
const TCollection_AsciiString &  radius,
const TCollection_AsciiString &  flag 
)
pure virtual
virtual void Sketcher_Profile::Functor::addArcRelative ( const TCollection_AsciiString &  dx,
const TCollection_AsciiString &  dy 
)
pure virtual
virtual void Sketcher_Profile::Functor::addPoint ( const TCollection_AsciiString &  x,
const TCollection_AsciiString &  y 
)
pure virtual
virtual void Sketcher_Profile::Functor::addSegmentAbsolute ( const TCollection_AsciiString &  x,
const TCollection_AsciiString &  y 
)
pure virtual
virtual void Sketcher_Profile::Functor::addSegmentAngleLength ( const TCollection_AsciiString &  angle,
const TCollection_AsciiString &  length,
int &  CurrentIndex 
)
pure virtual
virtual void Sketcher_Profile::Functor::addSegmentAngleX ( const TCollection_AsciiString &  angle,
const TCollection_AsciiString &  x,
int &  CurrentIndex 
)
pure virtual
virtual void Sketcher_Profile::Functor::addSegmentAngleY ( const TCollection_AsciiString &  angle,
const TCollection_AsciiString &  y,
int &  CurrentIndex 
)
pure virtual
virtual void Sketcher_Profile::Functor::addSegmentDirectionLength ( const TCollection_AsciiString &  dx,
const TCollection_AsciiString &  dy,
const TCollection_AsciiString &  length,
int &  CurrentIndex 
)
pure virtual
virtual void Sketcher_Profile::Functor::addSegmentDirectionX ( const TCollection_AsciiString &  dx,
const TCollection_AsciiString &  dy,
const TCollection_AsciiString &  x,
int &  CurrentIndex 
)
pure virtual
virtual void Sketcher_Profile::Functor::addSegmentDirectionY ( const TCollection_AsciiString &  dx,
const TCollection_AsciiString &  dy,
const TCollection_AsciiString &  y,
int &  CurrentIndex 
)
pure virtual
virtual void Sketcher_Profile::Functor::addSegmentLength ( const TCollection_AsciiString &  length)
pure virtual
virtual void Sketcher_Profile::Functor::addSegmentParalX ( const TCollection_AsciiString &  x)
pure virtual
virtual void Sketcher_Profile::Functor::addSegmentParalXToZero ( )
pure virtual
virtual void Sketcher_Profile::Functor::addSegmentParalY ( const TCollection_AsciiString &  y)
pure virtual
virtual void Sketcher_Profile::Functor::addSegmentParalYToZero ( )
pure virtual
virtual void Sketcher_Profile::Functor::addSegmentRelative ( const TCollection_AsciiString &  dx,
const TCollection_AsciiString &  dy 
)
pure virtual
virtual void Sketcher_Profile::Functor::addSegmentX ( const TCollection_AsciiString &  x,
int  CurrentIndex 
)
pure virtual
virtual void Sketcher_Profile::Functor::addSegmentY ( const TCollection_AsciiString &  y,
int  CurrentIndex 
)
pure virtual
virtual void Sketcher_Profile::Functor::closeWire ( )
pure virtual
virtual void Sketcher_Profile::Functor::closeWireAndBuildFace ( )
pure virtual
double Sketcher_Profile::Functor::error ( )
Returns
numerical error
void Sketcher_Profile::Functor::init ( const TCollection_AsciiString &  )
virtual
Parameters
commandsketcher command being parsed

Reimplemented in Sketcher_Profile::DumpFunctor.

virtual void Sketcher_Profile::Functor::initCommand ( )
pure virtual
bool Sketcher_Profile::Functor::isOk ( )
Returns
true if parsing is successful or false otherwise
virtual void Sketcher_Profile::Functor::makeResult ( )
pure virtual
virtual void Sketcher_Profile::Functor::nextCommand ( int &  CurrentIndex)
pure virtual
void Sketcher_Profile::Functor::setNumberOfCommand ( int  n)
Parameters
ntotal number of sketcher operators

Member Data Documentation

double Sketcher_Profile::Functor::myError
protected
int Sketcher_Profile::Functor::myNumberOfCommand
protected
bool Sketcher_Profile::Functor::myOk
protected

The documentation for this class was generated from the following file: