Read Commands

read_commands(root, points, lines, conics)
Return type:

list[GGBOrthogonalLineCommand | GGBLineCommand | GGBIntersectCommand | GGBParaCommand | GGBCircleCommand | GGBAddPointOnObjectCommand | GGBCircumcircleCommand | GGBCompassCommand | GGBCenterCommand | GGBMidpointCommand | GGBAngularBisectorLinesCommand | GGBTangentOnCircleCommand | GGBTangentOutsideCircleCommand | GGBAngularBisectorPointsCommand]

class GGBReadCommandType(*values)

Bases: Enum

Line = 'Line'
OrthogonalLine = 'OrthogonalLine'
Intersect = 'Intersect'
ParallelLine = 'ParallelLine'
Circle = 'Circle'
AddPointOn = 'AddPointOn'
Eqdistance = 'Eqdistance'
Circumcircle = 'Circumcircle'
Segment = 'Segment'
Center = 'Center'
Midpoint = 'Midpoint'
AngularBisector = 'AngularBisector'
AngularBisectorPoints = 'AngularBisectorPoints'
TangentOnCircle = 'TangentOnCircle'
TangentOutsideCircle = 'TangentOutsiteCircle'
class GGBLineCommand(**data)

Bases: BaseModel

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

point_start: str
point_end: str
line: str
construction_type: Literal[GGBReadCommandType.Line]
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class GGBParaCommand(**data)

Bases: BaseModel

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

point_start: str
base_line: str
parallel_line: str
construction_type: Literal[GGBReadCommandType.ParallelLine]
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class GGBOrthogonalLineCommand(**data)

Bases: BaseModel

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

line: str
point: str
perpendicular_line: str
construction_type: Literal[GGBReadCommandType.OrthogonalLine]
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class GGBIntersectCommand(**data)

Bases: BaseModel

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

object_1: str
object_2: str
point: str
construction_type: Literal[GGBReadCommandType.Intersect]
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class GGBCircleCommand(**data)

Bases: BaseModel

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

center: str
point_b: str
circle: str
construction_type: Literal[GGBReadCommandType.Circle]
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class GGBCircumcircleCommand(**data)

Bases: BaseModel

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

point_a: str
point_b: str
point_c: str
circle: str
construction_type: Literal[GGBReadCommandType.Circumcircle]
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class GGBCompassCommand(**data)

Bases: BaseModel

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

center: str
segment_radius: tuple[str, str]
circle: str
construction_type: Literal[GGBReadCommandType.Eqdistance]
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class GGBAddPointOnObjectCommand(**data)

Bases: BaseModel

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

object_name: str
point: str
construction_type: Literal[GGBReadCommandType.AddPointOn]
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class GGBCenterCommand(**data)

Bases: BaseModel

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

circle: str
point: str
construction_type: Literal[GGBReadCommandType.Center]
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class GGBMidpointCommand(**data)

Bases: BaseModel

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

point_a: str
point_b: str
midpoint: str
construction_type: Literal[GGBReadCommandType.Midpoint]
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class GGBAngularBisectorLinesCommand(**data)

Bases: BaseModel

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

line_1: str
line_2: str
line_bisector: str
construction_type: Literal[GGBReadCommandType.AngularBisector]
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class GGBAngularBisectorPointsCommand(**data)

Bases: BaseModel

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

point_a: str
corner: str
point_b: str
line_bisector: str
construction_type: Literal[GGBReadCommandType.AngularBisectorPoints]
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class GGBTangentOnCircleCommand(**data)

Bases: BaseModel

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

point_on_tangent: str
tangent_object: str
tangent_line: str
construction_type: Literal[GGBReadCommandType.TangentOnCircle]
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class GGBTangentOutsideCircleCommand(**data)

Bases: BaseModel

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

point_on_tangent: str
tangent_object: str
tangent_line1: str
tangent_line2: str
construction_type: Literal[GGBReadCommandType.TangentOutsideCircle]
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class GGBXMLCommandType(*values)

Bases: Enum

Circle = 'Circle'
Center = 'Center'
Line = 'Line'
Segment = 'Segment'
OrthogonalLine = 'OrthogonalLine'
Point = 'Point'
Intersect = 'Intersect'
Midpoint = 'Midpoint'
AngularBisector = 'AngularBisector'
Tangent = 'Tangent'
class GGBXMLCommandComponents(**data)

Bases: BaseModel

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

command_type: str
args: list[str]
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].