Engauge Digitizer 2
Loading...
Searching...
No Matches
CentipedeState.h File Reference
#include <QString>
Include dependency graph for CentipedeState.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  CentipedeState { CENTIPEDE_STATE_BUILD_CARTESIAN , CENTIPEDE_STATE_BUILD_POLAR , CENTIPEDE_STATE_PREBUILD , NUM_CENTIPEDE_STATES }
 Set of possible states of Centipede construction. More...

Functions

QString centipedeStateAsString (CentipedeState state)

Enumeration Type Documentation

◆ CentipedeState

Set of possible states of Centipede construction.

Enumerator
CENTIPEDE_STATE_BUILD_CARTESIAN 
CENTIPEDE_STATE_BUILD_POLAR 
CENTIPEDE_STATE_PREBUILD 
NUM_CENTIPEDE_STATES 

Definition at line 13 of file CentipedeState.h.

13 {
18};
@ NUM_CENTIPEDE_STATES
@ CENTIPEDE_STATE_BUILD_CARTESIAN
@ CENTIPEDE_STATE_PREBUILD
@ CENTIPEDE_STATE_BUILD_POLAR

Function Documentation

◆ centipedeStateAsString()

QString centipedeStateAsString ( CentipedeState state)
extern

Definition at line 14 of file CentipedeState.cpp.

15{
16 if (centipedeStateHash.size () == 0) {
17
18 // First time through we load the hash
19 centipedeStateHash [CENTIPEDE_STATE_BUILD_CARTESIAN] = "CentipedeStateBuildCartesian";
20 centipedeStateHash [CENTIPEDE_STATE_BUILD_POLAR] = "CentipedeStateBuildPolar";
21 centipedeStateHash [CENTIPEDE_STATE_PREBUILD] = "CentipedeStatePrebuild";
22 }
23
24 if (centipedeStateHash.contains (state)) {
25 return centipedeStateHash [state];
26 } else {
27 return "?";
28 }
29}