libDXF 0.0.1
A library with DXF related functions written in C.
|
Header file for a DXF mtext entity (MTEXT
).
More...
Go to the source code of this file.
Data Structures | |
struct | dxf_mtext_struct |
DXF definition of an AutoCAD mtext entity (MTEXT ). More... | |
Typedefs | |
typedef struct dxf_mtext_struct | DxfMtext |
DXF definition of an AutoCAD mtext entity (MTEXT ). | |
Functions | |
DxfMtext * | dxf_mtext_new () |
Allocate memory for a DxfMtext . | |
DxfMtext * | dxf_mtext_init (DxfMtext *mtext) |
Allocate memory and initialize data fields in a MTEXT entity. | |
DxfMtext * | dxf_mtext_read (DxfFile *fp, DxfMtext *mtext) |
Read data from a DXF file into a MTEXT entity. | |
int | dxf_mtext_write (DxfFile *fp, DxfMtext *mtext) |
Write DXF output for a DXF ARC entity. | |
int | dxf_mtext_free (DxfMtext *mtext) |
Free the allocated memory for a DXF MTEXT and all it's data fields. | |
void | dxf_mtext_free_chain (DxfMtext *mtexts) |
Free the allocated memory for a chain of DXF MTEXT entities and all their data fields. | |
int | dxf_mtext_get_id_code (DxfMtext *mtext) |
Get the id_code from a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_id_code (DxfMtext *mtext, int id_code) |
Set the id_code for a DXF MTEXT entity. | |
char * | dxf_mtext_get_linetype (DxfMtext *mtext) |
Get the linetype from a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_linetype (DxfMtext *mtext, char *linetype) |
Set the linetype for a DXF MTEXT entity. | |
char * | dxf_mtext_get_layer (DxfMtext *mtext) |
Get the layer from a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_layer (DxfMtext *mtext, char *layer) |
Set the layer for a DXF MTEXT entity. | |
double | dxf_mtext_get_elevation (DxfMtext *mtext) |
Get the elevation from a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_elevation (DxfMtext *mtext, double elevation) |
Set the elevation for a DXF MTEXT entity. | |
double | dxf_mtext_get_thickness (DxfMtext *mtext) |
Get the thickness from a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_thickness (DxfMtext *mtext, double thickness) |
Set the thickness for a DXF MTEXT entity. | |
double | dxf_mtext_get_linetype_scale (DxfMtext *mtext) |
Get the linetype_scale from a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_linetype_scale (DxfMtext *mtext, double linetype_scale) |
Set the linetype_scale for a DXF MTEXT entity. | |
int16_t | dxf_mtext_get_visibility (DxfMtext *mtext) |
Get the visibility from a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_visibility (DxfMtext *mtext, int16_t visibility) |
Set the visibility for a DXF MTEXT entity. | |
int | dxf_mtext_get_color (DxfMtext *mtext) |
Get the color from a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_color (DxfMtext *mtext, int color) |
Set the color for a DXF MTEXT entity. | |
int | dxf_mtext_get_paperspace (DxfMtext *mtext) |
Get the paperspace flag value from a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_paperspace (DxfMtext *mtext, int paperspace) |
Set the paperspace flag for a DXF MTEXT entity. | |
int | dxf_mtext_get_graphics_data_size (DxfMtext *mtext) |
Get the graphics_data_size value from a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_graphics_data_size (DxfMtext *mtext, int graphics_data_size) |
Set the graphics_data_size value for a DXF MTEXT entity. | |
int16_t | dxf_mtext_get_shadow_mode (DxfMtext *mtext) |
Get the shadow_mode from a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_shadow_mode (DxfMtext *mtext, int16_t shadow_mode) |
Set the shadow_mode for a DXF MTEXT entity. | |
DxfBinaryGraphicsData * | dxf_mtext_get_binary_graphics_data (DxfMtext *mtext) |
Get the pointer to the binary_graphics_data from a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_binary_graphics_data (DxfMtext *mtext, DxfBinaryGraphicsData *data) |
Set the pointer to the binary_graphics_data for a DXF MTEXT entity. | |
char * | dxf_mtext_get_dictionary_owner_soft (DxfMtext *mtext) |
Get the pointer to the dictionary_owner_soft from a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_dictionary_owner_soft (DxfMtext *mtext, char *dictionary_owner_soft) |
Set the pointer to the dictionary_owner_soft for a DXF MTEXT entity. | |
char * | dxf_mtext_get_material (DxfMtext *mtext) |
Get the pointer to the material from a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_material (DxfMtext *mtext, char *material) |
Set the pointer to the material for a DXF MTEXT entity. | |
char * | dxf_mtext_get_dictionary_owner_hard (DxfMtext *mtext) |
Get the hard pointer to the dictionary owner from a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_dictionary_owner_hard (DxfMtext *mtext, char *dictionary_owner_hard) |
Set the pointer to the dictionary_owner_hard for a DXF MTEXT entity. | |
int16_t | dxf_mtext_get_lineweight (DxfMtext *mtext) |
Get the lineweight from a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_lineweight (DxfMtext *mtext, int16_t lineweight) |
Set the lineweight for a DXF MTEXT entity. | |
char * | dxf_mtext_get_plot_style_name (DxfMtext *mtext) |
Get the plot_style_name from a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_plot_style_name (DxfMtext *mtext, char *plot_style_name) |
Set the plot_style_name for a DXF MTEXT entity. | |
long | dxf_mtext_get_color_value (DxfMtext *mtext) |
Get the color_value from a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_color_value (DxfMtext *mtext, long color_value) |
Set the color_value for a DXF MTEXT entity. | |
char * | dxf_mtext_get_color_name (DxfMtext *mtext) |
Get the color_name from a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_color_name (DxfMtext *mtext, char *color_name) |
Set the color_name for a DXF MTEXT entity. | |
long | dxf_mtext_get_transparency (DxfMtext *mtext) |
Get the transparency from a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_transparency (DxfMtext *mtext, long transparency) |
Set the transparency for a DXF MTEXT entity. | |
char * | dxf_mtext_get_text_value (DxfMtext *mtext) |
Get the text_value from a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_text_value (DxfMtext *mtext, char *text_value) |
Set the text_value for a DXF MTEXT entity. | |
char * | dxf_mtext_get_text_style (DxfMtext *mtext) |
Get the text_style from a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_text_style (DxfMtext *mtext, char *text_style) |
Set the text_style for a DXF MTEXT entity. | |
DxfPoint * | dxf_mtext_get_p0 (DxfMtext *mtext) |
Get the insertion point p0 of a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_p0 (DxfMtext *mtext, DxfPoint *p0) |
Set the insertion point p0 of a DXF MTEXT entity. | |
double | dxf_mtext_get_x0 (DxfMtext *mtext) |
Get the X-value of the insertion point x0 of a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_x0 (DxfMtext *mtext, double x0) |
Set the X-value of the insertion point x0 of a DXF MTEXT entity. | |
double | dxf_mtext_get_y0 (DxfMtext *mtext) |
Get the Y-value of the insertion point y0 of a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_y0 (DxfMtext *mtext, double y0) |
Set the Y-value of the insertion point y0 of a DXF MTEXT entity. | |
double | dxf_mtext_get_z0 (DxfMtext *mtext) |
Get the Z-value of the insertion point z0 of a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_z0 (DxfMtext *mtext, double z0) |
Set the Z-value of the insertion point z0 of a DXF MTEXT entity. | |
DxfPoint * | dxf_mtext_get_p1 (DxfMtext *mtext) |
Get the direction vector p1 of a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_p1 (DxfMtext *mtext, DxfPoint *p1) |
Set the direction vector p1 of a DXF MTEXT entity. | |
double | dxf_mtext_get_x1 (DxfMtext *mtext) |
Get the X-value of the direction vector x0 of a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_x1 (DxfMtext *mtext, double x1) |
Set the X-value of the direction vector x1 of a DXF MTEXT entity. | |
double | dxf_mtext_get_y1 (DxfMtext *mtext) |
Get the Y-value of the direction vector y1 of a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_y1 (DxfMtext *mtext, double y1) |
Set the Y-value of the direction vector y1 of a DXF MTEXT entity. | |
double | dxf_mtext_get_z1 (DxfMtext *mtext) |
Get the Z-value of the direction vector z1 of a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_z1 (DxfMtext *mtext, double z1) |
Set the Z-value of the direction vector z1 of a DXF MTEXT entity. | |
double | dxf_mtext_get_height (DxfMtext *mtext) |
Get the nominal (initial) text height of a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_height (DxfMtext *mtext, double height) |
Set the nominal (initial) text height of a DXF MTEXT entity. | |
double | dxf_mtext_get_rectangle_width (DxfMtext *mtext) |
Get the rectangle_width of a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_rectangle_width (DxfMtext *mtext, double rectangle_width) |
Set the rectangle_width of a DXF MTEXT entity. | |
double | dxf_mtext_get_horizontal_width (DxfMtext *mtext) |
Get the horizontal_width of a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_horizontal_width (DxfMtext *mtext, double horizontal_width) |
Set the horizontal_width of a DXF MTEXT entity. | |
double | dxf_mtext_get_rectangle_height (DxfMtext *mtext) |
Get the rectangle_height of a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_rectangle_height (DxfMtext *mtext, double rectangle_height) |
Set the rectangle_height of a DXF MTEXT entity. | |
double | dxf_mtext_get_spacing_factor (DxfMtext *mtext) |
Get the spacing_factor of a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_spacing_factor (DxfMtext *mtext, double spacing_factor) |
Set the spacing_factor of a DXF MTEXT entity. | |
double | dxf_mtext_get_box_scale (DxfMtext *mtext) |
Get the box_scale of a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_box_scale (DxfMtext *mtext, double box_scale) |
Set the box_scale of a DXF MTEXT entity. | |
double | dxf_mtext_get_column_width (DxfMtext *mtext) |
Get the column_width of a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_column_width (DxfMtext *mtext, double column_width) |
Set the column_width of a DXF MTEXT entity. | |
double | dxf_mtext_get_column_gutter (DxfMtext *mtext) |
Get the column_gutter of a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_column_gutter (DxfMtext *mtext, double column_gutter) |
Set the column_gutter of a DXF MTEXT entity. | |
double | dxf_mtext_get_column_heights (DxfMtext *mtext) |
Get the column_heights of a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_column_heights (DxfMtext *mtext, double column_heights) |
Set the column_heights of a DXF MTEXT entity. | |
double | dxf_mtext_get_rot_angle (DxfMtext *mtext) |
Get the rot_angle of a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_rot_angle (DxfMtext *mtext, double rot_angle) |
Set the rot_angle of a DXF MTEXT entity. | |
int | dxf_mtext_get_background_color (DxfMtext *mtext) |
Get the background_color from a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_background_color (DxfMtext *mtext, int background_color) |
Set the background_color for a DXF MTEXT entity. | |
int | dxf_mtext_get_attachment_point (DxfMtext *mtext) |
Get the attachment_point from a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_attachment_point (DxfMtext *mtext, int attachment_point) |
Set the attachment_point for a DXF MTEXT entity. | |
int | dxf_mtext_get_drawing_direction (DxfMtext *mtext) |
Get the drawing_direction from a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_drawing_direction (DxfMtext *mtext, int drawing_direction) |
Set the drawing_direction for a DXF MTEXT entity. | |
int | dxf_mtext_get_spacing_style (DxfMtext *mtext) |
Get the spacing_style from a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_spacing_style (DxfMtext *mtext, int spacing_style) |
Set the spacing_style for a DXF MTEXT entity. | |
int | dxf_mtext_get_column_type (DxfMtext *mtext) |
Get the column_type from a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_column_type (DxfMtext *mtext, int column_type) |
Set the column_type for a DXF MTEXT entity. | |
int | dxf_mtext_get_column_count (DxfMtext *mtext) |
Get the column_count from a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_column_count (DxfMtext *mtext, int column_count) |
Set the column_count for a DXF MTEXT entity. | |
int | dxf_mtext_get_column_flow (DxfMtext *mtext) |
Get the column_flow from a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_column_flow (DxfMtext *mtext, int column_flow) |
Set the column_flow for a DXF MTEXT entity. | |
int | dxf_mtext_get_column_autoheight (DxfMtext *mtext) |
Get the column_autoheight from a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_column_autoheight (DxfMtext *mtext, int column_autoheight) |
Set the column_autoheight for a DXF MTEXT entity. | |
int | dxf_mtext_get_background_fill (DxfMtext *mtext) |
Get the background_fill from a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_background_fill (DxfMtext *mtext, int background_fill) |
Set the background_fill for a DXF MTEXT entity. | |
double | dxf_mtext_get_extr_x0 (DxfMtext *mtext) |
Get the X-value of the extrusion vector extr_x0 of a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_extr_x0 (DxfMtext *mtext, double extr_x0) |
Set the X-value of the extrusion vector extr_x0 of a DXF MTEXT entity. | |
double | dxf_mtext_get_extr_y0 (DxfMtext *mtext) |
Get the Y-value of the extrusion vector extr_y0 of a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_extr_y0 (DxfMtext *mtext, double extr_y0) |
Set the Y-value of the extrusion vector extr_y0 of a DXF MTEXT entity. | |
double | dxf_mtext_get_extr_z0 (DxfMtext *mtext) |
Get the Z-value of the extrusion vector extr_z0 of a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_extr_z0 (DxfMtext *mtext, double extr_z0) |
Set the Z-value of the extrusion vector extr_z0 of a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_extrusion_vector_from_point (DxfMtext *mtext, DxfPoint *point) |
Set the extrusion vector from a DXF POINT for a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_extrusion_vector (DxfMtext *mtext, double extr_x0, double extr_y0, double extr_z0) |
Set the extrusion vector for a DXF MTEXT entity. | |
int32_t | dxf_mtext_get_background_color_rgb (DxfMtext *mtext) |
Get the background_color_rgb from a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_background_color_rgb (DxfMtext *mtext, int32_t background_color_rgb) |
Set the background_color_rgb for a DXF MTEXT entity. | |
char * | dxf_mtext_get_background_color_name (DxfMtext *mtext) |
Get the background_color_name from a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_background_color_name (DxfMtext *mtext, char *background_color_name) |
Set the background_color_name for a DXF MTEXT entity. | |
int32_t | dxf_mtext_get_background_transparency (DxfMtext *mtext) |
Get the background_transparency from a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_background_transparency (DxfMtext *mtext, int32_t background_transparency) |
Set the background_transparency for a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_get_next (DxfMtext *mtext) |
Get the pointer to the next MTEXT entity from a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_set_next (DxfMtext *mtext, DxfMtext *next) |
Set the pointer to the next MTEXT for a DXF MTEXT entity. | |
DxfMtext * | dxf_mtext_get_last (DxfMtext *mtext) |
Get the pointer to the last MTEXT entity from a linked list of DXF MTEXT entities. |
Header file for a DXF mtext entity (MTEXT
).
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to:
Free Software Foundation, Inc.,
59 Temple Place,
Suite 330,
Boston,
MA 02111 USA.
Drawing eXchange Format (DXF) is a defacto industry standard for the exchange of drawing files between various Computer Aided Drafting programs.
DXF is an industry standard designed by Autodesk(TM).
For more details see http://www.autodesk.com .
Definition in file mtext.h.
typedef struct dxf_mtext_struct DxfMtext |
DXF definition of an AutoCAD mtext entity (MTEXT
).
DxfMtext* dxf_mtext_new | ( | ) |
Allocate memory for a DxfMtext
.
Fill the memory contents with zeros.
Definition at line 53 of file mtext.c.
References _, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Referenced by dxf_mtext_init(), and dxf_mtext_read().
Allocate memory and initialize data fields in a MTEXT
entity.
NULL
when no memory was allocated, a pointer to the allocated memory when succesful. mtext | a pointer to the DXF mtext entity. |
Definition at line 90 of file mtext.c.
References _, dxf_mtext_struct::attachment_point, dxf_mtext_struct::background_color, dxf_mtext_struct::background_color_name, dxf_mtext_struct::background_color_rgb, dxf_mtext_struct::background_fill, dxf_mtext_struct::background_transparency, dxf_mtext_struct::box_scale, dxf_mtext_struct::color, dxf_mtext_struct::column_autoheight, dxf_mtext_struct::column_count, dxf_mtext_struct::column_flow, dxf_mtext_struct::column_gutter, dxf_mtext_struct::column_heights, dxf_mtext_struct::column_type, dxf_mtext_struct::column_width, dxf_mtext_struct::drawing_direction, DXF_COLOR_BYLAYER, DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_DEFAULT_LAYER, DXF_DEFAULT_LINETYPE, DXF_MAX_PARAM, DXF_MODELSPACE, dxf_mtext_new(), dxf_mtext_struct::elevation, dxf_mtext_struct::extr_x0, dxf_mtext_struct::extr_y0, dxf_mtext_struct::extr_z0, dxf_mtext_struct::height, dxf_mtext_struct::horizontal_width, dxf_mtext_struct::id_code, dxf_mtext_struct::layer, dxf_mtext_struct::linetype, dxf_mtext_struct::p0, dxf_mtext_struct::p1, dxf_mtext_struct::paperspace, dxf_mtext_struct::rectangle_height, dxf_mtext_struct::rectangle_width, dxf_mtext_struct::rot_angle, dxf_mtext_struct::spacing_factor, dxf_mtext_struct::spacing_style, dxf_mtext_struct::text_additional_value, dxf_mtext_struct::text_style, dxf_mtext_struct::text_value, dxf_mtext_struct::thickness, dxf_point_struct::x0, dxf_point_struct::y0, and dxf_point_struct::z0.
Referenced by dxf_mtext_read().
Read data from a DXF file into a MTEXT
entity.
The last line read from file contained the string "MTEXT".
Now follows some data for the MTEXT
, to be terminated with a " 0" string announcing the following entity, or the end of the ENTITY
section marker ENDSEC
.
While parsing the DXF file store data in mtext
.
EXIT_SUCCESS
when done, or EXIT_FAILURE
when an error occurred. < Add more code here, I'm stop because the double use of group code 50
fp | DXF filepointer to the input file (or device). |
mtext | a pointer to the DXF mtext entity. |
Definition at line 180 of file mtext.c.
References _, dxf_file_struct::acad_version_number, dxf_mtext_struct::attachment_point, AutoCAD_11, AutoCAD_13, AutoCAD_2006, AutoCAD_2007, dxf_mtext_struct::background_color, dxf_mtext_struct::background_fill, dxf_mtext_struct::box_scale, dxf_mtext_struct::column_autoheight, dxf_mtext_struct::column_count, dxf_mtext_struct::column_flow, dxf_mtext_struct::column_gutter, dxf_mtext_struct::column_type, dxf_mtext_struct::column_width, dxf_mtext_struct::drawing_direction, DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_DEFAULT_LAYER, DXF_DEFAULT_LINETYPE, DXF_FLATLAND, dxf_mtext_init(), dxf_mtext_new(), dxf_mtext_struct::elevation, dxf_mtext_struct::extr_x0, dxf_mtext_struct::extr_y0, dxf_mtext_struct::extr_z0, dxf_file_struct::filename, dxf_file_struct::fp, dxf_mtext_struct::height, dxf_mtext_struct::horizontal_width, dxf_mtext_struct::id_code, dxf_mtext_struct::layer, dxf_file_struct::line_number, dxf_mtext_struct::linetype, dxf_mtext_struct::p0, dxf_mtext_struct::p1, dxf_mtext_struct::rectangle_height, dxf_mtext_struct::rectangle_width, dxf_mtext_struct::rot_angle, dxf_mtext_struct::spacing_factor, dxf_mtext_struct::spacing_style, dxf_mtext_struct::text_style, dxf_mtext_struct::text_value, dxf_mtext_struct::thickness, dxf_point_struct::x0, dxf_point_struct::y0, and dxf_point_struct::z0.
Write DXF output for a DXF ARC
entity.
EXIT_SUCCESS
when done, or EXIT_FAILURE
when an error occurred.follow_strict_version_rules
flag is set to TRUE
in the DxfFile
struct, this entity will be skipped from file. When the follow_strict_version_rules
flag is set to FALSE
in the DxfFile
struct, libdxf will write this entity to file and report with a warning message to stderr
. fp | DXF file pointer to an output file (or device). |
mtext | a pointer to the DXF MTEXT entity. |
Definition at line 542 of file mtext.c.
References _, dxf_file_struct::acad_version_number, dxf_mtext_struct::attachment_point, AutoCAD_11, AutoCAD_12, AutoCAD_13, AutoCAD_14, dxf_mtext_struct::color, dxf_mtext_struct::dictionary_owner_hard, dxf_mtext_struct::dictionary_owner_soft, dxf_mtext_struct::drawing_direction, DXF_COLOR_BYLAYER, DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_DEFAULT_LAYER, DXF_DEFAULT_LINETYPE, DXF_FLATLAND, DXF_PAPERSPACE, dxf_mtext_struct::elevation, dxf_mtext_struct::extr_x0, dxf_mtext_struct::extr_y0, dxf_mtext_struct::extr_z0, dxf_file_struct::follow_strict_version_rules, dxf_file_struct::fp, dxf_mtext_struct::height, dxf_mtext_struct::horizontal_width, dxf_mtext_struct::id_code, dxf_mtext_struct::layer, dxf_mtext_struct::linetype, dxf_mtext_struct::linetype_scale, dxf_mtext_struct::p0, dxf_mtext_struct::p1, dxf_mtext_struct::paperspace, dxf_mtext_struct::rectangle_height, dxf_mtext_struct::rectangle_width, dxf_mtext_struct::rot_angle, dxf_mtext_struct::text_additional_value, dxf_mtext_struct::text_style, dxf_mtext_struct::text_value, dxf_mtext_struct::thickness, dxf_mtext_struct::visibility, dxf_point_struct::x0, dxf_point_struct::y0, and dxf_point_struct::z0.
int dxf_mtext_free | ( | DxfMtext * | mtext | ) |
Free the allocated memory for a DXF MTEXT
and all it's data fields.
EXIT_SUCCESS
when done, or EXIT_FAILURE
when an error occurred. mtext | a pointer to the DXF mtext entity. |
Definition at line 726 of file mtext.c.
References _, dxf_mtext_struct::background_color_name, dxf_mtext_struct::dictionary_owner_hard, dxf_mtext_struct::dictionary_owner_soft, DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_MAX_PARAM, dxf_mtext_struct::layer, dxf_mtext_struct::linetype, dxf_mtext_struct::next, dxf_mtext_struct::text_additional_value, dxf_mtext_struct::text_style, and dxf_mtext_struct::text_value.
Referenced by dxf_mtext_free_chain().
void dxf_mtext_free_chain | ( | DxfMtext * | mtexts | ) |
Free the allocated memory for a chain of DXF MTEXT
entities and all their data fields.
mtexts | a pointer to the chain of DXF MTEXT entities. |
Definition at line 777 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mtext_free(), and dxf_mtext_struct::next.
int dxf_mtext_get_id_code | ( | DxfMtext * | mtext | ) |
Get the id_code
from a DXF MTEXT
entity.
id_code
. mtext | a pointer to a DXF MTEXT entity. |
Definition at line 810 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::id_code.
Set the id_code
for a DXF MTEXT
entity.
mtext | a pointer to a DXF MTEXT entity. |
id_code | Identification number for the entity. This is to be an unique (sequential) number in the DXF file. |
Definition at line 845 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::id_code.
char* dxf_mtext_get_linetype | ( | DxfMtext * | mtext | ) |
Get the linetype
from a DXF MTEXT
entity.
linetype
when sucessful, NULL
when an error occurred. mtext | a pointer to a DXF MTEXT entity. |
Definition at line 887 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::linetype.
Set the linetype
for a DXF MTEXT
entity.
mtext | a pointer to a DXF MTEXT entity. |
linetype | a string containing the linetype for the entity. |
Definition at line 922 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::linetype.
char* dxf_mtext_get_layer | ( | DxfMtext * | mtext | ) |
Get the layer
from a DXF MTEXT
entity.
layer
when sucessful, NULL
when an error occurred. mtext | a pointer to a DXF MTEXT entity. |
Definition at line 962 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::layer.
Set the layer
for a DXF MTEXT
entity.
mtext | a pointer to a DXF MTEXT entity. |
layer | a string containing the layer for the entity. |
Definition at line 997 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::layer.
double dxf_mtext_get_elevation | ( | DxfMtext * | mtext | ) |
Get the elevation
from a DXF MTEXT
entity.
elevation
. mtext | a pointer to a DXF MTEXT entity. |
Definition at line 1037 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::elevation.
Set the elevation
for a DXF MTEXT
entity.
mtext | a pointer to a DXF MTEXT entity. |
elevation | the elevation to be set for the entity. |
Definition at line 1065 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::elevation.
double dxf_mtext_get_thickness | ( | DxfMtext * | mtext | ) |
Get the thickness
from a DXF MTEXT
entity.
thickness
. mtext | a pointer to a DXF MTEXT entity. |
Definition at line 1098 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::thickness.
Set the thickness
for a DXF MTEXT
entity.
mtext | a pointer to a DXF MTEXT entity. |
thickness | the thickness to be set for the entity. |
Definition at line 1133 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::thickness.
double dxf_mtext_get_linetype_scale | ( | DxfMtext * | mtext | ) |
Get the linetype_scale
from a DXF MTEXT
entity.
linetype_scale
. mtext | a pointer to a DXF MTEXT entity. |
Definition at line 1173 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::linetype_scale.
Set the linetype_scale
for a DXF MTEXT
entity.
mtext | a pointer to a DXF MTEXT entity. |
linetype_scale | the linetype_scale to be set for the entity. |
Definition at line 1208 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::linetype_scale.
int16_t dxf_mtext_get_visibility | ( | DxfMtext * | mtext | ) |
Get the visibility
from a DXF MTEXT
entity.
visibility
. mtext | a pointer to a DXF MTEXT entity. |
Definition at line 1248 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::visibility.
Set the visibility
for a DXF MTEXT
entity.
mtext | a pointer to a DXF MTEXT entity. |
visibility | the visibility to be set for the entity. |
Definition at line 1290 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::visibility.
int dxf_mtext_get_color | ( | DxfMtext * | mtext | ) |
Get the color
from a DXF MTEXT
entity.
color
. mtext | a pointer to a DXF MTEXT entity. |
Definition at line 1337 of file mtext.c.
References _, dxf_mtext_struct::color, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Set the color
for a DXF MTEXT
entity.
mtext | a pointer to a DXF MTEXT entity. |
color | the color to be set for the entity. |
Definition at line 1371 of file mtext.c.
References _, dxf_mtext_struct::color, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
int dxf_mtext_get_paperspace | ( | DxfMtext * | mtext | ) |
Get the paperspace
flag value from a DXF MTEXT
entity.
paperspace
flag value. mtext | a pointer to a DXF MTEXT entity. |
Definition at line 1410 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::paperspace.
Set the paperspace
flag for a DXF MTEXT
entity.
mtext | a pointer to a DXF MTEXT entity. |
paperspace | the paperspace flag value to be set for the entity. |
Definition at line 1450 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::paperspace.
int dxf_mtext_get_graphics_data_size | ( | DxfMtext * | mtext | ) |
Get the graphics_data_size
value from a DXF MTEXT
entity.
graphics_data_size
value when successful, or EXIT_FAILURE
when an error occurred. mtext | a pointer to a DXF MTEXT entity. |
Definition at line 1498 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::graphics_data_size.
Set the graphics_data_size
value for a DXF MTEXT
entity.
mtext
when successful, or NULL
when an error occurred. mtext | a pointer to a DXF MTEXT entity. |
graphics_data_size | the graphics_data_size value to be set for the entity. |
Definition at line 1541 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::graphics_data_size.
int16_t dxf_mtext_get_shadow_mode | ( | DxfMtext * | mtext | ) |
Get the shadow_mode
from a DXF MTEXT
entity.
shadow_mode
when successful, or EXIT_FAILURE
when an error occurred. mtext | a pointer to a DXF MTEXT entity. |
Definition at line 1589 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::shadow_mode.
Set the shadow_mode
for a DXF MTEXT
entity.
mtext
when successful, or NULL
when an error occurred. mtext | a pointer to a DXF MTEXT entity. |
shadow_mode | the shadow mode to be set for the entity. |
Definition at line 1634 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::shadow_mode.
DxfBinaryGraphicsData* dxf_mtext_get_binary_graphics_data | ( | DxfMtext * | mtext | ) |
Get the pointer to the binary_graphics_data
from a DXF MTEXT
entity.
binary_graphics_data
.mtext | a pointer to a DXF MTEXT entity. |
Definition at line 1684 of file mtext.c.
References _, dxf_mtext_struct::binary_graphics_data, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
DxfMtext* dxf_mtext_set_binary_graphics_data | ( | DxfMtext * | mtext, |
DxfBinaryGraphicsData * | data | ||
) |
Set the pointer to the binary_graphics_data
for a DXF MTEXT
entity.
mtext | a pointer to a DXF MTEXT entity. |
data | a string containing the pointer to the binary_graphics_data for the entity. |
Definition at line 1720 of file mtext.c.
References _, dxf_mtext_struct::binary_graphics_data, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
char* dxf_mtext_get_dictionary_owner_soft | ( | DxfMtext * | mtext | ) |
Get the pointer to the dictionary_owner_soft
from a DXF MTEXT
entity.
dictionary_owner_soft
.mtext | a pointer to a DXF MTEXT entity. |
Definition at line 1764 of file mtext.c.
References _, dxf_mtext_struct::dictionary_owner_soft, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Set the pointer to the dictionary_owner_soft
for a DXF MTEXT
entity.
mtext | a pointer to a DXF MTEXT entity. |
dictionary_owner_soft | a string containing the pointer to the dictionary_owner_soft for the entity. |
Definition at line 1800 of file mtext.c.
References _, dxf_mtext_struct::dictionary_owner_soft, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
char* dxf_mtext_get_material | ( | DxfMtext * | mtext | ) |
Get the pointer to the material
from a DXF MTEXT
entity.
material
when successful, or NULL
when an error occurred.mtext | a pointer to a DXF MTEXT entity. |
Definition at line 1844 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::material.
Set the pointer to the material
for a DXF MTEXT
entity.
mtext
when successful, or NULL
when an error occurred. mtext | a pointer to a DXF MTEXT entity. |
material | a string containing the pointer to the material for the entity. |
Definition at line 1882 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::material.
char* dxf_mtext_get_dictionary_owner_hard | ( | DxfMtext * | mtext | ) |
Get the hard pointer to the dictionary owner from a DXF MTEXT
entity.
mtext | a pointer to a DXF MTEXT entity. |
Definition at line 1926 of file mtext.c.
References _, dxf_mtext_struct::dictionary_owner_hard, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Set the pointer to the dictionary_owner_hard for a DXF MTEXT
entity.
mtext | a pointer to a DXF MTEXT entity. |
dictionary_owner_hard | a string containing the pointer to the dictionary_owner_hard for the entity. |
Definition at line 1962 of file mtext.c.
References _, dxf_mtext_struct::dictionary_owner_hard, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
int16_t dxf_mtext_get_lineweight | ( | DxfMtext * | mtext | ) |
Get the lineweight
from a DXF MTEXT
entity.
lineweight
when successful, or EXIT_FAILURE
when an error occurred. mtext | a pointer to a DXF MTEXT entity. |
Definition at line 2004 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::lineweight.
Set the lineweight
for a DXF MTEXT
entity.
mtext
when successful, or NULL
when an error occurred. mtext | a pointer to a DXF MTEXT entity. |
lineweight | the lineweight to be set for the entity. |
Definition at line 2035 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::lineweight.
char* dxf_mtext_get_plot_style_name | ( | DxfMtext * | mtext | ) |
Get the plot_style_name
from a DXF MTEXT
entity.
plot_style_name
when sucessful, or NULL
when an error occurred. mtext | a pointer to a DXF MTEXT entity. |
Definition at line 2069 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::plot_style_name.
Set the plot_style_name
for a DXF MTEXT
entity.
mtext
when successful, or NULL
when an error occurred. mtext | a pointer to a DXF MTEXT entity. |
plot_style_name | a string containing the plot_style_name for the entity. |
Definition at line 2107 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::plot_style_name.
long dxf_mtext_get_color_value | ( | DxfMtext * | mtext | ) |
Get the color_value
from a DXF MTEXT
entity.
color_value
when successful, or EXIT_FAILURE
when an error occurred. mtext | a pointer to a DXF MTEXT entity. |
Definition at line 2149 of file mtext.c.
References _, dxf_mtext_struct::color_value, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Set the color_value
for a DXF MTEXT
entity.
mtext
when successful, or NULL
when an error occurred. mtext | a pointer to a DXF MTEXT entity. |
color_value | the color_value to be set for the entity. |
Definition at line 2180 of file mtext.c.
References _, dxf_mtext_struct::color_value, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
char* dxf_mtext_get_color_name | ( | DxfMtext * | mtext | ) |
Get the color_name
from a DXF MTEXT
entity.
color_name
when sucessful, or NULL
when an error occurred. mtext | a pointer to a DXF MTEXT entity. |
Definition at line 2214 of file mtext.c.
References _, dxf_mtext_struct::color_name, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Set the color_name
for a DXF MTEXT
entity.
mtext
when successful, or NULL
when an error occurred. mtext | a pointer to a DXF MTEXT entity. |
color_name | a string containing the color_name for the entity. |
Definition at line 2252 of file mtext.c.
References _, dxf_mtext_struct::color_name, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
long dxf_mtext_get_transparency | ( | DxfMtext * | mtext | ) |
Get the transparency
from a DXF MTEXT
entity.
transparency
when successful, or EXIT_FAILURE
when an error occurred. mtext | a pointer to a DXF MTEXT entity. |
Definition at line 2294 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::transparency.
Set the transparency
for a DXF MTEXT
entity.
mtext
when successful, or NULL
when an error occurred. mtext | a pointer to a DXF MTEXT entity. |
transparency | the transparency to be set for the entity. |
Definition at line 2325 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::transparency.
char* dxf_mtext_get_text_value | ( | DxfMtext * | mtext | ) |
Get the text_value
from a DXF MTEXT
entity.
text_value
when sucessful, or NULL
when an error occurred. mtext | a pointer to a DXF MTEXT entity. |
Definition at line 2359 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::text_value.
Set the text_value
for a DXF MTEXT
entity.
mtext
when successful, or NULL
when an error occurred. mtext | a pointer to a DXF MTEXT entity. |
text_value | a string containing the text_value for the entity. |
Definition at line 2397 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::text_value.
char* dxf_mtext_get_text_style | ( | DxfMtext * | mtext | ) |
Get the text_style
from a DXF MTEXT
entity.
text_style
when sucessful, or NULL
when an error occurred. mtext | a pointer to a DXF MTEXT entity. |
Definition at line 2439 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::text_style.
Set the text_style
for a DXF MTEXT
entity.
mtext
when successful, or NULL
when an error occurred. mtext | a pointer to a DXF MTEXT entity. |
text_style | a string containing the text_style for the entity. |
Definition at line 2477 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::text_style.
Get the insertion point p0
of a DXF MTEXT
entity.
p0
. mtext | a pointer to a DXF MTEXT entity. |
Definition at line 2518 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::p0.
Set the insertion point p0
of a DXF MTEXT
entity.
MTEXT
entity. mtext | a pointer to a DXF MTEXT entity. |
p0 | a pointer to a DXF POINT entity. |
Definition at line 2555 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::p0.
double dxf_mtext_get_x0 | ( | DxfMtext * | mtext | ) |
Get the X-value of the insertion point x0
of a DXF MTEXT
entity.
x0
. mtext | a pointer to a DXF MTEXT entity. |
Definition at line 2596 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mtext_struct::p0, and dxf_point_struct::x0.
Set the X-value of the insertion point x0
of a DXF MTEXT
entity.
mtext
when successful, or NULL
when an error occurred. mtext | a pointer to a DXF MTEXT entity. |
x0 | the X-value of the insertion point x0 of a DXF MTEXT entity. |
Definition at line 2636 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mtext_struct::p0, and dxf_point_struct::x0.
double dxf_mtext_get_y0 | ( | DxfMtext * | mtext | ) |
Get the Y-value of the insertion point y0
of a DXF MTEXT
entity.
y0
. mtext | a pointer to a DXF MTEXT entity. |
Definition at line 2678 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mtext_struct::p0, and dxf_point_struct::y0.
Set the Y-value of the insertion point y0
of a DXF MTEXT
entity.
mtext
when successful, or NULL
when an error occurred. mtext | a pointer to a DXF MTEXT entity. |
y0 | the Y-value of the insertion point y0 of a DXF MTEXT entity. |
Definition at line 2718 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mtext_struct::p0, and dxf_point_struct::y0.
double dxf_mtext_get_z0 | ( | DxfMtext * | mtext | ) |
Get the Z-value of the insertion point z0
of a DXF MTEXT
entity.
z0
. mtext | a pointer to a DXF MTEXT entity. |
Definition at line 2760 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mtext_struct::p0, and dxf_point_struct::z0.
Set the Z-value of the insertion point z0
of a DXF MTEXT
entity.
mtext
when successful, or NULL
when an error occurred. mtext | a pointer to a DXF MTEXT entity. |
z0 | the Z-value of the insertion point z0 of a DXF MTEXT entity. |
Definition at line 2800 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mtext_struct::p0, and dxf_point_struct::z0.
Get the direction vector p1
of a DXF MTEXT
entity.
p1
. mtext | a pointer to a DXF MTEXT entity. |
Definition at line 2841 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::p1.
Set the direction vector p1
of a DXF MTEXT
entity.
MTEXT
entity. mtext | a pointer to a DXF MTEXT entity. |
p1 | a pointer to a DXF POINT entity. |
Definition at line 2878 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::p1.
double dxf_mtext_get_x1 | ( | DxfMtext * | mtext | ) |
Get the X-value of the direction vector x0
of a DXF MTEXT
entity.
x0
. mtext | a pointer to a DXF MTEXT entity. |
Definition at line 2919 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mtext_struct::p1, and dxf_point_struct::x0.
Set the X-value of the direction vector x1
of a DXF MTEXT
entity.
mtext
when successful, or NULL
when an error occurred. mtext | a pointer to a DXF MTEXT entity. |
x1 | the X-value of the direction vector x1 of a DXF MTEXT entity. |
Definition at line 2959 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mtext_struct::p1, and dxf_point_struct::x0.
double dxf_mtext_get_y1 | ( | DxfMtext * | mtext | ) |
Get the Y-value of the direction vector y1
of a DXF MTEXT
entity.
y1
. mtext | a pointer to a DXF MTEXT entity. |
Definition at line 3001 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mtext_struct::p1, and dxf_point_struct::y0.
Set the Y-value of the direction vector y1
of a DXF MTEXT
entity.
mtext
when successful, or NULL
when an error occurred. mtext | a pointer to a DXF MTEXT entity. |
y1 | the Y-value of the direction vector y1 of a DXF MTEXT entity. |
Definition at line 3041 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mtext_struct::p1, and dxf_point_struct::y0.
double dxf_mtext_get_z1 | ( | DxfMtext * | mtext | ) |
Get the Z-value of the direction vector z1
of a DXF MTEXT
entity.
z1
. mtext | a pointer to a DXF MTEXT entity. |
Definition at line 3083 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mtext_struct::p1, and dxf_point_struct::z0.
Set the Z-value of the direction vector z1
of a DXF MTEXT
entity.
mtext
when successful, or NULL
when an error occurred. mtext | a pointer to a DXF MTEXT entity. |
z1 | the Z-value of the direction vector z1 of a DXF MTEXT entity. |
Definition at line 3123 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mtext_struct::p1, and dxf_point_struct::z0.
double dxf_mtext_get_height | ( | DxfMtext * | mtext | ) |
Get the nominal (initial) text height
of a DXF MTEXT
entity.
height
. mtext | a pointer to a DXF MTEXT entity. |
Definition at line 3165 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::height.
Set the nominal (initial) text height
of a DXF MTEXT
entity.
mtext
when successful, or NULL
when an error occurred. mtext | a pointer to a DXF MTEXT entity. |
height | the nominal (initial) text height of a DXF MTEXT entity. |
Definition at line 3204 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::height.
double dxf_mtext_get_rectangle_width | ( | DxfMtext * | mtext | ) |
Get the rectangle_width
of a DXF MTEXT
entity.
rectangle_width
. mtext | a pointer to a DXF MTEXT entity. |
Definition at line 3245 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::rectangle_width.
Set the rectangle_width
of a DXF MTEXT
entity.
mtext
when successful, or NULL
when an error occurred. mtext | a pointer to a DXF MTEXT entity. |
rectangle_width | the rectangle_width of a DXF MTEXT entity. |
Definition at line 3284 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::rectangle_width.
double dxf_mtext_get_horizontal_width | ( | DxfMtext * | mtext | ) |
Get the horizontal_width
of a DXF MTEXT
entity.
horizontal_width
. mtext | a pointer to a DXF MTEXT entity. |
Definition at line 3323 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::horizontal_width.
Set the horizontal_width
of a DXF MTEXT
entity.
mtext
when successful, or NULL
when an error occurred. mtext | a pointer to a DXF MTEXT entity. |
horizontal_width | the horizontal_width of a DXF MTEXT entity. |
Definition at line 3361 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::horizontal_width.
double dxf_mtext_get_rectangle_height | ( | DxfMtext * | mtext | ) |
Get the rectangle_height
of a DXF MTEXT
entity.
rectangle_height
. mtext | a pointer to a DXF MTEXT entity. |
Definition at line 3400 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::rectangle_height.
Set the rectangle_height
of a DXF MTEXT
entity.
mtext
when successful, or NULL
when an error occurred. mtext | a pointer to a DXF MTEXT entity. |
rectangle_height | the rectangle_height of a DXF MTEXT entity. |
Definition at line 3438 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::rectangle_height.
double dxf_mtext_get_spacing_factor | ( | DxfMtext * | mtext | ) |
Get the spacing_factor
of a DXF MTEXT
entity.
spacing_factor
. mtext | a pointer to a DXF MTEXT entity. |
Definition at line 3477 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::spacing_factor.
Set the spacing_factor
of a DXF MTEXT
entity.
mtext
when successful, or NULL
when an error occurred. mtext | a pointer to a DXF MTEXT entity. |
spacing_factor | the spacing_factor of a DXF MTEXT entity. |
Definition at line 3515 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::spacing_factor.
double dxf_mtext_get_box_scale | ( | DxfMtext * | mtext | ) |
Get the box_scale
of a DXF MTEXT
entity.
box_scale
. mtext | a pointer to a DXF MTEXT entity. |
Definition at line 3554 of file mtext.c.
References _, dxf_mtext_struct::box_scale, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Set the box_scale
of a DXF MTEXT
entity.
mtext
when successful, or NULL
when an error occurred. mtext | a pointer to a DXF MTEXT entity. |
box_scale | the box_scale of a DXF MTEXT entity. |
Definition at line 3592 of file mtext.c.
References _, dxf_mtext_struct::box_scale, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
double dxf_mtext_get_column_width | ( | DxfMtext * | mtext | ) |
Get the column_width
of a DXF MTEXT
entity.
column_width
. mtext | a pointer to a DXF MTEXT entity. |
Definition at line 3631 of file mtext.c.
References _, dxf_mtext_struct::column_width, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Set the column_width
of a DXF MTEXT
entity.
mtext
when successful, or NULL
when an error occurred. mtext | a pointer to a DXF MTEXT entity. |
column_width | the column_width of a DXF MTEXT entity. |
Definition at line 3669 of file mtext.c.
References _, dxf_mtext_struct::column_width, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
double dxf_mtext_get_column_gutter | ( | DxfMtext * | mtext | ) |
Get the column_gutter
of a DXF MTEXT
entity.
column_width
. mtext | a pointer to a DXF MTEXT entity. |
Definition at line 3708 of file mtext.c.
References _, dxf_mtext_struct::column_gutter, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Set the column_gutter
of a DXF MTEXT
entity.
mtext
when successful, or NULL
when an error occurred. mtext | a pointer to a DXF MTEXT entity. |
column_gutter | the column_gutter of a DXF MTEXT entity. |
Definition at line 3746 of file mtext.c.
References _, dxf_mtext_struct::column_gutter, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
double dxf_mtext_get_column_heights | ( | DxfMtext * | mtext | ) |
Get the column_heights
of a DXF MTEXT
entity.
column_heights
. mtext | a pointer to a DXF MTEXT entity. |
Definition at line 3785 of file mtext.c.
References _, dxf_mtext_struct::column_heights, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Set the column_heights
of a DXF MTEXT
entity.
mtext
when successful, or NULL
when an error occurred. mtext | a pointer to a DXF MTEXT entity. |
column_heights | the column_heights of a DXF MTEXT entity. |
Definition at line 3823 of file mtext.c.
References _, dxf_mtext_struct::column_heights, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
double dxf_mtext_get_rot_angle | ( | DxfMtext * | mtext | ) |
Get the rot_angle
of a DXF MTEXT
entity.
rot_angle
. mtext | a pointer to a DXF MTEXT entity. |
Definition at line 3862 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::rot_angle.
Set the rot_angle
of a DXF MTEXT
entity.
mtext
when successful, or NULL
when an error occurred. mtext | a pointer to a DXF MTEXT entity. |
rot_angle | the rot_angle of a DXF MTEXT entity. |
Definition at line 3894 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::rot_angle.
int dxf_mtext_get_background_color | ( | DxfMtext * | mtext | ) |
Get the background_color
from a DXF MTEXT
entity.
background_color
. mtext | a pointer to a DXF MTEXT entity. |
Definition at line 3927 of file mtext.c.
References _, dxf_mtext_struct::background_color, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Set the background_color
for a DXF MTEXT
entity.
mtext | a pointer to a DXF MTEXT entity. |
background_color | the background_color to be set for the entity. |
Definition at line 3961 of file mtext.c.
References _, dxf_mtext_struct::background_color, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
int dxf_mtext_get_attachment_point | ( | DxfMtext * | mtext | ) |
Get the attachment_point
from a DXF MTEXT
entity.
attachment_point
. mtext | a pointer to a DXF MTEXT entity. |
Definition at line 4000 of file mtext.c.
References _, dxf_mtext_struct::attachment_point, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Set the attachment_point
for a DXF MTEXT
entity.
mtext | a pointer to a DXF MTEXT entity. |
attachment_point | the attachment_point to be set for the entity. |
Definition at line 4040 of file mtext.c.
References _, dxf_mtext_struct::attachment_point, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
int dxf_mtext_get_drawing_direction | ( | DxfMtext * | mtext | ) |
Get the drawing_direction
from a DXF MTEXT
entity.
drawing_direction
. mtext | a pointer to a DXF MTEXT entity. |
Definition at line 4085 of file mtext.c.
References _, dxf_mtext_struct::drawing_direction, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Set the drawing_direction
for a DXF MTEXT
entity.
mtext | a pointer to a DXF MTEXT entity. |
drawing_direction | the drawing_direction to be set for the entity. |
Definition at line 4125 of file mtext.c.
References _, dxf_mtext_struct::drawing_direction, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
int dxf_mtext_get_spacing_style | ( | DxfMtext * | mtext | ) |
Get the spacing_style
from a DXF MTEXT
entity.
spacing_style
. mtext | a pointer to a DXF MTEXT entity. |
Definition at line 4170 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::spacing_style.
Set the spacing_style
for a DXF MTEXT
entity.
mtext | a pointer to a DXF MTEXT entity. |
spacing_style | the spacing_style to be set for the entity. |
Definition at line 4210 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::spacing_style.
int dxf_mtext_get_column_type | ( | DxfMtext * | mtext | ) |
Get the column_type
from a DXF MTEXT
entity.
column_type
. mtext | a pointer to a DXF MTEXT entity. |
Definition at line 4255 of file mtext.c.
References _, dxf_mtext_struct::column_type, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Set the column_type
for a DXF MTEXT
entity.
mtext | a pointer to a DXF MTEXT entity. |
column_type | the column_type to be set for the entity. |
Definition at line 4289 of file mtext.c.
References _, dxf_mtext_struct::column_type, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
int dxf_mtext_get_column_count | ( | DxfMtext * | mtext | ) |
Get the column_count
from a DXF MTEXT
entity.
column_count
. mtext | a pointer to a DXF MTEXT entity. |
Definition at line 4328 of file mtext.c.
References _, dxf_mtext_struct::column_count, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Set the column_count
for a DXF MTEXT
entity.
mtext | a pointer to a DXF MTEXT entity. |
column_count | the column_count to be set for the entity. |
Definition at line 4362 of file mtext.c.
References _, dxf_mtext_struct::column_count, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
int dxf_mtext_get_column_flow | ( | DxfMtext * | mtext | ) |
Get the column_flow
from a DXF MTEXT
entity.
column_flow
. mtext | a pointer to a DXF MTEXT entity. |
Definition at line 4401 of file mtext.c.
References _, dxf_mtext_struct::column_flow, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Set the column_flow
for a DXF MTEXT
entity.
mtext | a pointer to a DXF MTEXT entity. |
column_flow | the column_flow to be set for the entity. |
Definition at line 4435 of file mtext.c.
References _, dxf_mtext_struct::column_flow, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
int dxf_mtext_get_column_autoheight | ( | DxfMtext * | mtext | ) |
Get the column_autoheight
from a DXF MTEXT
entity.
column_autoheight
. mtext | a pointer to a DXF MTEXT entity. |
Definition at line 4474 of file mtext.c.
References _, dxf_mtext_struct::column_autoheight, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Set the column_autoheight
for a DXF MTEXT
entity.
mtext | a pointer to a DXF MTEXT entity. |
column_autoheight | the column_autoheight to be set for the entity. |
Definition at line 4508 of file mtext.c.
References _, dxf_mtext_struct::column_autoheight, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
int dxf_mtext_get_background_fill | ( | DxfMtext * | mtext | ) |
Get the background_fill
from a DXF MTEXT
entity.
background_fill
. mtext | a pointer to a DXF MTEXT entity. |
Definition at line 4547 of file mtext.c.
References _, dxf_mtext_struct::background_fill, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Set the background_fill
for a DXF MTEXT
entity.
mtext | a pointer to a DXF MTEXT entity. |
background_fill | the background_fill to be set for the entity. |
Definition at line 4587 of file mtext.c.
References _, dxf_mtext_struct::background_fill, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
double dxf_mtext_get_extr_x0 | ( | DxfMtext * | mtext | ) |
Get the X-value of the extrusion vector extr_x0
of a DXF MTEXT
entity.
extr_x0
. mtext | a pointer to a DXF MTEXT entity. |
Definition at line 4633 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::extr_x0.
Set the X-value of the extrusion vector extr_x0
of a DXF MTEXT
entity.
mtext
when successful, or NULL
when an error occurred. mtext | a pointer to a DXF MTEXT entity. |
extr_x0 | the X-value of the extrusion vector extr_x0 of a DXF MTEXT entity. |
Definition at line 4666 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::extr_x0.
double dxf_mtext_get_extr_y0 | ( | DxfMtext * | mtext | ) |
Get the Y-value of the extrusion vector extr_y0
of a DXF MTEXT
entity.
extr_y0
. mtext | a pointer to a DXF MTEXT entity. |
Definition at line 4701 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::extr_y0.
Set the Y-value of the extrusion vector extr_y0
of a DXF MTEXT
entity.
mtext
when successful, or NULL
when an error occurred. mtext | a pointer to a DXF MTEXT entity. |
extr_y0 | the Y-value of the extrusion vector extr_y0 of a DXF MTEXT entity. |
Definition at line 4734 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::extr_y0.
double dxf_mtext_get_extr_z0 | ( | DxfMtext * | mtext | ) |
Get the Z-value of the extrusion vector extr_z0
of a DXF MTEXT
entity.
extr_z0
. mtext | a pointer to a DXF MTEXT entity. |
Definition at line 4769 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::extr_z0.
Set the Z-value of the extrusion vector extr_z0
of a DXF MTEXT
entity.
mtext
when successful, or NULL
when an error occurred. mtext | a pointer to a DXF MTEXT entity. |
extr_z0 | the Z-value of the extrusion vector extr_z0 of a DXF MTEXT entity. |
Definition at line 4802 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::extr_z0.
Set the extrusion vector from a DXF POINT
for a DXF MTEXT
entity.
mtext | a pointer to a DXF MTEXT entity. |
point | a pointer to a DXF POINT entity. |
Definition at line 4835 of file mtext.c.
References _, DEBUG, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mtext_struct::extr_x0, dxf_mtext_struct::extr_y0, dxf_mtext_struct::extr_z0, dxf_point_struct::x0, dxf_point_struct::y0, and dxf_point_struct::z0.
DxfMtext* dxf_mtext_set_extrusion_vector | ( | DxfMtext * | mtext, |
double | extr_x0, | ||
double | extr_y0, | ||
double | extr_z0 | ||
) |
Set the extrusion vector for a DXF MTEXT
entity.
mtext | a pointer to a DXF MTEXT entity. |
extr_x0 | X-value of the extrusion direction. |
extr_y0 | Y-value of the extrusion direction. |
extr_z0 | Z-value of the extrusion direction. |
Definition at line 4875 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_mtext_struct::extr_x0, dxf_mtext_struct::extr_y0, and dxf_mtext_struct::extr_z0.
int32_t dxf_mtext_get_background_color_rgb | ( | DxfMtext * | mtext | ) |
Get the background_color_rgb
from a DXF MTEXT
entity.
background_color_rgb
. mtext | a pointer to a DXF MTEXT entity. |
Definition at line 4914 of file mtext.c.
References _, dxf_mtext_struct::background_color_rgb, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Set the background_color_rgb
for a DXF MTEXT
entity.
mtext | a pointer to a DXF MTEXT entity. |
background_color_rgb | the background_color_rgb to be set for the entity. |
Definition at line 4942 of file mtext.c.
References _, dxf_mtext_struct::background_color_rgb, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
char* dxf_mtext_get_background_color_name | ( | DxfMtext * | mtext | ) |
Get the background_color_name
from a DXF MTEXT
entity.
background_color_name
when sucessful, or NULL
when an error occurred. mtext | a pointer to a DXF MTEXT entity. |
Definition at line 4976 of file mtext.c.
References _, dxf_mtext_struct::background_color_name, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Set the background_color_name
for a DXF MTEXT
entity.
mtext
when successful, or NULL
when an error occurred. mtext | a pointer to a DXF MTEXT entity. |
background_color_name | a string containing the color_name for the entity. |
Definition at line 5014 of file mtext.c.
References _, dxf_mtext_struct::background_color_name, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
int32_t dxf_mtext_get_background_transparency | ( | DxfMtext * | mtext | ) |
Get the background_transparency
from a DXF MTEXT
entity.
background_transparency
. mtext | a pointer to a DXF MTEXT entity. |
Definition at line 5055 of file mtext.c.
References _, dxf_mtext_struct::background_transparency, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
DxfMtext* dxf_mtext_set_background_transparency | ( | DxfMtext * | mtext, |
int32_t | background_transparency | ||
) |
Set the background_transparency
for a DXF MTEXT
entity.
mtext | a pointer to a DXF MTEXT entity. |
background_transparency | the background_transparency to be set for the entity. |
Definition at line 5083 of file mtext.c.
References _, dxf_mtext_struct::background_transparency, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.
Get the pointer to the next MTEXT
entity from a DXF MTEXT
entity.
MTEXT
entity.mtext | a pointer to a DXF MTEXT entity. |
Definition at line 5120 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::next.
Set the pointer to the next MTEXT
for a DXF MTEXT
entity.
mtext | a pointer to a DXF MTEXT entity. |
next | a pointer to the next MTEXT for the entity. |
Definition at line 5156 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::next.
Get the pointer to the last MTEXT
entity from a linked list of DXF MTEXT
entities.
MTEXT
entity.mtext | a pointer to a DXF MTEXT entity. |
Definition at line 5199 of file mtext.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_mtext_struct::next.