Repetier-Host Plugin  2.0.0
RepetierHostExtender.basic.GCode Class Reference

Stores the complete data of a gcode command in an easy accessible data structure. This structure can be converted into a binary or ascii representation to be send to a reprap printer. More...

List of all members.

Public Member Functions

 GCode (GCodeCompressed gc)
 GCode (string s)
bool hasMValue (int val)
bool hasGValue (int val)
byte[] getBinary (int version)
 Converts a gcode line into a binary representation.
String getAscii (bool inclLine, bool inclChecksum)
string getHostCommand ()
string getHostParameter ()
string Respace (string line)
void Parse (String line)
override string ToString ()
bool IsSlowCommand ()
 Checks if a command could take a while, so it generates no timeout.

Public Attributes

bool forceAscii = false
bool hostCommand = false
bool comment = false
String orig

Static Public Attributes

static NumberFormatInfo format = CultureInfo.InvariantCulture.NumberFormat
static string floatNoExp = "0.#####"

Properties

bool hasCode [get]
bool hasText [get]
String Text [get, set]
bool hasN [get]
int N [get, set]
bool hasM [get]
ushort M [get, set]
bool hasG [get]
ushort G [get, set]
bool hasT [get]
byte T [get, set]
bool hasS [get]
int S [get, set]
bool hasP [get]
int P [get, set]
bool hasX [get]
float X [get, set]
bool hasY [get]
float Y [get, set]
bool hasZ [get]
float Z [get, set]
bool hasE [get]
float E [get, set]
bool hasF [get]
float F [get, set]
bool hasI [get]
float I [get, set]
bool hasJ [get]
float J [get, set]
bool hasR [get]
float R [get, set]
bool hasD [get]
float D [get, set]
bool hasC [get]
float C [get, set]
bool hasH [get]
float H [get, set]
bool hasA [get]
float A [get, set]
bool hasB [get]
float B [get, set]
bool hasK [get]
float K [get, set]
bool hasL [get]
float L [get, set]
bool hasO [get]
float O [get, set]
bool isV2 [get]

Detailed Description

Stores the complete data of a gcode command in an easy accessible data structure. This structure can be converted into a binary or ascii representation to be send to a reprap printer.


Member Function Documentation

Converts a gcode line into a binary representation.

Parameters:
versionBinary protocol version
Returns:

Checks if a command could take a while, so it generates no timeout.

Returns:
true if it is a slow command

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Enumerations Properties Events