zlp_projection_element module¶
This module contains utility classes and methods which ease the management and operation of projection elements.
-
class
z_laser_zlp1.zlp_projection_element.ProjectionElement(module_id, thrift_client)[source]¶ Bases:
objectThis class implement the functions related with projection elements.
Parameters: -
init_projection_element(elem)[source]¶ Initialize new projection element.
Parameters: elem (object) – projection element object to initialize Returns: projection element object with fields initialized Return type: object
-
create_polyline(name)[source]¶ Create and initialize a new polyline object.
Parameters: name (str) – polyline name Returns: polyline struct with fields initialized Return type: object
-
define_polyline(cs_name, proj_elem_params, reflection=False)[source]¶ Create a new line as projection element.
Parameters: Returns: the first value in the returned tuple is a bool success value and the second value in the tuple is an information message string
Return type:
-
define_arrow(cs_name, proj_elem_params, reflection=False)[source]¶ Create a new arrow as projection element.
Parameters: Returns: the first value in the returned tuple is a bool success value and the second value in the tuple is an information message string
Return type:
-
define_rectangle(cs_name, proj_elem_params, points, reflection=False)[source]¶ Create a new rectangle as projection element.
Parameters: Returns: the first value in the returned tuple is a bool success value and the second value in the tuple is an information message string
Return type:
-
create_curve(name, curve_type)[source]¶ Create and initialize a new curve (circle, arc or oval) object.
Parameters: name (str) – curve name Returns: curve object with fields initialized Return type: curve (object)
-
define_circle(cs_name, proj_elem_params, reflection=False)[source]¶ Define a new circle as projection element.
Parameters: Returns: the first value in the returned tuple is a bool success value and the second value in the tuple is an information message string
Return type:
-
define_arc(cs_name, proj_elem_params, reflection=False)[source]¶ Create a new arc as projection element.
Parameters: Returns: the first value in the returned tuple is a bool success value and the second value in the tuple is an information message string
Return type:
-
define_oval(cs_name, proj_elem_params, reflection=False)[source]¶ Create a new oval as projection element.
Parameters: Returns: the first value in the returned tuple is a bool success value and the second value in the tuple is an information message string
Return type:
-
create_text(name)[source]¶ Create and initialize a new text object.
Parameters: name (str) – text object name Returns: text object with fields initialized Return type: text (object)
-
define_text(cs_name, proj_elem_params, reflection=False)[source]¶ Create a new text as projection element.
Parameters: Returns: the first value in the returned tuple is a bool success value and the second value in the tuple is an information message string
Return type:
-
get_figure(params)[source]¶ Get properties of a defined projection element.
Parameters: params (object) – object with the necessary parameters to identify the projection element Returns: the first value in the returned tuple is the object of the projection element, the second is a bool success value and the third is an information message string Return type: tuple[object, bool, str]
-
get_polyline(name, proj_elem)[source]¶ Get properties of a defined polyline.
Parameters: Returns: object with the properties of the polyline
Return type:
-
get_circle(name, proj_elem)[source]¶ Get properties of a defined circle.
Parameters: Returns: object with the properties of the polyline
Return type:
-
get_arc(name, proj_elem)[source]¶ Get properties of a defined arc.
Parameters: Returns: object with the properties of the polyline
Return type:
-
get_oval(name, proj_elem)[source]¶ Get properties of a defined oval.
Parameters: Returns: object with the properties of the polyline
Return type:
-
get_text(name, proj_elem)[source]¶ Get properties of a defined text.
Parameters: Returns: object with the properties of the polyline
Return type:
-
activate_figure(figure_params, status)[source]¶ Hide (deactivate) or unhide (activate hidden) a projection element from the active reference system.
Parameters: Returns: the first value in the returned tuple is a bool success value and the second value is an information message string
Return type:
-
delete_figure(figure_params)[source]¶ Delete a projection element from the active reference system.
Parameters: figure_params (object) – object with the necessary parameters to identify the projection element Returns: the first value in the returned tuple is a bool success value and the second value is an information message string Return type: tuple[bool, str]
-
translate_figure(figure_params, dx=0, dy=0, dz=0)[source]¶ Translate a projection element from one position to another.
Parameters: Returns: the first value in the returned tuple is a bool success value and the second value is an information message string
Return type:
-
scale_figure(figure_params, scale_factor)[source]¶ Scale size of a projection element.
Parameters: Returns: the first value in the returned tuple is a bool success value and the second value in the tuple is an information message string
Return type:
-
rotate_figure(figure_params, x_angle, y_angle, z_angle)[source]¶ Rotate a projection element an angle.
Parameters: Returns: the first value in the returned tuple is a bool success value and the second value is an information message string
Return type:
-
cs_axes_create(cs_params, proj_elem_params)[source]¶ Create projection elements of the reference system’s origin axes.
Parameters: Returns: the first value in the returned tuple is a bool success value and the second value is an information message string
Return type:
-
cs_frame_create(cs_name, proj_elem_params, points)[source]¶ Create projection element of the reference system’s frame.
Parameters: Returns: the first value in the returned tuple is a bool success value and the second value is an information message string
Return type:
-