libDXF 0.0.1
A library with DXF related functions written in C.
Data Structures | Typedefs | Functions

leader.h File Reference

Definition of a DXF leader entity (LEADER). More...

#include "global.h"
#include "point.h"
Include dependency graph for leader.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  dxf_leader_struct
 DXF definition of an AutoCAD leader entity (LEADER). More...

Typedefs

typedef struct dxf_leader_struct DxfLeader
 DXF definition of an AutoCAD leader entity (LEADER).

Functions

DxfLeaderdxf_leader_new ()
 Allocate memory for a DXF LEADER.
DxfLeaderdxf_leader_init (DxfLeader *leader)
 Allocate memory and initialize data fields in a DXF LEADER entity.
DxfLeaderdxf_leader_read (DxfFile *fp, DxfLeader *leader)
 Read data from a DXF file into a DXF LEADER entity.
int dxf_leader_write (DxfFile *fp, DxfLeader *leader)
 Write DXF output to a file for a DXF LEADER entity.
int dxf_leader_free (DxfLeader *leader)
 Free the allocated memory for a DXF LEADER and all it's data fields.
void dxf_leader_free_chain (DxfLeader *leaders)
 Free the allocated memory for a chain of DXF LEADER entities and all their data fields.
int dxf_leader_get_id_code (DxfLeader *leader)
 Get the ID code from a DXF LEADER entity.
DxfLeaderdxf_leader_set_id_code (DxfLeader *leader, int id_code)
 Set the ID code for a DXF LEADER entity.
char * dxf_leader_get_linetype (DxfLeader *leader)
 Get the linetype from a DXF LEADER entity.
DxfLeaderdxf_leader_set_linetype (DxfLeader *leader, char *linetype)
 Set the linetype for a DXF LEADER entity.
char * dxf_leader_get_layer (DxfLeader *leader)
 Get the layer from a DXF LEADER entity.
DxfLeaderdxf_leader_set_layer (DxfLeader *leader, char *layer)
 Set the layer for a DXF LEADER entity.
double dxf_leader_get_elevation (DxfLeader *leader)
 Get the elevation from a DXF LEADER entity.
DxfLeaderdxf_leader_set_elevation (DxfLeader *leader, double elevation)
 Set the elevation for a DXF LEADER entity.
double dxf_leader_get_thickness (DxfLeader *leader)
 Get the thickness from a DXF LEADER entity.
DxfLeaderdxf_leader_set_thickness (DxfLeader *leader, double thickness)
 Set the thickness for a DXF LEADER entity.
double dxf_leader_get_linetype_scale (DxfLeader *leader)
 Get the linetype scale from a DXF LEADER entity.
DxfLeaderdxf_leader_set_linetype_scale (DxfLeader *leader, double linetype_scale)
 Set the linetype scale for a DXF LEADER entity.
int16_t dxf_leader_get_visibility (DxfLeader *leader)
 Get the visibility from a DXF LEADER entity.
DxfLeaderdxf_leader_set_visibility (DxfLeader *leader, int16_t visibility)
 Set the visibility for a DXF LEADER entity.
int dxf_leader_get_color (DxfLeader *leader)
 Get the color from a DXF LEADER entity.
DxfLeaderdxf_leader_set_color (DxfLeader *leader, int color)
 Set the color for a DXF LEADER entity.
int dxf_leader_get_paperspace (DxfLeader *leader)
 Get the paperspace flag value from a DXF LEADER entity.
DxfLeaderdxf_leader_set_paperspace (DxfLeader *leader, int paperspace)
 Set the paperspace flag for a DXF LEADER entity.
char * dxf_leader_get_dictionary_owner_soft (DxfLeader *leader)
 Get the soft pointer to the dictionary owner from a DXF LEADER entity.
DxfLeaderdxf_leader_set_dictionary_owner_soft (DxfLeader *leader, char *dictionary_owner_soft)
 Set the pointer to the dictionary_owner_soft for a DXF LEADER entity.
char * dxf_leader_get_dictionary_owner_hard (DxfLeader *leader)
 Get the hard pointer to the dictionary owner from a DXF LEADER entity.
DxfLeaderdxf_leader_set_dictionary_owner_hard (DxfLeader *leader, char *dictionary_owner_hard)
 Set the pointer to the dictionary_owner_hard for a DXF LEADER entity.
char * dxf_leader_get_dimension_style_name (DxfLeader *leader)
 Get the dimenion_style_name from a DXF LEADER entity.
DxfLeaderdxf_leader_set_dimension_style_name (DxfLeader *leader, char *dimension_style_name)
 Set the dimension_style_name for a DXF LEADER entity.
DxfPointdxf_leader_get_p0 (DxfLeader *leader)
 Get the vertex coordinates p0 of a DXF LEADER entity.
DxfLeaderdxf_leader_set_p0 (DxfLeader *leader, DxfPoint *p0)
 Set the vertex coordinates p0 of a DXF LEADER entity.
double dxf_leader_get_x0 (DxfLeader *leader)
 Get the X-value of the vertex coordinates x0 of a DXF LEADER entity.
DxfLeaderdxf_leader_set_x0 (DxfLeader *leader, double x0)
 Set the X-value of the vertex coordinates x0 of a DXF LEADER entity.
double dxf_leader_get_y0 (DxfLeader *leader)
 Get the Y-value of the vertex coordinates y0 of a DXF LEADER entity.
DxfLeaderdxf_leader_set_y0 (DxfLeader *leader, double y0)
 Set the Y-value of the vertex coordinates y0 of a DXF LEADER entity.
double dxf_leader_get_z0 (DxfLeader *leader)
 Get the Z-value of the vertex coordinates z0 of a DXF LEADER entity.
DxfLeaderdxf_leader_set_z0 (DxfLeader *leader, double z0)
 Set the Z-value of the vertex coordinates z0 of a DXF LEADER entity.
double dxf_leader_get_text_annotation_height (DxfLeader *leader)
 Get the text_annotation_height of a DXF LEADER entity.
DxfLeaderdxf_leader_set_text_annotation_height (DxfLeader *leader, double text_annotation_height)
 Set the text_annotation_height of a DXF LEADER entity.
double dxf_leader_get_text_annotation_width (DxfLeader *leader)
 Get the text_annotation_width of a DXF LEADER entity.
DxfLeaderdxf_leader_set_text_annotation_width (DxfLeader *leader, double text_annotation_width)
 Set the text_annotation_width of a DXF LEADER entity.
int dxf_leader_get_arrow_head_flag (DxfLeader *leader)
 Get the arrow_head_flag from a DXF LEADER entity.
DxfLeaderdxf_leader_set_arrow_head_flag (DxfLeader *leader, int arrow_head_flag)
 Set the arrow_head_flag for a DXF LEADER entity.
int dxf_leader_get_path_type (DxfLeader *leader)
 Get the path_type from a DXF LEADER entity.
DxfLeaderdxf_leader_set_path_type (DxfLeader *leader, int path_type)
 Set the path_type for a DXF LEADER entity.
int dxf_leader_get_creation_flag (DxfLeader *leader)
 Get the creation_flag from a DXF LEADER entity.
DxfLeaderdxf_leader_set_creation_flag (DxfLeader *leader, int creation_flag)
 Set the creation_flag for a DXF LEADER entity.
int dxf_leader_get_hookline_direction_flag (DxfLeader *leader)
 Get the hookline_direction_flag from a DXF LEADER entity.
DxfLeaderdxf_leader_set_hookline_direction_flag (DxfLeader *leader, int hookline_direction_flag)
 Set the hookline_direction_flag for a DXF LEADER entity.
int dxf_leader_get_hookline_flag (DxfLeader *leader)
 Get the hookline_flag from a DXF LEADER entity.
DxfLeaderdxf_leader_set_hookline_flag (DxfLeader *leader, int hookline_flag)
 Set the hookline_flag for a DXF LEADER entity.
int dxf_leader_get_number_vertices (DxfLeader *leader)
 Get the number_vertices from a DXF LEADER entity.
DxfLeaderdxf_leader_set_number_vertices (DxfLeader *leader, int number_vertices)
 Set the number_vertices for a DXF LEADER entity.
int dxf_leader_get_leader_color (DxfLeader *leader)
 Get the leader_color from a DXF LEADER entity.
DxfLeaderdxf_leader_set_leader_color (DxfLeader *leader, int leader_color)
 Set the leader_color for a DXF LEADER entity.
double dxf_leader_get_extr_x0 (DxfLeader *leader)
 Get the X-value of the extrusion vector extr_x0 of a DXF LEADER entity.
DxfLeaderdxf_leader_set_extr_x0 (DxfLeader *leader, double extr_x0)
 Set the X-value of the extrusion vector extr_x0 of a DXF LEADER entity.
double dxf_leader_get_extr_y0 (DxfLeader *leader)
 Get the Y-value of the extrusion vector extr_y0 of a DXF LEADER entity.
DxfLeaderdxf_leader_set_extr_y0 (DxfLeader *leader, double extr_y0)
 Set the Y-value of the extrusion vector extr_y0 of a DXF LEADER entity.
double dxf_leader_get_extr_z0 (DxfLeader *leader)
 Get the Z-value of the extrusion vector extr_z0 of a DXF LEADER entity.
DxfLeaderdxf_leader_set_extr_z0 (DxfLeader *leader, double extr_z0)
 Set the Z-value of the extrusion vector extr_z0 of a DXF LEADER entity.
DxfPointdxf_leader_get_p1 (DxfLeader *leader)
 Get the "Horizontal" direction for leader p1 of a DXF LEADER entity.
DxfLeaderdxf_leader_set_p1 (DxfLeader *leader, DxfPoint *p1)
 Set the "Horizontal" direction for leader p1 of a DXF LEADER entity.
double dxf_leader_get_x1 (DxfLeader *leader)
 Get the X-value of the "Horizontal" direction for leader x1 of a DXF LEADER entity.
DxfLeaderdxf_leader_set_x1 (DxfLeader *leader, double x1)
 Set the X-value of the "Horizontal" direction for leader x1 of a DXF LEADER entity.
double dxf_leader_get_y1 (DxfLeader *leader)
 Get the Y-value of the "Horizontal" direction for leader y1 of a DXF LEADER entity.
DxfLeaderdxf_leader_set_y1 (DxfLeader *leader, double y1)
 Set the Y-value of the "Horizontal" direction for leader y1 of a DXF LEADER entity.
double dxf_leader_get_z1 (DxfLeader *leader)
 Get the Z-value of the "Horizontal" direction for leader z1 of a DXF LEADER entity.
DxfLeaderdxf_leader_set_z1 (DxfLeader *leader, double z1)
 Set the Z-value of the "Horizontal" direction for leader z1 of a DXF LEADER entity.
DxfPointdxf_leader_get_p2 (DxfLeader *leader)
 Get the Block reference insertion point offset from the last leader vertex p2 of a DXF LEADER entity.
DxfLeaderdxf_leader_set_p2 (DxfLeader *leader, DxfPoint *p2)
 Set the Block reference insertion point offset from the last leader vertex p2 of a DXF LEADER entity.
double dxf_leader_get_x2 (DxfLeader *leader)
 Get the X-value of the Block reference insertion point offset from the last leader vertex x2 of a DXF LEADER entity.
DxfLeaderdxf_leader_set_x2 (DxfLeader *leader, double x2)
 Set the X-value of the Block reference insertion point offset from the last leader vertex x2 of a DXF LEADER entity.
double dxf_leader_get_y2 (DxfLeader *leader)
 Get the Y-value of the Block reference insertion point offset from the last leader vertex y2 of a DXF LEADER entity.
DxfLeaderdxf_leader_set_y2 (DxfLeader *leader, double y2)
 Set the Y-value of the Block reference insertion point offset from the last leader vertex y2 of a DXF LEADER entity.
double dxf_leader_get_z2 (DxfLeader *leader)
 Get the Z-value of the Block reference insertion point offset from the last leader vertex z2 of a DXF LEADER entity.
DxfLeaderdxf_leader_set_z2 (DxfLeader *leader, double z2)
 Set the Z-value of the Block reference insertion point offset from the last leader vertex z2 of a DXF LEADER entity.
DxfPointdxf_leader_get_p3 (DxfLeader *leader)
 Get the Annotation placement point offset from last leader vertex p3 of a DXF LEADER entity.
DxfLeaderdxf_leader_set_p3 (DxfLeader *leader, DxfPoint *p3)
 Set the Annotation placement point offset from last leader vertex p2 of a DXF LEADER entity.
double dxf_leader_get_x3 (DxfLeader *leader)
 Get the X-value of the Annotation placement point offset from the last leader vertex x3 of a DXF LEADER entity.
DxfLeaderdxf_leader_set_x3 (DxfLeader *leader, double x3)
 Set the X-value of the Annotation placement point offset from the last leader vertex x3 of a DXF LEADER entity.
double dxf_leader_get_y3 (DxfLeader *leader)
 Get the Y-value of the Annotation placement point offset from the last leader vertex y3 of a DXF LEADER entity.
DxfLeaderdxf_leader_set_y3 (DxfLeader *leader, double y3)
 Set the Y-value of the Annotation placement point offset from the last leader vertex y3 of a DXF LEADER entity.
double dxf_leader_get_z3 (DxfLeader *leader)
 Get the Z-value of the Annotation placement point offset from the last leader vertex z3 of a DXF LEADER entity.
DxfLeaderdxf_leader_set_z3 (DxfLeader *leader, double z3)
 Set the Z-value of the Annotation placement point offset from the last leader vertex z3 of a DXF LEADER entity.
char * dxf_leader_get_annotation_reference_hard (DxfLeader *leader)
 Get the annotation_reference_hard from a DXF LEADER entity.
DxfLeaderdxf_leader_set_annotation_reference_hard (DxfLeader *leader, char *annotation_reference_hard)
 Set the pointer to the annotation_reference_hard for a DXF LEADER entity.
DxfLeaderdxf_leader_get_next (DxfLeader *leader)
 Get the pointer to the next LEADER entity from a DXF LEADER entity.
DxfLeaderdxf_leader_set_next (DxfLeader *leader, DxfLeader *next)
 Set the pointer to the next LEADER for a DXF LEADER entity.
DxfLeaderdxf_leader_get_last (DxfLeader *leader)
 Get the pointer to the last LEADER entity from a linked list of DXF LEADER entities.

Detailed Description

Definition of a DXF leader entity (LEADER).

Author:
Copyright (C) 2015, 2016, 2017 by Bert Timmerman <bert.timmerman@xs4all.nl>.
Since:
The LEADER entity was introduced in DXF R13.
Version:
According to DXF R10 (backward compatibility).
According to DXF R11 (backward compatibility).
According to DXF R12 (backward compatibility).
According to DXF R13.
According to DXF R14.

Copyright Notices.


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 leader.h.


Typedef Documentation

typedef struct dxf_leader_struct DxfLeader

DXF definition of an AutoCAD leader entity (LEADER).


Function Documentation

DxfLeader* dxf_leader_new ( )

Allocate memory for a DXF LEADER.

Fill the memory contents with zeros.

Returns:
NULL when no memory was allocated, a pointer to the allocated memory when succesful.

Definition at line 55 of file leader.c.

References _, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_leader_init(), and dxf_leader_read().

DxfLeader* dxf_leader_init ( DxfLeader leader)

Allocate memory and initialize data fields in a DXF LEADER entity.

Returns:
NULL when no memory was allocated, a pointer to the allocated memory when succesful.
Parameters:
leaderpointer to a DXF LEADER entity.

Definition at line 93 of file leader.c.

References _, dxf_leader_struct::annotation_reference_hard, dxf_leader_struct::arrow_head_flag, dxf_leader_struct::color, dxf_leader_struct::creation_flag, dxf_leader_struct::dictionary_owner_hard, dxf_leader_struct::dictionary_owner_soft, dxf_leader_struct::dimension_style_name, DXF_COLOR_BYLAYER, DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_DEFAULT_LAYER, DXF_DEFAULT_LINETYPE, DXF_DEFAULT_LINETYPE_SCALE, DXF_DEFAULT_VISIBILITY, dxf_leader_new(), DXF_MODELSPACE, dxf_point_new(), dxf_leader_struct::elevation, dxf_leader_struct::extr_x0, dxf_leader_struct::extr_y0, dxf_leader_struct::extr_z0, dxf_leader_struct::hookline_direction_flag, dxf_leader_struct::hookline_flag, dxf_leader_struct::id_code, dxf_leader_struct::layer, dxf_leader_struct::leader_color, dxf_leader_struct::linetype, dxf_leader_struct::linetype_scale, dxf_leader_struct::next, dxf_leader_struct::number_vertices, dxf_leader_struct::p0, dxf_leader_struct::p1, dxf_leader_struct::p2, dxf_leader_struct::p3, dxf_leader_struct::paperspace, dxf_leader_struct::path_type, dxf_leader_struct::text_annotation_height, dxf_leader_struct::text_annotation_width, dxf_leader_struct::thickness, dxf_leader_struct::visibility, dxf_point_struct::x0, dxf_point_struct::y0, and dxf_point_struct::z0.

Referenced by dxf_leader_read().

Here is the call graph for this function:

DxfLeader* dxf_leader_read ( DxfFile fp,
DxfLeader leader 
)

Read data from a DXF file into a DXF LEADER entity.

The last line read from file contained the string "LEADER".
Now follows some data for the LEADER, 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 leader.

Returns:
a pointer to leader.
Parameters:
fpDXF file pointer to an input file (or device).
leaderPointer to a DXF LEADER entity.

Definition at line 178 of file leader.c.

References _, dxf_file_struct::acad_version_number, dxf_leader_struct::annotation_reference_hard, dxf_leader_struct::arrow_head_flag, AutoCAD_11, AutoCAD_13, dxf_leader_struct::color, dxf_leader_struct::creation_flag, dxf_leader_struct::dictionary_owner_hard, dxf_leader_struct::dictionary_owner_soft, dxf_leader_struct::dimension_style_name, DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_DEFAULT_LAYER, DXF_DEFAULT_LINETYPE, DXF_FLATLAND, dxf_leader_init(), dxf_leader_new(), dxf_point_init(), dxf_leader_struct::elevation, dxf_leader_struct::extr_x0, dxf_leader_struct::extr_y0, dxf_leader_struct::extr_z0, dxf_file_struct::filename, dxf_file_struct::fp, dxf_leader_struct::hookline_direction_flag, dxf_leader_struct::hookline_flag, dxf_leader_struct::id_code, dxf_leader_struct::layer, dxf_leader_struct::leader_color, dxf_file_struct::line_number, dxf_leader_struct::linetype, dxf_leader_struct::linetype_scale, dxf_point_struct::next, dxf_leader_struct::number_vertices, dxf_leader_struct::p0, dxf_leader_struct::p1, dxf_leader_struct::p2, dxf_leader_struct::p3, dxf_leader_struct::paperspace, dxf_leader_struct::path_type, dxf_leader_struct::text_annotation_height, dxf_leader_struct::text_annotation_width, dxf_leader_struct::thickness, dxf_leader_struct::visibility, dxf_point_struct::x0, dxf_point_struct::y0, and dxf_point_struct::z0.

Here is the call graph for this function:

int dxf_leader_write ( DxfFile fp,
DxfLeader leader 
)

Write DXF output to a file for a DXF LEADER entity.

Returns:
EXIT_SUCCESS when done, or EXIT_FAILURE when an error occurred.

Todo:
for version R14.
Implementing the start of application-defined group "{application_name", with Group code 102.
For example: "{ACAD_REACTORS" indicates the start of the AutoCAD persistent reactors group.

application-defined codes: Group codes and values within the 102 groups are application defined (optional).

End of group, "}" (optional), with Group code 102.
Todo:
Xdata belonging to the application ID "ACAD" may follow.
This describes any dimension overrides that have been applied to this entity.

Parameters:
fpDXF file pointer to an output file (or device).
leaderDXF LEADER entity.

Definition at line 575 of file leader.c.

References _, dxf_file_struct::acad_version_number, dxf_leader_struct::annotation_reference_hard, dxf_leader_struct::arrow_head_flag, AutoCAD_11, AutoCAD_13, AutoCAD_14, dxf_leader_struct::color, dxf_leader_struct::creation_flag, dxf_leader_struct::dictionary_owner_hard, dxf_leader_struct::dictionary_owner_soft, dxf_leader_struct::dimension_style_name, DXF_COLOR_BYLAYER, DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_DEFAULT_LAYER, DXF_DEFAULT_LINETYPE, DXF_FLATLAND, DXF_PAPERSPACE, dxf_leader_struct::elevation, dxf_leader_struct::extr_x0, dxf_leader_struct::extr_y0, dxf_leader_struct::extr_z0, dxf_file_struct::fp, dxf_leader_struct::hookline_direction_flag, dxf_leader_struct::hookline_flag, dxf_leader_struct::id_code, dxf_leader_struct::layer, dxf_leader_struct::leader_color, dxf_leader_struct::linetype, dxf_leader_struct::linetype_scale, dxf_point_struct::next, dxf_leader_struct::number_vertices, dxf_leader_struct::p0, dxf_leader_struct::p1, dxf_leader_struct::p2, dxf_leader_struct::p3, dxf_leader_struct::paperspace, dxf_leader_struct::path_type, dxf_leader_struct::text_annotation_height, dxf_leader_struct::text_annotation_width, dxf_leader_struct::thickness, dxf_leader_struct::visibility, dxf_point_struct::x0, dxf_point_struct::y0, and dxf_point_struct::z0.

int dxf_leader_free ( DxfLeader leader)

Free the allocated memory for a DXF LEADER and all it's data fields.

Returns:
EXIT_SUCCESS when done, or EXIT_FAILURE when an error occurred.
Parameters:
leaderPointer to the memory occupied by the DXF LEADER entity.

Definition at line 772 of file leader.c.

References _, dxf_leader_struct::annotation_reference_hard, dxf_leader_struct::dictionary_owner_hard, dxf_leader_struct::dictionary_owner_soft, dxf_leader_struct::dimension_style_name, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_leader_struct::layer, dxf_leader_struct::linetype, and dxf_leader_struct::next.

Referenced by dxf_leader_free_chain().

void dxf_leader_free_chain ( DxfLeader leaders)

Free the allocated memory for a chain of DXF LEADER entities and all their data fields.

Parameters:
leaderspointer to the chain of DXF LEADER entities.

Definition at line 817 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_leader_free(), and dxf_leader_struct::next.

Here is the call graph for this function:

int dxf_leader_get_id_code ( DxfLeader leader)

Get the ID code from a DXF LEADER entity.

Returns:
ID code.
Parameters:
leadera pointer to a DXF LEADER entity.

Definition at line 850 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_leader_struct::id_code.

DxfLeader* dxf_leader_set_id_code ( DxfLeader leader,
int  id_code 
)

Set the ID code for a DXF LEADER entity.

Parameters:
leadera pointer to a DXF LEADER entity.
id_codeIdentification number for the entity.
This is to be an unique (sequential) number in the DXF file.

Definition at line 885 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_leader_struct::id_code.

char* dxf_leader_get_linetype ( DxfLeader leader)

Get the linetype from a DXF LEADER entity.

Returns:
linetype when sucessful, NULL when an error occurred.
Parameters:
leadera pointer to a DXF LEADER entity.

Definition at line 927 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_leader_struct::linetype.

DxfLeader* dxf_leader_set_linetype ( DxfLeader leader,
char *  linetype 
)

Set the linetype for a DXF LEADER entity.

Parameters:
leadera pointer to a DXF LEADER entity.
linetypea string containing the linetype for the entity.

Definition at line 962 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_leader_struct::linetype.

char* dxf_leader_get_layer ( DxfLeader leader)

Get the layer from a DXF LEADER entity.

Returns:
layer when sucessful, NULL when an error occurred.
Parameters:
leadera pointer to a DXF LEADER entity.

Definition at line 1002 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_leader_struct::layer.

DxfLeader* dxf_leader_set_layer ( DxfLeader leader,
char *  layer 
)

Set the layer for a DXF LEADER entity.

Parameters:
leadera pointer to a DXF LEADER entity.
layera string containing the layer for the entity.

Definition at line 1037 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_leader_struct::layer.

double dxf_leader_get_elevation ( DxfLeader leader)

Get the elevation from a DXF LEADER entity.

Returns:
elevation.
Parameters:
leadera pointer to a DXF LEADER entity.

Definition at line 1077 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_leader_struct::elevation.

DxfLeader* dxf_leader_set_elevation ( DxfLeader leader,
double  elevation 
)

Set the elevation for a DXF LEADER entity.

Parameters:
leadera pointer to a DXF LEADER entity.
elevationthe elevation to be set for the entity.

Definition at line 1105 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_leader_struct::elevation.

double dxf_leader_get_thickness ( DxfLeader leader)

Get the thickness from a DXF LEADER entity.

Returns:
thickness.
Parameters:
leadera pointer to a DXF LEADER entity.

Definition at line 1138 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_leader_struct::thickness.

DxfLeader* dxf_leader_set_thickness ( DxfLeader leader,
double  thickness 
)

Set the thickness for a DXF LEADER entity.

Parameters:
leadera pointer to a DXF LEADER entity.
thicknessthe thickness to be set for the entity.

Definition at line 1173 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_leader_struct::thickness.

double dxf_leader_get_linetype_scale ( DxfLeader leader)

Get the linetype scale from a DXF LEADER entity.

Returns:
linetype scale.
Parameters:
leadera pointer to a DXF LEADER entity.

Definition at line 1213 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_leader_struct::linetype_scale.

DxfLeader* dxf_leader_set_linetype_scale ( DxfLeader leader,
double  linetype_scale 
)

Set the linetype scale for a DXF LEADER entity.

Parameters:
leadera pointer to a DXF LEADER entity.
linetype_scalethe linetype scale to be set for the entity.

Definition at line 1248 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_leader_struct::linetype_scale.

int16_t dxf_leader_get_visibility ( DxfLeader leader)

Get the visibility from a DXF LEADER entity.

Returns:
visibility.
Parameters:
leadera pointer to a DXF LEADER entity.

Definition at line 1288 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_leader_struct::visibility.

DxfLeader* dxf_leader_set_visibility ( DxfLeader leader,
int16_t  visibility 
)

Set the visibility for a DXF LEADER entity.

Parameters:
leadera pointer to a DXF LEADER entity.
visibilitythe visibility to be set for the entity.

Definition at line 1330 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_leader_struct::visibility.

int dxf_leader_get_color ( DxfLeader leader)

Get the color from a DXF LEADER entity.

Returns:
color.
Parameters:
leadera pointer to a DXF LEADER entity.

Definition at line 1377 of file leader.c.

References _, dxf_leader_struct::color, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

DxfLeader* dxf_leader_set_color ( DxfLeader leader,
int  color 
)

Set the color for a DXF LEADER entity.

Parameters:
leadera pointer to a DXF LEADER entity.
colorthe color to be set for the entity.

Definition at line 1411 of file leader.c.

References _, dxf_leader_struct::color, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

int dxf_leader_get_paperspace ( DxfLeader leader)

Get the paperspace flag value from a DXF LEADER entity.

Returns:
paperspace flag value.
Parameters:
leadera pointer to a DXF LEADER entity.

Definition at line 1450 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_leader_struct::paperspace.

DxfLeader* dxf_leader_set_paperspace ( DxfLeader leader,
int  paperspace 
)

Set the paperspace flag for a DXF LEADER entity.

Parameters:
leadera pointer to a DXF LEADER entity.
paperspacethe paperspace flag value to be set for the entity.

Definition at line 1490 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_leader_struct::paperspace.

char* dxf_leader_get_dictionary_owner_soft ( DxfLeader leader)

Get the soft pointer to the dictionary owner from a DXF LEADER entity.

Returns:
soft pointer to the dictionary owner.
Warning:
No checks are performed on the returned pointer (string).
Parameters:
leadera pointer to a DXF LEADER entity.

Definition at line 1540 of file leader.c.

References _, dxf_leader_struct::dictionary_owner_soft, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

DxfLeader* dxf_leader_set_dictionary_owner_soft ( DxfLeader leader,
char *  dictionary_owner_soft 
)

Set the pointer to the dictionary_owner_soft for a DXF LEADER entity.

Parameters:
leadera pointer to a DXF LEADER entity.
dictionary_owner_softa string containing the pointer to the dictionary_owner_soft for the entity.

Definition at line 1576 of file leader.c.

References _, dxf_leader_struct::dictionary_owner_soft, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

char* dxf_leader_get_dictionary_owner_hard ( DxfLeader leader)

Get the hard pointer to the dictionary owner from a DXF LEADER entity.

Returns:
hard pointer to the dictionary owner.
Warning:
No checks are performed on the returned pointer (string).
Parameters:
leadera pointer to a DXF LEADER entity.

Definition at line 1620 of file leader.c.

References _, dxf_leader_struct::dictionary_owner_hard, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

DxfLeader* dxf_leader_set_dictionary_owner_hard ( DxfLeader leader,
char *  dictionary_owner_hard 
)

Set the pointer to the dictionary_owner_hard for a DXF LEADER entity.

Parameters:
leadera pointer to a DXF LEADER entity.
dictionary_owner_harda string containing the pointer to the dictionary_owner_hard for the entity.

Definition at line 1656 of file leader.c.

References _, dxf_leader_struct::dictionary_owner_hard, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

char* dxf_leader_get_dimension_style_name ( DxfLeader leader)

Get the dimenion_style_name from a DXF LEADER entity.

Returns:
dimension_style_name when sucessful, NULL when an error occurred.
Parameters:
leadera pointer to a DXF LEADER entity.

Definition at line 1698 of file leader.c.

References _, dxf_leader_struct::dimension_style_name, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

DxfLeader* dxf_leader_set_dimension_style_name ( DxfLeader leader,
char *  dimension_style_name 
)

Set the dimension_style_name for a DXF LEADER entity.

Parameters:
leadera pointer to a DXF LEADER entity.
dimension_style_namea string containing the dimension_style_name for the entity.

Definition at line 1733 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_leader_struct::layer.

DxfPoint* dxf_leader_get_p0 ( DxfLeader leader)

Get the vertex coordinates p0 of a DXF LEADER entity.

Returns:
the vertex coordinates p0.
Parameters:
leadera pointer to a DXF LEADER entity.

Definition at line 1774 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_leader_struct::p0.

DxfLeader* dxf_leader_set_p0 ( DxfLeader leader,
DxfPoint p0 
)

Set the vertex coordinates p0 of a DXF LEADER entity.

Returns:
a pointer to a DXF LEADER entity.
Parameters:
leadera pointer to a DXF ARC entity.
p0a pointer to a DXF POINT entity.

Definition at line 1811 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_leader_struct::p0.

double dxf_leader_get_x0 ( DxfLeader leader)

Get the X-value of the vertex coordinates x0 of a DXF LEADER entity.

Returns:
the X-value of the vertex coordinates x0.
Parameters:
leadera pointer to a DXF LEADER entity.

Definition at line 1852 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_leader_struct::p0, and dxf_point_struct::x0.

DxfLeader* dxf_leader_set_x0 ( DxfLeader leader,
double  x0 
)

Set the X-value of the vertex coordinates x0 of a DXF LEADER entity.

Returns:
a pointer to leader when successful, or NULL when an error occurred.
Parameters:
leadera pointer to a DXF LEADER entity.
x0the X-value of the vertex coordinates x0 of a DXF LEADER entity.

Definition at line 1892 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_leader_struct::p0, and dxf_point_struct::x0.

double dxf_leader_get_y0 ( DxfLeader leader)

Get the Y-value of the vertex coordinates y0 of a DXF LEADER entity.

Returns:
the Y-value of the vertex coordinates y0.
Parameters:
leadera pointer to a DXF LEADER entity.

Definition at line 1934 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_leader_struct::p0, and dxf_point_struct::y0.

DxfLeader* dxf_leader_set_y0 ( DxfLeader leader,
double  y0 
)

Set the Y-value of the vertex coordinates y0 of a DXF LEADER entity.

Returns:
a pointer to leader when successful, or NULL when an error occurred.
Parameters:
leadera pointer to a DXF LEADER entity.
y0the Y-value of the vertex coordinates y0 of a DXF LEADER entity.

Definition at line 1974 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_leader_struct::p0, and dxf_point_struct::y0.

double dxf_leader_get_z0 ( DxfLeader leader)

Get the Z-value of the vertex coordinates z0 of a DXF LEADER entity.

Returns:
the Z-value of the vertex coordinates z0.
Parameters:
leadera pointer to a DXF LEADER entity.

Definition at line 2016 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_leader_struct::p0, and dxf_point_struct::z0.

DxfLeader* dxf_leader_set_z0 ( DxfLeader leader,
double  z0 
)

Set the Z-value of the vertex coordinates z0 of a DXF LEADER entity.

Returns:
a pointer to leader when successful, or NULL when an error occurred.
Parameters:
leadera pointer to a DXF LEADER entity.
z0the Z-value of the vertex coordinates z0 of a DXF LEADER entity.

Definition at line 2056 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_leader_struct::p0, and dxf_point_struct::z0.

double dxf_leader_get_text_annotation_height ( DxfLeader leader)

Get the text_annotation_height of a DXF LEADER entity.

Returns:
the text_annotation_height.
Parameters:
leadera pointer to a DXF LEADER entity.

Definition at line 2097 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_leader_struct::text_annotation_height.

DxfLeader* dxf_leader_set_text_annotation_height ( DxfLeader leader,
double  text_annotation_height 
)

Set the text_annotation_height of a DXF LEADER entity.

Returns:
a pointer to leader when successful, or NULL when an error occurred.
Parameters:
leadera pointer to a DXF LEADER entity.
text_annotation_heightthe text_annotation_height of a DXF LEADER entity.

Definition at line 2135 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_leader_struct::text_annotation_height.

double dxf_leader_get_text_annotation_width ( DxfLeader leader)

Get the text_annotation_width of a DXF LEADER entity.

Returns:
the text_annotation_width.
Parameters:
leadera pointer to a DXF LEADER entity.

Definition at line 2175 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_leader_struct::text_annotation_width.

DxfLeader* dxf_leader_set_text_annotation_width ( DxfLeader leader,
double  text_annotation_width 
)

Set the text_annotation_width of a DXF LEADER entity.

Returns:
a pointer to leader when successful, or NULL when an error occurred.
Parameters:
leadera pointer to a DXF LEADER entity.
text_annotation_widththe text_annotation_width of a DXF LEADER entity.

Definition at line 2213 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_leader_struct::text_annotation_width.

int dxf_leader_get_arrow_head_flag ( DxfLeader leader)

Get the arrow_head_flag from a DXF LEADER entity.

Returns:
arrow_head_flag.
Parameters:
leadera pointer to a DXF LEADER entity.

Definition at line 2253 of file leader.c.

References _, dxf_leader_struct::arrow_head_flag, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

DxfLeader* dxf_leader_set_arrow_head_flag ( DxfLeader leader,
int  arrow_head_flag 
)

Set the arrow_head_flag for a DXF LEADER entity.

Parameters:
leadera pointer to a DXF LEADER entity.
arrow_head_flagthe arrow_head_flag to be set.

Definition at line 2295 of file leader.c.

References _, dxf_leader_struct::arrow_head_flag, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

int dxf_leader_get_path_type ( DxfLeader leader)

Get the path_type from a DXF LEADER entity.

Returns:
path_type.
Parameters:
leadera pointer to a DXF LEADER entity.

Definition at line 2342 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_leader_struct::path_type.

DxfLeader* dxf_leader_set_path_type ( DxfLeader leader,
int  path_type 
)

Set the path_type for a DXF LEADER entity.

Parameters:
leadera pointer to a DXF LEADER entity.
path_typethe path_type to be set.

Definition at line 2384 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_leader_struct::path_type.

int dxf_leader_get_creation_flag ( DxfLeader leader)

Get the creation_flag from a DXF LEADER entity.

Returns:
creation_flag.
Parameters:
leadera pointer to a DXF LEADER entity.

Definition at line 2431 of file leader.c.

References _, dxf_leader_struct::creation_flag, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

DxfLeader* dxf_leader_set_creation_flag ( DxfLeader leader,
int  creation_flag 
)

Set the creation_flag for a DXF LEADER entity.

Parameters:
leadera pointer to a DXF LEADER entity.
creation_flagthe creation_flag to be set.

Definition at line 2473 of file leader.c.

References _, dxf_leader_struct::creation_flag, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

int dxf_leader_get_hookline_direction_flag ( DxfLeader leader)

Get the hookline_direction_flag from a DXF LEADER entity.

Returns:
hookline_direction_flag.
Parameters:
leadera pointer to a DXF LEADER entity.

Definition at line 2520 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_leader_struct::hookline_direction_flag.

DxfLeader* dxf_leader_set_hookline_direction_flag ( DxfLeader leader,
int  hookline_direction_flag 
)

Set the hookline_direction_flag for a DXF LEADER entity.

Parameters:
leadera pointer to a DXF LEADER entity.
hookline_direction_flagthe hookline_direction_flag to be set.

Definition at line 2562 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_leader_struct::hookline_direction_flag.

int dxf_leader_get_hookline_flag ( DxfLeader leader)

Get the hookline_flag from a DXF LEADER entity.

Returns:
hookline_flag.
Parameters:
leadera pointer to a DXF LEADER entity.

Definition at line 2609 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_leader_struct::hookline_flag.

DxfLeader* dxf_leader_set_hookline_flag ( DxfLeader leader,
int  hookline_flag 
)

Set the hookline_flag for a DXF LEADER entity.

Parameters:
leadera pointer to a DXF LEADER entity.
hookline_flagthe hookline_flag to be set.

Definition at line 2651 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_leader_struct::hookline_flag.

int dxf_leader_get_number_vertices ( DxfLeader leader)

Get the number_vertices from a DXF LEADER entity.

Returns:
number_vertices.
Parameters:
leadera pointer to a DXF LEADER entity.

Definition at line 2698 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_leader_struct::number_vertices.

DxfLeader* dxf_leader_set_number_vertices ( DxfLeader leader,
int  number_vertices 
)

Set the number_vertices for a DXF LEADER entity.

Parameters:
leadera pointer to a DXF LEADER entity.
number_verticesthe number_vertices to be set.

Definition at line 2733 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_leader_struct::number_vertices.

int dxf_leader_get_leader_color ( DxfLeader leader)

Get the leader_color from a DXF LEADER entity.

Returns:
leader_color.
Parameters:
leadera pointer to a DXF LEADER entity.

Definition at line 2773 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_leader_struct::leader_color.

DxfLeader* dxf_leader_set_leader_color ( DxfLeader leader,
int  leader_color 
)

Set the leader_color for a DXF LEADER entity.

Parameters:
leadera pointer to a DXF LEADER entity.
leader_colorthe leader_color to be set.

Definition at line 2807 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_leader_struct::leader_color.

double dxf_leader_get_extr_x0 ( DxfLeader leader)

Get the X-value of the extrusion vector extr_x0 of a DXF LEADER entity.

Returns:
the X-value of the extrusion vector extr_x0.
Parameters:
leadera pointer to a DXF LEADER entity.

Definition at line 2847 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_leader_struct::extr_x0.

DxfLeader* dxf_leader_set_extr_x0 ( DxfLeader leader,
double  extr_x0 
)

Set the X-value of the extrusion vector extr_x0 of a DXF LEADER entity.

Returns:
a pointer to leader when successful, or NULL when an error occurred.
Parameters:
leadera pointer to a DXF LEADER entity.
extr_x0the X-value of the extrusion vector extr_x0 of a DXF LEADER entity.

Definition at line 2880 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_leader_struct::extr_x0.

double dxf_leader_get_extr_y0 ( DxfLeader leader)

Get the Y-value of the extrusion vector extr_y0 of a DXF LEADER entity.

Returns:
the Y-value of the extrusion vector extr_y0.
Parameters:
leadera pointer to a DXF LEADER entity.

Definition at line 2915 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_leader_struct::extr_y0.

DxfLeader* dxf_leader_set_extr_y0 ( DxfLeader leader,
double  extr_y0 
)

Set the Y-value of the extrusion vector extr_y0 of a DXF LEADER entity.

Returns:
a pointer to leader when successful, or NULL when an error occurred.
Parameters:
leadera pointer to a DXF LEADER entity.
extr_y0the Y-value of the extrusion vector extr_y0 of a DXF LEADER entity.

Definition at line 2948 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_leader_struct::extr_y0.

double dxf_leader_get_extr_z0 ( DxfLeader leader)

Get the Z-value of the extrusion vector extr_z0 of a DXF LEADER entity.

Returns:
the Z-value of the extrusion vector extr_z0.
Parameters:
leadera pointer to a DXF LEADER entity.

Definition at line 2983 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_leader_struct::extr_z0.

DxfLeader* dxf_leader_set_extr_z0 ( DxfLeader leader,
double  extr_z0 
)

Set the Z-value of the extrusion vector extr_z0 of a DXF LEADER entity.

Returns:
a pointer to leader when successful, or NULL when an error occurred.
Parameters:
leadera pointer to a DXF LEADER entity.
extr_z0the Z-value of the extrusion vector extr_z0 of a DXF LEADER entity.

Definition at line 3016 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_leader_struct::extr_z0.

DxfPoint* dxf_leader_get_p1 ( DxfLeader leader)

Get the "Horizontal" direction for leader p1 of a DXF LEADER entity.

Returns:
p1.
Parameters:
leadera pointer to a DXF LEADER entity.

Definition at line 3051 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_leader_struct::p1.

DxfLeader* dxf_leader_set_p1 ( DxfLeader leader,
DxfPoint p1 
)

Set the "Horizontal" direction for leader p1 of a DXF LEADER entity.

Returns:
a pointer to a DXF LEADER entity.
Parameters:
leadera pointer to a DXF ARC entity.
p1a pointer to a DXF POINT entity.

Definition at line 3089 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_leader_struct::p1.

double dxf_leader_get_x1 ( DxfLeader leader)

Get the X-value of the "Horizontal" direction for leader x1 of a DXF LEADER entity.

Returns:
the X-value of the "Horizontal" direction for leader x1.
Parameters:
leadera pointer to a DXF LEADER entity.

Definition at line 3130 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_leader_struct::p1, and dxf_point_struct::x0.

DxfLeader* dxf_leader_set_x1 ( DxfLeader leader,
double  x1 
)

Set the X-value of the "Horizontal" direction for leader x1 of a DXF LEADER entity.

Returns:
a pointer to leader when successful, or NULL when an error occurred.
Parameters:
leadera pointer to a DXF LEADER entity.
x1the X-value of the "Horizontal" direction for leader x1 of a DXF LEADER entity.

Definition at line 3170 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_leader_struct::p1, and dxf_point_struct::x0.

double dxf_leader_get_y1 ( DxfLeader leader)

Get the Y-value of the "Horizontal" direction for leader y1 of a DXF LEADER entity.

Returns:
the Y-value of the "Horizontal" direction for leader y1.
Parameters:
leadera pointer to a DXF LEADER entity.

Definition at line 3212 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_leader_struct::p1, and dxf_point_struct::y0.

DxfLeader* dxf_leader_set_y1 ( DxfLeader leader,
double  y1 
)

Set the Y-value of the "Horizontal" direction for leader y1 of a DXF LEADER entity.

Returns:
a pointer to leader when successful, or NULL when an error occurred.
Parameters:
leadera pointer to a DXF LEADER entity.
y1the Y-value of the "Horizontal" direction for leader y1 of a DXF LEADER entity.

Definition at line 3252 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_leader_struct::p1, and dxf_point_struct::y0.

double dxf_leader_get_z1 ( DxfLeader leader)

Get the Z-value of the "Horizontal" direction for leader z1 of a DXF LEADER entity.

Returns:
the Z-value of the "Horizontal" direction for leader z1.
Parameters:
leadera pointer to a DXF LEADER entity.

Definition at line 3294 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_leader_struct::p1, and dxf_point_struct::z0.

DxfLeader* dxf_leader_set_z1 ( DxfLeader leader,
double  z1 
)

Set the Z-value of the "Horizontal" direction for leader z1 of a DXF LEADER entity.

Returns:
a pointer to leader when successful, or NULL when an error occurred.
Parameters:
leadera pointer to a DXF LEADER entity.
z1the Z-value of the "Horizontal" direction for leader z1 of a DXF LEADER entity.

Definition at line 3334 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_leader_struct::p1, and dxf_point_struct::z0.

DxfPoint* dxf_leader_get_p2 ( DxfLeader leader)

Get the Block reference insertion point offset from the last leader vertex p2 of a DXF LEADER entity.

Returns:
p2.
Parameters:
leadera pointer to a DXF LEADER entity.

Definition at line 3376 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_leader_struct::p2.

DxfLeader* dxf_leader_set_p2 ( DxfLeader leader,
DxfPoint p2 
)

Set the Block reference insertion point offset from the last leader vertex p2 of a DXF LEADER entity.

Returns:
a pointer to a DXF LEADER entity.
Parameters:
leadera pointer to a DXF ARC entity.
p2a pointer to a DXF POINT entity.

Definition at line 3414 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_leader_struct::p2.

double dxf_leader_get_x2 ( DxfLeader leader)

Get the X-value of the Block reference insertion point offset from the last leader vertex x2 of a DXF LEADER entity.

Returns:
the X-value of the Block reference insertion point offset from the last leader vertex x2.
Parameters:
leadera pointer to a DXF LEADER entity.

Definition at line 3456 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_leader_struct::p2, and dxf_point_struct::x0.

DxfLeader* dxf_leader_set_x2 ( DxfLeader leader,
double  x2 
)

Set the X-value of the Block reference insertion point offset from the last leader vertex x2 of a DXF LEADER entity.

Returns:
a pointer to leader when successful, or NULL when an error occurred.
Parameters:
leadera pointer to a DXF LEADER entity.
x2the X-value of the Block reference insertion point offset from the last leader vertex x2 of a DXF LEADER entity.

Definition at line 3496 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_leader_struct::p2, and dxf_point_struct::x0.

double dxf_leader_get_y2 ( DxfLeader leader)

Get the Y-value of the Block reference insertion point offset from the last leader vertex y2 of a DXF LEADER entity.

Returns:
the Y-value of the Block reference insertion point offset from the last leader vertex y2.
Parameters:
leadera pointer to a DXF LEADER entity.

Definition at line 3540 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_leader_struct::p2, and dxf_point_struct::y0.

DxfLeader* dxf_leader_set_y2 ( DxfLeader leader,
double  y2 
)

Set the Y-value of the Block reference insertion point offset from the last leader vertex y2 of a DXF LEADER entity.

Returns:
a pointer to leader when successful, or NULL when an error occurred.
Parameters:
leadera pointer to a DXF LEADER entity.
y2the Y-value of the Block reference insertion point offset from the last leader vertex y2 of a DXF LEADER entity.

Definition at line 3580 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_leader_struct::p2, and dxf_point_struct::y0.

double dxf_leader_get_z2 ( DxfLeader leader)

Get the Z-value of the Block reference insertion point offset from the last leader vertex z2 of a DXF LEADER entity.

Returns:
the Z-value of the Block reference insertion point offset from the last leader vertex z2.
Parameters:
leadera pointer to a DXF LEADER entity.

Definition at line 3624 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_leader_struct::p2, and dxf_point_struct::z0.

DxfLeader* dxf_leader_set_z2 ( DxfLeader leader,
double  z2 
)

Set the Z-value of the Block reference insertion point offset from the last leader vertex z2 of a DXF LEADER entity.

Returns:
a pointer to leader when successful, or NULL when an error occurred.
Parameters:
leadera pointer to a DXF LEADER entity.
z2the Z-value of the Block reference insertion point offset from the last leader vertex z2 of a DXF LEADER entity.

Definition at line 3664 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_leader_struct::p2, and dxf_point_struct::z0.

DxfPoint* dxf_leader_get_p3 ( DxfLeader leader)

Get the Annotation placement point offset from last leader vertex p3 of a DXF LEADER entity.

Returns:
p3.
Parameters:
leadera pointer to a DXF LEADER entity.

Definition at line 3707 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_leader_struct::p3.

DxfLeader* dxf_leader_set_p3 ( DxfLeader leader,
DxfPoint p3 
)

Set the Annotation placement point offset from last leader vertex p2 of a DXF LEADER entity.

Returns:
a pointer to a DXF LEADER entity.
Parameters:
leadera pointer to a DXF ARC entity.
p3a pointer to a DXF POINT entity.

Definition at line 3745 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_leader_struct::p3.

double dxf_leader_get_x3 ( DxfLeader leader)

Get the X-value of the Annotation placement point offset from the last leader vertex x3 of a DXF LEADER entity.

Returns:
the X-value of the Annotation placement point offset from the last leader vertex x3.
Parameters:
leadera pointer to a DXF LEADER entity.

Definition at line 3787 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_leader_struct::p3, and dxf_point_struct::x0.

DxfLeader* dxf_leader_set_x3 ( DxfLeader leader,
double  x3 
)

Set the X-value of the Annotation placement point offset from the last leader vertex x3 of a DXF LEADER entity.

Returns:
a pointer to leader when successful, or NULL when an error occurred.
Parameters:
leadera pointer to a DXF LEADER entity.
x3the X-value of the Annotation placement point offset from the last leader vertex x3 of a DXF LEADER entity.

Definition at line 3827 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_leader_struct::p3, and dxf_point_struct::x0.

double dxf_leader_get_y3 ( DxfLeader leader)

Get the Y-value of the Annotation placement point offset from the last leader vertex y3 of a DXF LEADER entity.

Returns:
the Y-value of the Annotation placement point offset from the last leader vertex y3.
Parameters:
leadera pointer to a DXF LEADER entity.

Definition at line 3871 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_leader_struct::p3, and dxf_point_struct::y0.

DxfLeader* dxf_leader_set_y3 ( DxfLeader leader,
double  y3 
)

Set the Y-value of the Annotation placement point offset from the last leader vertex y3 of a DXF LEADER entity.

Returns:
a pointer to leader when successful, or NULL when an error occurred.
Parameters:
leadera pointer to a DXF LEADER entity.
y3the Y-value of the Annotation placement point offset from the last leader vertex y3 of a DXF LEADER entity.

Definition at line 3911 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_leader_struct::p3, and dxf_point_struct::y0.

double dxf_leader_get_z3 ( DxfLeader leader)

Get the Z-value of the Annotation placement point offset from the last leader vertex z3 of a DXF LEADER entity.

Returns:
the Z-value of the Annotation placement point offset from the last leader vertex z3.
Parameters:
leadera pointer to a DXF LEADER entity.

Definition at line 3955 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_leader_struct::p3, and dxf_point_struct::z0.

DxfLeader* dxf_leader_set_z3 ( DxfLeader leader,
double  z3 
)

Set the Z-value of the Annotation placement point offset from the last leader vertex z3 of a DXF LEADER entity.

Returns:
a pointer to leader when successful, or NULL when an error occurred.
Parameters:
leadera pointer to a DXF LEADER entity.
z3the Z-value of the Annotation placement point offset from the last leader vertex z3 of a DXF LEADER entity.

Definition at line 3995 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_leader_struct::p3, and dxf_point_struct::z0.

char* dxf_leader_get_annotation_reference_hard ( DxfLeader leader)

Get the annotation_reference_hard from a DXF LEADER entity.

Returns:
annotation_reference_hard.
Warning:
No checks are performed on the returned pointer (string).
Parameters:
leadera pointer to a DXF LEADER entity.

Definition at line 4040 of file leader.c.

References _, dxf_leader_struct::annotation_reference_hard, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

DxfLeader* dxf_leader_set_annotation_reference_hard ( DxfLeader leader,
char *  annotation_reference_hard 
)

Set the pointer to the annotation_reference_hard for a DXF LEADER entity.

Parameters:
leadera pointer to a DXF LEADER entity.
annotation_reference_harda string containing the pointer to the annotation_reference_hard for the entity.

Definition at line 4076 of file leader.c.

References _, dxf_leader_struct::annotation_reference_hard, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

DxfLeader* dxf_leader_get_next ( DxfLeader leader)

Get the pointer to the next LEADER entity from a DXF LEADER entity.

Returns:
pointer to the next LEADER entity.
Warning:
No checks are performed on the returned pointer.
Parameters:
leadera pointer to a DXF LEADER entity.

Definition at line 4120 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_leader_struct::next.

DxfLeader* dxf_leader_set_next ( DxfLeader leader,
DxfLeader next 
)

Set the pointer to the next LEADER for a DXF LEADER entity.

Parameters:
leadera pointer to a DXF LEADER entity.
nexta pointer to the next LEADER for the entity.

Definition at line 4156 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_leader_struct::next.

DxfLeader* dxf_leader_get_last ( DxfLeader leader)

Get the pointer to the last LEADER entity from a linked list of DXF LEADER entities.

Returns:
pointer to the last LEADER entity.
Warning:
No checks are performed on the returned pointer.
Parameters:
leadera pointer to a DXF LEADER entity.

Definition at line 4199 of file leader.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_leader_struct::next.