![]() |
Scanframe Modular Application 0.1.0
|
Abstract base class for implementing scan binders. More...
#include <ScanBinder.h>
Classes | |
struct | InfoBase |
Structure used a base class for derived binder classes to store scan dependant information. More... | |
struct | Parameters |
Mandatory structure for initialization of derive class. More... | |
Public Types | |
enum | EState { sbsCFGERR = -2 , sbsERROR = -1 , sbsNOINIT = 0 , sbsABORTED , sbsREADY , sbsWAITING , sbsSUSPENDED , sbsACTIVE , sbsCHECKING , sbsSCANNING , sbsEVALUATING } |
![]() | |
enum | EIdentifier { idUnknown = 0 , idConstant , idVariable , idFunction , idTypedef , idKeyword } |
Keyword identifiers. More... | |
typedef std::string::size_type | pos_type |
Source position type. | |
typedef ssize_t | ip_type |
Instruction pointer type. | |
Public Member Functions | |
ScanBinder (const Parameters ¶meters) | |
~ScanBinder () override | |
void | ReadWriteConfig (bool rd) |
ConfigStore & | GetSaveState () |
virtual void | AddPropertyPages (PropertySheetDialog *sheet) |
void | NewScanEntry (ScanEntry *se) |
void | DeleteScanEntry (const ScanEntry *se) |
void | DoAddPropertyPages (PropertySheetDialog *sheet, bool scan) |
QWidget * | DoGetFrame () |
void | DoReadProfile (IniProfile &inifile) |
void | DoWriteProfile (IniProfile &inifile) |
bool | DoPreInitialize () |
bool | DoInitialize () |
void | DoSustain (timespec clk) |
void | DoClear () |
bool | DoSuspend (bool immediate) |
bool | DoResume () |
bool | DoStop () |
bool | DoAbort () |
bool | DoMoveTo (int scan, int index=-1, double frac=0.0, bool rect=false) |
bool | DoMoveToQuery (int scan) |
bool | DoMoveToSysPos (ESystemPosition sp) |
bool | DoCheck (int scan) |
bool | DoScan (int scan) |
bool | DoEvaluate (int scan) |
bool | DoActivate (int scan) |
bool | DoRotate (int scan, int index=-1) |
bool | CanRotate (int scan) const |
bool | IsRotating () const |
int | DoGetIndex () const |
Vector3D | DoGetOffset () const |
const char * | GetStateName () const |
EState | GetState () const |
const gmi::AxesCoord & | GetVelocity () const |
const gmi::AxesCoord & | GetAcceleration () const |
const gmi::AxesCoord & | GetParkPosition () const |
const gmi::AxesCoord & | GetToolPosition () const |
const Vector3D & | GetFixtureOffset () const |
const Variable & | GetMediumVelocity () const |
int | GetActiveScanIndex () const |
double | GetScanProgress () const |
bool | CanAllocateController () const |
bool | IsControllerAllocated () const |
bool | AllocateController (bool alloc) |
gmi::Controller * | GetController () |
const gmi::Controller * | GetController () const |
void | SetAcqPopManual (RsaTypes::EPopManual pop_manual) |
bool | IsAcqPopManualReady () const |
void | SetProgVelocityEnable (bool enabled) |
bool | GetProgVelocityEnable () const |
const Variable::PtrVector & | GetVars () const |
![]() | |
ProjectScriptObject (const char *type_name) | |
Constructor. | |
~ProjectScriptObject () override | |
Virtual overridden destructor. | |
void | AddScriptParam (const std::string &name, Variable *variable) |
Adds the passed variable as a parameter in the script. | |
![]() | |
ScriptObject (const char *type_name, ScriptObject *parent=nullptr) | |
virtual | ~ScriptObject ()=default |
Virtual destructor which can be overloaded to clean up objects. | |
virtual std::string | getStatusText () |
Gets the status text of this object for debugging purposes. | |
int | getRefCount () const |
Gets the reference count. | |
operator Value () const | |
Cast operator to be able to return this instance as a Value. | |
std::string | getTypeName () const |
Returns the type name Set at the constructor. | |
ScriptObject * | getParent () |
Gets the script object owner. | |
const ScriptObject * | getParent () const |
Gets the script object owner. | |
ScriptObject * | castToObject (const Value &value) |
Casts a sf::Value::vitCustom typed sf::Value to a ScriptObject typed pointer. | |
Static Public Member Functions | |
static const char * | GetStateName (EState state) |
![]() | |
static const IdInfo * | getInfoUnknown () |
Returns the static Info structure for unknowns. | |
Protected Member Functions | |
bool | GetScanPos (gmi::AxesCoord &pos, int scan, int index, double frac, bool rect) const |
int | GetScanIndex () |
ScanMethod * | GetScan (int scan) const |
bool | SetState (EState state) |
InfoBase * | GetScanInfo (int scan) |
const InfoBase * | GetScanInfo (int scan) const |
InfoBase * | GetScanInfo (const ScanMethod *sm) |
const InfoBase * | GetScanInfo (const ScanMethod *sm) const |
virtual InfoBase * | NewScanInfo ()=0 |
virtual void | StateChange (EState prev, EState cur)=0 |
virtual void | AddPropertyPages (PropertySheetDialog *sheet, bool scan)=0 |
virtual void | ReadProfile (IniProfile &inifile)=0 |
virtual void | WriteProfile (IniProfile &inifile)=0 |
virtual int | GetIndex ()=0 |
virtual void | Clear ()=0 |
virtual void | Sustain (timespec)=0 |
virtual bool | Initialize ()=0 |
virtual bool | Suspend (bool immediate)=0 |
virtual bool | Resume ()=0 |
virtual bool | Stop ()=0 |
virtual bool | Abort ()=0 |
virtual bool | MoveTo (int scan, int index, double frac, bool rect)=0 |
virtual bool | Check (int scan)=0 |
virtual bool | Scan (int scan)=0 |
virtual bool | Evaluate (int scan)=0 |
virtual bool | Activate (int scan)=0 |
virtual bool | Rotate (int scan, int index)=0 |
virtual QWidget * | GetFrame ()=0 |
virtual Vector3D | GetOffset () const |
virtual bool | GetGenericInfoList (StringList &)=0 |
ProjectData * | GetProjectData () |
const IdInfo * | getInfo (const std::string &name) const override |
Overridden from base class. | |
bool | getSetValue (const ScriptObject::IdInfo *info, Value *value, Value::vector_type *params, bool flag_set) override |
Overridden from base class. | |
virtual void | DoReadWriteConfig (IniEnvelope &ini, bool rd) |
![]() | |
void | destroyObject (bool &should_delete) override |
Overridden from base class. | |
![]() | |
void | makeParent (ScriptObject *so) |
Makes this object the owner of the other object. | |
void | setParent (ScriptObject *parent) |
Sets the owner to the pass script object. | |
Abstract base class for implementing scan binders.
|
explicit |
|
override |
|
protectedpure virtual |
|
protectedpure virtual |
|
virtual |
|
protectedpure virtual |
bool sf::ScanBinder::AllocateController | ( | bool | alloc | ) |
|
inline |
bool sf::ScanBinder::CanRotate | ( | int | scan | ) | const |
|
protectedpure virtual |
|
protectedpure virtual |
void sf::ScanBinder::DeleteScanEntry | ( | const ScanEntry * | se | ) |
bool sf::ScanBinder::DoAbort | ( | ) |
bool sf::ScanBinder::DoActivate | ( | int | scan | ) |
void sf::ScanBinder::DoAddPropertyPages | ( | PropertySheetDialog * | sheet, |
bool | scan | ||
) |
bool sf::ScanBinder::DoCheck | ( | int | scan | ) |
void sf::ScanBinder::DoClear | ( | ) |
bool sf::ScanBinder::DoEvaluate | ( | int | scan | ) |
QWidget * sf::ScanBinder::DoGetFrame | ( | ) |
int sf::ScanBinder::DoGetIndex | ( | ) | const |
Vector3D sf::ScanBinder::DoGetOffset | ( | ) | const |
bool sf::ScanBinder::DoInitialize | ( | ) |
bool sf::ScanBinder::DoMoveTo | ( | int | scan, |
int | index = -1 , |
||
double | frac = 0.0 , |
||
bool | rect = false |
||
) |
bool sf::ScanBinder::DoMoveToQuery | ( | int | scan | ) |
bool sf::ScanBinder::DoMoveToSysPos | ( | ESystemPosition | sp | ) |
bool sf::ScanBinder::DoPreInitialize | ( | ) |
void sf::ScanBinder::DoReadProfile | ( | IniProfile & | inifile | ) |
|
inlineprotectedvirtual |
bool sf::ScanBinder::DoResume | ( | ) |
bool sf::ScanBinder::DoRotate | ( | int | scan, |
int | index = -1 |
||
) |
bool sf::ScanBinder::DoScan | ( | int | scan | ) |
bool sf::ScanBinder::DoStop | ( | ) |
bool sf::ScanBinder::DoSuspend | ( | bool | immediate | ) |
void sf::ScanBinder::DoSustain | ( | timespec | clk | ) |
void sf::ScanBinder::DoWriteProfile | ( | IniProfile & | inifile | ) |
|
protectedpure virtual |
|
inline |
int sf::ScanBinder::GetActiveScanIndex | ( | ) | const |
gmi::Controller * sf::ScanBinder::GetController | ( | ) |
|
inline |
const Vector3D & sf::ScanBinder::GetFixtureOffset | ( | ) | const |
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
|
overrideprotectedvirtual |
Overridden from base class.
Reimplemented from sf::ProjectScriptObject.
|
inline |
|
protectedvirtual |
|
inline |
|
inline |
|
inlineprotected |
|
inline |
|
protected |
|
protected |
|
protected |
|
inlineprotected |
|
protected |
|
inlineprotected |
|
protected |
double sf::ScanBinder::GetScanProgress | ( | ) | const |
|
overrideprotectedvirtual |
Overridden from base class.
Reimplemented from sf::ProjectScriptObject.
|
inline |
|
inline |
|
static |
|
inline |
|
inline |
const gmi::AxesCoord & sf::ScanBinder::GetVelocity | ( | ) | const |
|
protectedpure virtual |
bool sf::ScanBinder::IsAcqPopManualReady | ( | ) | const |
|
inline |
|
inline |
|
protectedpure virtual |
void sf::ScanBinder::NewScanEntry | ( | ScanEntry * | se | ) |
|
protectedpure virtual |
|
protectedpure virtual |
void sf::ScanBinder::ReadWriteConfig | ( | bool | rd | ) |
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
void sf::ScanBinder::SetAcqPopManual | ( | RsaTypes::EPopManual | pop_manual | ) |
|
inline |
|
protected |
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |