libDXF 0.0.1
A library with DXF related functions written in C.
Functions

dimension.c File Reference

Functions for a DXF dimension entity (DIMENSION). More...

#include "dimension.h"
Include dependency graph for dimension.c:

Go to the source code of this file.

Functions

DxfDimensiondxf_dimension_new ()
 Allocate memory for a DXF DIMENSION.
DxfDimensiondxf_dimension_init (DxfDimension *dimension)
 Allocate memory and initialize data fields in a DXF DIMENSION entity.
DxfDimensiondxf_dimension_read (DxfFile *fp, DxfDimension *dimension)
 Read data from a DXF file into a DXF DIMENSION entity.
int dxf_dimension_write (DxfFile *fp, DxfDimension *dimension)
 Write DXF output for a DXF DIMENSION entity.
int dxf_dimension_free (DxfDimension *dimension)
 Free the allocated memory for a DXF DIMENSION and all it's data fields.
void dxf_dimension_free_chain (DxfDimension *dimensions)
 Free the allocated memory for a chain of DXF DIMENSION entities and all their data fields.
int dxf_dimension_get_id_code (DxfDimension *dimension)
 Get the id_code from a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_id_code (DxfDimension *dimension, int id_code)
 Set the ID code for a DXF DIMENSION entity.
char * dxf_dimension_get_linetype (DxfDimension *dimension)
 Get the linetype from a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_linetype (DxfDimension *dimension, char *linetype)
 Set the linetype for a DXF DIMENSION entity.
char * dxf_dimension_get_layer (DxfDimension *dimension)
 Get the layer from a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_layer (DxfDimension *dimension, char *layer)
 Set the layer for a DXF DIMENSION entity.
double dxf_dimension_get_elevation (DxfDimension *dimension)
 Get the elevation from a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_elevation (DxfDimension *dimension, double elevation)
 Set the elevation for a DXF DIMENSION entity.
double dxf_dimension_get_thickness (DxfDimension *dimension)
 Get the thickness from a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_thickness (DxfDimension *dimension, double thickness)
 Set the thickness for a DXF DIMENSION entity.
double dxf_dimension_get_linetype_scale (DxfDimension *dimension)
 Get the linetype_scale from a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_linetype_scale (DxfDimension *dimension, double linetype_scale)
 Set the linetype scale for a DXF DIMENSION entity.
int16_t dxf_dimension_get_visibility (DxfDimension *dimension)
 Get the visibility from a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_visibility (DxfDimension *dimension, int16_t visibility)
 Set the visibility for a DXF DIMENSION entity.
int dxf_dimension_get_color (DxfDimension *dimension)
 Get the color from a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_color (DxfDimension *dimension, int color)
 Set the color for a DXF DIMENSION entity.
int dxf_dimension_get_paperspace (DxfDimension *dimension)
 Get the paperspace flag value from a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_paperspace (DxfDimension *dimension, int paperspace)
 Set the paperspace flag for a DXF DIMENSION entity.
int dxf_dimension_get_graphics_data_size (DxfDimension *dimension)
 Get the graphics_data_size value from a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_graphics_data_size (DxfDimension *dimension, int graphics_data_size)
 Set the graphics_data_size value for a DXF DIMENSION entity.
int16_t dxf_dimension_get_shadow_mode (DxfDimension *dimension)
 Get the shadow_mode from a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_shadow_mode (DxfDimension *dimension, int16_t shadow_mode)
 Set the shadow_mode for a DXF DIMENSION entity.
DxfBinaryGraphicsDatadxf_dimension_get_binary_graphics_data (DxfDimension *dimension)
 Get the pointer to the binary_graphics_data from a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_binary_graphics_data (DxfDimension *dimension, DxfBinaryGraphicsData *data)
 Set the pointer to the binary_graphics_data for a DXF DIMENSION entity.
char * dxf_dimension_get_dictionary_owner_soft (DxfDimension *dimension)
 Get the pointer to the dictionary_owner_soft from a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_dictionary_owner_soft (DxfDimension *dimension, char *dictionary_owner_soft)
 Set the pointer to the dictionary_owner_soft for a DXF DIMENSION entity.
char * dxf_dimension_get_material (DxfDimension *dimension)
 Get the pointer to the material from a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_material (DxfDimension *dimension, char *material)
 Set the pointer to the material for a DXF DIMENSION entity.
char * dxf_dimension_get_dictionary_owner_hard (DxfDimension *dimension)
 Get the pointer to the dictionary_owner_hard from a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_dictionary_owner_hard (DxfDimension *dimension, char *dictionary_owner_hard)
 Set the pointer to the dictionary_owner_hard for a DXF DIMENSION entity.
int16_t dxf_dimension_get_lineweight (DxfDimension *dimension)
 Get the lineweight from a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_lineweight (DxfDimension *dimension, int16_t lineweight)
 Set the lineweight for a DXF DIMENSION entity.
char * dxf_dimension_get_plot_style_name (DxfDimension *dimension)
 Get the plot_style_name from a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_plot_style_name (DxfDimension *dimension, char *plot_style_name)
 Set the plot_style_name for a DXF DIMENSION entity.
long dxf_dimension_get_color_value (DxfDimension *dimension)
 Get the color_value from a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_color_value (DxfDimension *dimension, long color_value)
 Set the color_value for a DXF DIMENSION entity.
char * dxf_dimension_get_color_name (DxfDimension *dimension)
 Get the color_name from a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_color_name (DxfDimension *dimension, char *color_name)
 Set the color_name for a DXF DIMENSION entity.
long dxf_dimension_get_transparency (DxfDimension *dimension)
 Get the transparency from a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_transparency (DxfDimension *dimension, long transparency)
 Set the transparency for a DXF DIMENSION entity.
char * dxf_dimension_get_dim_text (DxfDimension *dimension)
 Get the dim_text from a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_dim_text (DxfDimension *dimension, char *dim_text)
 Set the dim_text for a DXF DIMENSION entity.
char * dxf_dimension_get_dimblock_name (DxfDimension *dimension)
 Get the dimblock_name from a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_dimblock_name (DxfDimension *dimension, char *dimblock_name)
 Set the dimblock_name for a DXF DIMENSION entity.
char * dxf_dimension_get_dimstyle_name (DxfDimension *dimension)
 Get the dimstyle_name from a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_dimstyle_name (DxfDimension *dimension, char *dimstyle_name)
 Set the dimstyle_name for a DXF DIMENSION entity.
DxfPointdxf_dimension_get_p0 (DxfDimension *dimension)
 Get the definition point p0 for all dimension types of a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_p0 (DxfDimension *dimension, DxfPoint *p0)
 Set the definition point p0 for all dimension types of a DXF DIMENSION entity.
double dxf_dimension_get_x0 (DxfDimension *dimension)
 Get the X-value x0 of the definition point for all dimension types of a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_x0 (DxfDimension *dimension, double x0)
 Set the X-value x0 of the definition point for all dimension types of a DXF DIMENSION entity.
double dxf_dimension_get_y0 (DxfDimension *dimension)
 Get the Y-value y0 of the definition point for all dimension types of a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_y0 (DxfDimension *dimension, double y0)
 Set the Y-value y0 of the definition point for all dimension types of a DXF DIMENSION entity.
double dxf_dimension_get_z0 (DxfDimension *dimension)
 Get the Z-value z0 of the definition point for all dimension types of a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_z0 (DxfDimension *dimension, double z0)
 Set the Z-value z0 of the definition point for all dimension types of a DXF DIMENSION entity.
DxfPointdxf_dimension_get_p1 (DxfDimension *dimension)
 Get the middle point p1 of the dimension text for all dimension types of a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_p1 (DxfDimension *dimension, DxfPoint *p1)
 Set the middle point p1 of the dimension text for all dimension types of a DXF DIMENSION entity.
double dxf_dimension_get_x1 (DxfDimension *dimension)
 Get the X-value x1 of the middle point of the dimension text for all dimension types of a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_x1 (DxfDimension *dimension, double x1)
 Set the X-value x1 of the middle point for all dimension types of a DXF DIMENSION entity.
double dxf_dimension_get_y1 (DxfDimension *dimension)
 Get the Y-value y1 of the middle point of the dimension text for all dimension types of a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_y1 (DxfDimension *dimension, double y1)
 Set the Y-value y1 of the middle point for all dimension types of a DXF DIMENSION entity.
double dxf_dimension_get_z1 (DxfDimension *dimension)
 Get the Z-value z1 of the middle point of the dimension text for all dimension types of a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_z1 (DxfDimension *dimension, double z1)
 Set the Z-value z1 of the middle point for all dimension types of a DXF DIMENSION entity.
DxfPointdxf_dimension_get_p2 (DxfDimension *dimension)
 Get the definition point p2 for linear and angular dimensions of a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_p2 (DxfDimension *dimension, DxfPoint *p2)
 Set the definition point p2 for linear and angular dimensions of a DXF DIMENSION entity.
double dxf_dimension_get_x2 (DxfDimension *dimension)
 Get the X-value x2 of the definition point for linear and angular dimensions of a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_x2 (DxfDimension *dimension, double x2)
 Set the X-value x2 of the definition point for linear and angular dimensions of a DXF DIMENSION entity.
double dxf_dimension_get_y2 (DxfDimension *dimension)
 Get the Y-value y2 of the definition point for linear and angular dimensions of a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_y2 (DxfDimension *dimension, double y2)
 Set the Y-value y2 of the definition point for linear and angular dimensions of a DXF DIMENSION entity.
double dxf_dimension_get_z2 (DxfDimension *dimension)
 Get the Z-value z2 of the definition point for linear and angular dimensions of a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_z2 (DxfDimension *dimension, double z2)
 Set the Z-value z2 of the definition point for linear and angular dimensions of a DXF DIMENSION entity.
DxfPointdxf_dimension_get_p3 (DxfDimension *dimension)
 Get the definition point p3 for linear and angular dimensions for a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_p3 (DxfDimension *dimension, DxfPoint *p3)
 Set the definition point p3 for linear and angular dimensions for a DXF DIMENSION entity.
double dxf_dimension_get_x3 (DxfDimension *dimension)
 Get the X-value x3 of the definition point for a linear and angular dimensions for a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_x3 (DxfDimension *dimension, double x3)
 Set the X-value x3 of the definition point for linear and angular dimensions for a DXF DIMENSION entity.
double dxf_dimension_get_y3 (DxfDimension *dimension)
 Get the Y-value y3 of the definition point for a linear and angular dimensions for a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_y3 (DxfDimension *dimension, double y3)
 Set the Y-value y3 of the definition point for linear and angular dimensions for a DXF DIMENSION entity.
double dxf_dimension_get_z3 (DxfDimension *dimension)
 Get the Z-value z3 of the definition point for a linear and angular dimensions for a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_z3 (DxfDimension *dimension, double z3)
 Set the Z-value z3 of the definition point for linear and angular dimensions for a DXF DIMENSION entity.
DxfPointdxf_dimension_get_p4 (DxfDimension *dimension)
 Get the definition point p4 for linear and angular dimensions for a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_p4 (DxfDimension *dimension, DxfPoint *p4)
 Set the definition point p4 for linear and angular dimensions for a DXF DIMENSION entity.
double dxf_dimension_get_x4 (DxfDimension *dimension)
 Get the X-value x4 of the definition point for a linear and angular dimensions for a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_x4 (DxfDimension *dimension, double x4)
 Set the X-value x4 of the definition point for linear and angular dimensions for a DXF DIMENSION entity.
double dxf_dimension_get_y4 (DxfDimension *dimension)
 Get the Y-value y4 of the definition point for a linear and angular dimensions for a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_y4 (DxfDimension *dimension, double y4)
 Set the Y-value y4 of the definition point for linear and angular dimensions for a DXF DIMENSION entity.
double dxf_dimension_get_z4 (DxfDimension *dimension)
 Get the Z-value z4 of the definition point for a linear and angular dimensions for a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_z4 (DxfDimension *dimension, double z4)
 Set the Z-value z4 of the definition point for linear and angular dimensions for a DXF DIMENSION entity.
DxfPointdxf_dimension_get_p5 (DxfDimension *dimension)
 Get the definition point p5 for diameter, radius, and angular dimensions for a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_p5 (DxfDimension *dimension, DxfPoint *p5)
 Set the definition point p5 for diameter, radius, and angular dimensions for a DXF DIMENSION entity.
double dxf_dimension_get_x5 (DxfDimension *dimension)
 Get the X-value x5 of the definition point for diameter, radius, and angular dimensions for a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_x5 (DxfDimension *dimension, double x5)
 Set the X-value x5 of the definition point for diameter, radius, and angular dimensions for a DXF DIMENSION entity.
double dxf_dimension_get_y5 (DxfDimension *dimension)
 Get the Y-value y5 of the definition point for diameter, radius, and angular dimensions for a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_y5 (DxfDimension *dimension, double y5)
 Set the Y-value y5 of the definition point for diameter, radius, and angular dimensions for a DXF DIMENSION entity.
double dxf_dimension_get_z5 (DxfDimension *dimension)
 Get the Z-value z5 of the definition point for diameter, radius, and angular dimensions for a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_z5 (DxfDimension *dimension, double z5)
 Set the Z-value z5 of the definition point for diameter, radius, and angular dimensions for a DXF DIMENSION entity.
DxfPointdxf_dimension_get_p6 (DxfDimension *dimension)
 Get the definition point p6 defining the dimension arc for angular dimensions for a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_p6 (DxfDimension *dimension, DxfPoint *p6)
 Set the definition point p6 defining the dimension arc for angular dimensions for a DXF DIMENSION entity.
double dxf_dimension_get_x6 (DxfDimension *dimension)
 Get the X-value x6 of the definition point defining the dimension arc for angular dimensions for a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_x6 (DxfDimension *dimension, double x6)
 Set the X-value x6 of the point defining the dimension arc for angular dimensions for a DXF DIMENSION entity.
double dxf_dimension_get_y6 (DxfDimension *dimension)
 Get the Y-value y6 of the definition point defining the dimension arc for angular dimensions for a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_y6 (DxfDimension *dimension, double y6)
 Set the Y-value y6 of the point defining the dimension arc for angular dimensions for a DXF DIMENSION entity.
double dxf_dimension_get_z6 (DxfDimension *dimension)
 Get the Z-value z6 of the definition point defining the dimension arc for angular dimensions for a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_z6 (DxfDimension *dimension, double z6)
 Set the Z-value z6 of the point defining the dimension arc for angular dimensions for a DXF DIMENSION entity.
double dxf_dimension_get_leader_length (DxfDimension *dimension)
 Get the leader_length from a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_leader_length (DxfDimension *dimension, double leader_length)
 Set the leader_length for a DXF DIMENSION entity.
double dxf_dimension_get_text_line_spacing_factor (DxfDimension *dimension)
 Get the text_line_spacing factor from a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_text_line_spacing_factor (DxfDimension *dimension, double text_line_spacing_factor)
 Set the text_line_spacing factor for a DXF DIMENSION entity.
double dxf_dimension_get_actual_measurement (DxfDimension *dimension)
 Get the actual_measurement from a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_actual_measurement (DxfDimension *dimension, double actual_measurement)
 Set the actual_measurement for a DXF DIMENSION entity.
double dxf_dimension_get_angle (DxfDimension *dimension)
 Get the angle of rotated, horizontal, or vertical linear dimensions from a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_angle (DxfDimension *dimension, double angle)
 Set the angle of rotated, horizontal, or vertical linear dimensions for a DXF DIMENSION entity.
double dxf_dimension_get_hor_dir (DxfDimension *dimension)
 Get the horizontal direction hor_dir from a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_hor_dir (DxfDimension *dimension, double hor_dir)
 Set the horizontal direction hor_dir for a DXF DIMENSION entity.
double dxf_dimension_get_obl_angle (DxfDimension *dimension)
 Get the oblique angle obl_angle from a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_obl_angle (DxfDimension *dimension, double obl_angle)
 Set the oblique angle obl_angle for a DXF DIMENSION entity.
double dxf_dimension_get_text_angle (DxfDimension *dimension)
 Get the text_angle from a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_text_angle (DxfDimension *dimension, double text_angle)
 Set the text_angle for a DXF DIMENSION entity.
int dxf_dimension_get_flag (DxfDimension *dimension)
 Get the value of the flag of a DXF DIMENSION.
DxfDimensiondxf_dimension_set_flag (DxfDimension *dimension, int flag)
 Set the flag for a DXF DIMENSION entity.
int dxf_dimension_get_attachment_point (DxfDimension *dimension)
 Get the attachment_point of a DXF DIMENSION.
DxfDimensiondxf_dimension_set_attachment_point (DxfDimension *dimension, int attachment_point)
 Set the attachment_point for a DXF DIMENSION entity.
int dxf_dimension_get_text_line_spacing (DxfDimension *dimension)
 Get the text_line_spacing of a DXF DIMENSION.
DxfDimensiondxf_dimension_set_text_line_spacing (DxfDimension *dimension, int text_line_spacing)
 Set the text line spacing for a DXF DIMENSION entity.
double dxf_dimension_get_extr_x0 (DxfDimension *dimension)
 Get the X-value extr_x0 of the extrusion vector of a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_extr_x0 (DxfDimension *dimension, double extr_x0)
 Set the X-value extr_x0 of the extrusion vector of a DXF DIMENSION entity.
double dxf_dimension_get_extr_y0 (DxfDimension *dimension)
 Get the Y-value extr_y0 of the extrusion vector of a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_extr_y0 (DxfDimension *dimension, double extr_y0)
 Set the Y-value extr_y0 of the extrusion vector of a DXF DIMENSION entity.
double dxf_dimension_get_extr_z0 (DxfDimension *dimension)
 Get the Z-value extr_z0 of the extrusion vector of a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_extr_z0 (DxfDimension *dimension, double extr_z0)
 Set the Z-value extr_z0 of the extrusion vector of a DXF DIMENSION entity.
DxfPointdxf_dimension_get_extrusion_vector_as_point (DxfDimension *dimension)
 Get the extrusion vector as a DXF POINT entity from a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_extrusion_vector (DxfDimension *dimension, double extr_x0, double extr_y0, double extr_z0)
 Set the extrusion vector values for a DXF DIMENSION entity.
DxfDimensiondxf_dimension_get_next (DxfDimension *dimension)
 Get the pointer to the next DIMENSION entity from a DXF DIMENSION entity.
DxfDimensiondxf_dimension_set_next (DxfDimension *dimension, DxfDimension *next)
 Set the pointer to the next DIMENSION for a DXF DIMENSION entity.
DxfDimensiondxf_dimension_get_last (DxfDimension *dimension)
 Get the pointer to the last DIMENSION entity from a linked list of DXF DIMENSION entities.

Detailed Description

Functions for a DXF dimension entity (DIMENSION).

Author:
Copyright (C) 2012, 2014, 2015, 2016, 2017 by Bert Timmerman <bert.timmerman@xs4all.nl>.
Version:
According to DXF R10.
According to DXF R11.
According to DXF R12.
According to DXF R13.
According to DXF R14.
According to DXF R2000.

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 dimension.c.


Function Documentation

DxfDimension* dxf_dimension_new ( )

Allocate memory for a DXF DIMENSION.

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 dimension.c.

References _, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_dimension_init(), and dxf_dimension_read().

DxfDimension* dxf_dimension_init ( DxfDimension dimension)

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

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensionPointer to the memory occupied by the DXF DIMENSION entity.

Definition at line 93 of file dimension.c.

References _, DXF_COLOR_BYLAYER, DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_DEFAULT_LAYER, DXF_DEFAULT_LINETYPE, DXF_DEFAULT_LINETYPE_SCALE, DXF_DEFAULT_VISIBILITY, dxf_dimension_new(), dxf_dimension_set_actual_measurement(), dxf_dimension_set_angle(), dxf_dimension_set_attachment_point(), dxf_dimension_set_color(), dxf_dimension_set_dictionary_owner_hard(), dxf_dimension_set_dictionary_owner_soft(), dxf_dimension_set_dim_text(), dxf_dimension_set_dimblock_name(), dxf_dimension_set_dimstyle_name(), dxf_dimension_set_elevation(), dxf_dimension_set_extr_x0(), dxf_dimension_set_extr_y0(), dxf_dimension_set_extr_z0(), dxf_dimension_set_flag(), dxf_dimension_set_hor_dir(), dxf_dimension_set_id_code(), dxf_dimension_set_layer(), dxf_dimension_set_leader_length(), dxf_dimension_set_linetype(), dxf_dimension_set_linetype_scale(), dxf_dimension_set_next(), dxf_dimension_set_obl_angle(), dxf_dimension_set_paperspace(), dxf_dimension_set_text_angle(), dxf_dimension_set_text_line_spacing(), dxf_dimension_set_text_line_spacing_factor(), dxf_dimension_set_thickness(), dxf_dimension_set_visibility(), dxf_dimension_set_x0(), dxf_dimension_set_x1(), dxf_dimension_set_x2(), dxf_dimension_set_x3(), dxf_dimension_set_x4(), dxf_dimension_set_x5(), dxf_dimension_set_x6(), dxf_dimension_set_y0(), dxf_dimension_set_y1(), dxf_dimension_set_y2(), dxf_dimension_set_y3(), dxf_dimension_set_y4(), dxf_dimension_set_y5(), dxf_dimension_set_y6(), dxf_dimension_set_z0(), dxf_dimension_set_z1(), dxf_dimension_set_z2(), dxf_dimension_set_z3(), dxf_dimension_set_z4(), dxf_dimension_set_z5(), dxf_dimension_set_z6(), and DXF_PAPERSPACE.

Referenced by dxf_dimension_read().

Here is the call graph for this function:

DxfDimension* dxf_dimension_read ( DxfFile fp,
DxfDimension dimension 
)

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

The last line read from file contained the string "DIMENSION".
Now follows some data for the DIMENSION, to be terminated with a " 0" string announcing the following entity, or the end of the ENTITY section marker ENDSEC.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
fpDXF file pointer to an input file (or device).
dimensionDXF DIMENSION entity.

Definition at line 186 of file dimension.c.

References _, dxf_file_struct::acad_version_number, dxf_dimension_struct::actual_measurement, dxf_dimension_struct::angle, dxf_dimension_struct::attachment_point, AutoCAD_13, dxf_dimension_struct::color, dxf_dimension_struct::dictionary_owner_hard, dxf_dimension_struct::dictionary_owner_soft, dxf_dimension_struct::dim_text, dxf_dimension_struct::dimblock_name, dxf_dimension_struct::dimstyle_name, DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_DEFAULT_LAYER, DXF_DEFAULT_LINETYPE, dxf_dimension_get_layer(), dxf_dimension_get_linetype(), dxf_dimension_init(), dxf_dimension_new(), dxf_dimension_set_layer(), dxf_dimension_set_linetype(), dxf_dimension_struct::elevation, dxf_dimension_struct::extr_x0, dxf_dimension_struct::extr_y0, dxf_dimension_struct::extr_z0, dxf_file_struct::filename, dxf_dimension_struct::flag, dxf_file_struct::fp, dxf_dimension_struct::hor_dir, dxf_dimension_struct::id_code, dxf_dimension_struct::layer, dxf_dimension_struct::leader_length, dxf_file_struct::line_number, dxf_dimension_struct::linetype, dxf_dimension_struct::linetype_scale, dxf_dimension_struct::obl_angle, dxf_dimension_struct::p0, dxf_dimension_struct::p1, dxf_dimension_struct::p2, dxf_dimension_struct::p3, dxf_dimension_struct::p4, dxf_dimension_struct::p5, dxf_dimension_struct::p6, dxf_dimension_struct::paperspace, dxf_dimension_struct::text_angle, dxf_dimension_struct::text_line_spacing, dxf_dimension_struct::text_line_spacing_factor, dxf_dimension_struct::thickness, dxf_dimension_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_dimension_write ( DxfFile fp,
DxfDimension dimension 
)

Write DXF output for a DXF DIMENSION 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.

Parameters:
fpDXF file pointer to an output file (or device).
dimensionPointer to the memory occupied by the DXF DIMENSION entity.

Definition at line 645 of file dimension.c.

References _, dxf_file_struct::acad_version_number, AutoCAD_13, AutoCAD_14, AutoCAD_2000, DXF_COLOR_BYLAYER, DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_DEFAULT_LAYER, DXF_DEFAULT_LINETYPE, dxf_dimension_get_actual_measurement(), dxf_dimension_get_angle(), dxf_dimension_get_attachment_point(), dxf_dimension_get_color(), dxf_dimension_get_dictionary_owner_hard(), dxf_dimension_get_dictionary_owner_soft(), dxf_dimension_get_dim_text(), dxf_dimension_get_dimblock_name(), dxf_dimension_get_dimstyle_name(), dxf_dimension_get_extr_x0(), dxf_dimension_get_extr_y0(), dxf_dimension_get_extr_z0(), dxf_dimension_get_flag(), dxf_dimension_get_hor_dir(), dxf_dimension_get_id_code(), dxf_dimension_get_layer(), dxf_dimension_get_leader_length(), dxf_dimension_get_linetype(), dxf_dimension_get_linetype_scale(), dxf_dimension_get_obl_angle(), dxf_dimension_get_paperspace(), dxf_dimension_get_text_angle(), dxf_dimension_get_text_line_spacing(), dxf_dimension_get_text_line_spacing_factor(), dxf_dimension_get_thickness(), dxf_dimension_get_visibility(), dxf_dimension_get_x0(), dxf_dimension_get_x1(), dxf_dimension_get_x2(), dxf_dimension_get_x3(), dxf_dimension_get_x4(), dxf_dimension_get_x5(), dxf_dimension_get_x6(), dxf_dimension_get_y0(), dxf_dimension_get_y1(), dxf_dimension_get_y2(), dxf_dimension_get_y3(), dxf_dimension_get_y4(), dxf_dimension_get_y5(), dxf_dimension_get_y6(), dxf_dimension_get_z0(), dxf_dimension_get_z1(), dxf_dimension_get_z2(), dxf_dimension_get_z3(), dxf_dimension_get_z4(), dxf_dimension_get_z5(), dxf_dimension_get_z6(), dxf_dimension_set_layer(), DXF_PAPERSPACE, and dxf_file_struct::fp.

Here is the call graph for this function:

int dxf_dimension_free ( DxfDimension dimension)

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

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

Definition at line 919 of file dimension.c.

References _, dxf_dimension_struct::dictionary_owner_hard, dxf_dimension_struct::dictionary_owner_soft, dxf_dimension_struct::dim_text, dxf_dimension_struct::dimblock_name, dxf_dimension_struct::dimstyle_name, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_dimension_struct::layer, dxf_dimension_struct::linetype, and dxf_dimension_struct::next.

Referenced by dxf_dimension_free_chain().

void dxf_dimension_free_chain ( DxfDimension dimensions)

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

Parameters:
dimensionspointer to the chain of DXF DIMENSION entities.

Definition at line 965 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_dimension_free(), and dxf_dimension_get_next().

Here is the call graph for this function:

int dxf_dimension_get_id_code ( DxfDimension dimension)

Get the id_code from a DXF DIMENSION entity.

Returns:
id_code, or DXF_ERROR when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 999 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_ERROR, and dxf_dimension_struct::id_code.

Referenced by dxf_dimension_write().

DxfDimension* dxf_dimension_set_id_code ( DxfDimension dimension,
int  id_code 
)

Set the ID code for a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
id_codeIdentification number for the entity.
This is to be an unique (sequential) number in the DXF file.

Definition at line 1037 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_dictionaryvar_struct::id_code, and dxf_dimension_struct::id_code.

Referenced by dxf_dimension_init().

char* dxf_dimension_get_linetype ( DxfDimension dimension)

Get the linetype from a DXF DIMENSION entity.

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

Definition at line 1079 of file dimension.c.

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

Referenced by dxf_dimension_read(), and dxf_dimension_write().

DxfDimension* dxf_dimension_set_linetype ( DxfDimension dimension,
char *  linetype 
)

Set the linetype for a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
linetypea string containing the linetype for the entity.

Definition at line 1117 of file dimension.c.

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

Referenced by dxf_dimension_init(), and dxf_dimension_read().

char* dxf_dimension_get_layer ( DxfDimension dimension)

Get the layer from a DXF DIMENSION entity.

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

Definition at line 1157 of file dimension.c.

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

Referenced by dxf_dimension_read(), and dxf_dimension_write().

DxfDimension* dxf_dimension_set_layer ( DxfDimension dimension,
char *  layer 
)

Set the layer for a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
layera string containing the layer for the entity.

Definition at line 1195 of file dimension.c.

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

Referenced by dxf_dimension_init(), dxf_dimension_read(), and dxf_dimension_write().

double dxf_dimension_get_elevation ( DxfDimension dimension)

Get the elevation from a DXF DIMENSION entity.

Returns:
elevation, or EXIT_FAILURE when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 1235 of file dimension.c.

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

DxfDimension* dxf_dimension_set_elevation ( DxfDimension dimension,
double  elevation 
)

Set the elevation for a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
elevationthe elevation to be set for the entity.

Definition at line 1266 of file dimension.c.

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

Referenced by dxf_dimension_init().

double dxf_dimension_get_thickness ( DxfDimension dimension)

Get the thickness from a DXF DIMENSION entity.

Returns:
thickness, or EXIT_FAILURE when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 1299 of file dimension.c.

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

Referenced by dxf_dimension_write().

DxfDimension* dxf_dimension_set_thickness ( DxfDimension dimension,
double  thickness 
)

Set the thickness for a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
thicknessthe thickness to be set for the entity.

Definition at line 1337 of file dimension.c.

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

Referenced by dxf_dimension_init().

double dxf_dimension_get_linetype_scale ( DxfDimension dimension)

Get the linetype_scale from a DXF DIMENSION entity.

Returns:
linetype_scale, or EXIT_FAILURE when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 1377 of file dimension.c.

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

Referenced by dxf_dimension_write().

DxfDimension* dxf_dimension_set_linetype_scale ( DxfDimension dimension,
double  linetype_scale 
)

Set the linetype scale for a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
linetype_scalethe linetype scale to be set for the entity.

Definition at line 1415 of file dimension.c.

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

Referenced by dxf_dimension_init().

int16_t dxf_dimension_get_visibility ( DxfDimension dimension)

Get the visibility from a DXF DIMENSION entity.

Returns:
visibility, or EXIT_FAILURE when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 1455 of file dimension.c.

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

Referenced by dxf_dimension_write().

DxfDimension* dxf_dimension_set_visibility ( DxfDimension dimension,
int16_t  visibility 
)

Set the visibility for a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
visibilitythe visibility to be set for the entity.

Definition at line 1500 of file dimension.c.

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

Referenced by dxf_dimension_init().

int dxf_dimension_get_color ( DxfDimension dimension)

Get the color from a DXF DIMENSION entity.

Returns:
color, or EXIT_FAILURE when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 1547 of file dimension.c.

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

Referenced by dxf_dimension_write().

DxfDimension* dxf_dimension_set_color ( DxfDimension dimension,
int  color 
)

Set the color for a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
colorthe color to be set for the entity.

Definition at line 1584 of file dimension.c.

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

Referenced by dxf_dimension_init().

int dxf_dimension_get_paperspace ( DxfDimension dimension)

Get the paperspace flag value from a DXF DIMENSION entity.

Returns:
paperspace flag value, or EXIT_FAILURE when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 1626 of file dimension.c.

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

Referenced by dxf_dimension_write().

DxfDimension* dxf_dimension_set_paperspace ( DxfDimension dimension,
int  paperspace 
)

Set the paperspace flag for a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
paperspacethe paperspace flag value to be set for the entity.

Definition at line 1669 of file dimension.c.

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

Referenced by dxf_dimension_init().

int dxf_dimension_get_graphics_data_size ( DxfDimension dimension)

Get the graphics_data_size value from a DXF DIMENSION entity.

Returns:
graphics_data_size value when successful, or EXIT_FAILURE when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 1718 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_dimension_struct::graphics_data_size.

DxfDimension* dxf_dimension_set_graphics_data_size ( DxfDimension dimension,
int  graphics_data_size 
)

Set the graphics_data_size value for a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
graphics_data_sizethe graphics_data_size value to be set for the entity.

Definition at line 1761 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_dimension_struct::graphics_data_size.

int16_t dxf_dimension_get_shadow_mode ( DxfDimension dimension)

Get the shadow_mode from a DXF DIMENSION entity.

Returns:
shadow_mode when successful, or EXIT_FAILURE when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 1809 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_dimension_struct::shadow_mode.

DxfDimension* dxf_dimension_set_shadow_mode ( DxfDimension dimension,
int16_t  shadow_mode 
)

Set the shadow_mode for a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
shadow_modethe shadow mode to be set for the entity.

Definition at line 1854 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_dimension_struct::shadow_mode.

DxfBinaryGraphicsData* dxf_dimension_get_binary_graphics_data ( DxfDimension dimension)

Get the pointer to the binary_graphics_data from a DXF DIMENSION entity.

Returns:
pointer to the binary_graphics_data, or NULL when an error occurred.
Warning:
No checks are performed on the returned pointer.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 1905 of file dimension.c.

References _, dxf_dimension_struct::binary_graphics_data, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

DxfDimension* dxf_dimension_set_binary_graphics_data ( DxfDimension dimension,
DxfBinaryGraphicsData data 
)

Set the pointer to the binary_graphics_data for a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
dataa string containing the pointer to the binary_graphics_data for the entity.

Definition at line 1944 of file dimension.c.

References _, dxf_dimension_struct::binary_graphics_data, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

char* dxf_dimension_get_dictionary_owner_soft ( DxfDimension dimension)

Get the pointer to the dictionary_owner_soft from a DXF DIMENSION entity.

Returns:
pointer to the dictionary_owner_soft, or NULL when an error occurred.
Warning:
No checks are performed on the returned pointer (string).
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 1989 of file dimension.c.

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

Referenced by dxf_dimension_write().

DxfDimension* dxf_dimension_set_dictionary_owner_soft ( DxfDimension dimension,
char *  dictionary_owner_soft 
)

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

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
dictionary_owner_softa string containing the pointer to the dictionary_owner_soft for the entity.

Definition at line 2028 of file dimension.c.

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

Referenced by dxf_dimension_init().

char* dxf_dimension_get_material ( DxfDimension dimension)

Get the pointer to the material from a DXF DIMENSION entity.

Returns:
a pointer to material when successful, or NULL when an error occurred.
Warning:
No checks are performed on the returned pointer.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 2072 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_dimension_struct::material.

DxfDimension* dxf_dimension_set_material ( DxfDimension dimension,
char *  material 
)

Set the pointer to the material for a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
materiala string containing the pointer to the material for the entity.

Definition at line 2111 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_dimension_struct::material.

char* dxf_dimension_get_dictionary_owner_hard ( DxfDimension dimension)

Get the pointer to the dictionary_owner_hard from a DXF DIMENSION entity.

Returns:
pointer to the dictionary_owner_hard, or NULL when an error occurred.
Warning:
No checks are performed on the returned pointer (string).
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 2156 of file dimension.c.

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

Referenced by dxf_dimension_write().

DxfDimension* dxf_dimension_set_dictionary_owner_hard ( DxfDimension dimension,
char *  dictionary_owner_hard 
)

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

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
dictionary_owner_harda string containing the pointer to the dictionary_owner_hard for the entity.

Definition at line 2195 of file dimension.c.

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

Referenced by dxf_dimension_init().

int16_t dxf_dimension_get_lineweight ( DxfDimension dimension)

Get the lineweight from a DXF DIMENSION entity.

Returns:
lineweight when successful, or EXIT_FAILURE when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 2237 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_dimension_struct::lineweight.

DxfDimension* dxf_dimension_set_lineweight ( DxfDimension dimension,
int16_t  lineweight 
)

Set the lineweight for a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
lineweightthe lineweight to be set for the entity.

Definition at line 2268 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_dimension_struct::lineweight.

char* dxf_dimension_get_plot_style_name ( DxfDimension dimension)

Get the plot_style_name from a DXF DIMENSION entity.

Returns:
a pointer to plot_style_name when sucessful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 2302 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_dimension_struct::plot_style_name.

DxfDimension* dxf_dimension_set_plot_style_name ( DxfDimension dimension,
char *  plot_style_name 
)

Set the plot_style_name for a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
plot_style_namea string containing the plot_style_name for the entity.

Definition at line 2340 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_dimension_struct::plot_style_name.

long dxf_dimension_get_color_value ( DxfDimension dimension)

Get the color_value from a DXF DIMENSION entity.

Returns:
color_value when successful, or EXIT_FAILURE when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 2382 of file dimension.c.

References _, dxf_dimension_struct::color_value, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

DxfDimension* dxf_dimension_set_color_value ( DxfDimension dimension,
long  color_value 
)

Set the color_value for a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
color_valuethe color_value to be set for the entity.

Definition at line 2413 of file dimension.c.

References _, dxf_dimension_struct::color_value, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

char* dxf_dimension_get_color_name ( DxfDimension dimension)

Get the color_name from a DXF DIMENSION entity.

Returns:
color_name when sucessful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 2447 of file dimension.c.

References _, dxf_dimension_struct::color_name, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

DxfDimension* dxf_dimension_set_color_name ( DxfDimension dimension,
char *  color_name 
)

Set the color_name for a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
color_namea string containing the color_name for the entity.

Definition at line 2485 of file dimension.c.

References _, dxf_dimension_struct::color_name, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

long dxf_dimension_get_transparency ( DxfDimension dimension)

Get the transparency from a DXF DIMENSION entity.

Returns:
transparency when successful, or EXIT_FAILURE when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 2527 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_dimension_struct::transparency.

DxfDimension* dxf_dimension_set_transparency ( DxfDimension dimension,
long  transparency 
)

Set the transparency for a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
transparencythe transparency to be set for the entity.

Definition at line 2558 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_dimension_struct::transparency.

char* dxf_dimension_get_dim_text ( DxfDimension dimension)

Get the dim_text from a DXF DIMENSION entity.

Returns:
dim_text when sucessful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 2592 of file dimension.c.

References _, dxf_dimension_struct::dim_text, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_dimension_write().

DxfDimension* dxf_dimension_set_dim_text ( DxfDimension dimension,
char *  dim_text 
)

Set the dim_text for a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
dim_texta string containing the dim_text for the entity.

Definition at line 2630 of file dimension.c.

References _, dxf_dimension_struct::dim_text, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_dimension_init().

char* dxf_dimension_get_dimblock_name ( DxfDimension dimension)

Get the dimblock_name from a DXF DIMENSION entity.

Returns:
dimblock_name when sucessful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 2671 of file dimension.c.

References _, dxf_dimension_struct::dimblock_name, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_dimension_write().

DxfDimension* dxf_dimension_set_dimblock_name ( DxfDimension dimension,
char *  dimblock_name 
)

Set the dimblock_name for a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
dimblock_namea string containing the dimblock_name for the entity.

Definition at line 2709 of file dimension.c.

References _, dxf_dimension_struct::dimblock_name, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_dimension_init().

char* dxf_dimension_get_dimstyle_name ( DxfDimension dimension)

Get the dimstyle_name from a DXF DIMENSION entity.

Returns:
dimstyle_name when sucessful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 2750 of file dimension.c.

References _, dxf_dimension_struct::dimstyle_name, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_dimension_write().

DxfDimension* dxf_dimension_set_dimstyle_name ( DxfDimension dimension,
char *  dimstyle_name 
)

Set the dimstyle_name for a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
dimstyle_namea string containing the dimstyle_name for the entity.

Definition at line 2788 of file dimension.c.

References _, dxf_dimension_struct::dimblock_name, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_dimension_init().

DxfPoint* dxf_dimension_get_p0 ( DxfDimension dimension)

Get the definition point p0 for all dimension types of a DXF DIMENSION entity.

Returns:
the definition point p0, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 2830 of file dimension.c.

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

DxfDimension* dxf_dimension_set_p0 ( DxfDimension dimension,
DxfPoint p0 
)

Set the definition point p0 for all dimension types of a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
p0a pointer to a DXF POINT entity.

Definition at line 2869 of file dimension.c.

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

double dxf_dimension_get_x0 ( DxfDimension dimension)

Get the X-value x0 of the definition point for all dimension types of a DXF DIMENSION entity.

Returns:
the X-value x0 of the definition point, or EXIT_FAILURE when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 2911 of file dimension.c.

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

Referenced by dxf_dimension_write().

DxfDimension* dxf_dimension_set_x0 ( DxfDimension dimension,
double  x0 
)

Set the X-value x0 of the definition point for all dimension types of a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
x0the X-value x0 of the definition point.

Definition at line 2950 of file dimension.c.

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

Referenced by dxf_dimension_init().

double dxf_dimension_get_y0 ( DxfDimension dimension)

Get the Y-value y0 of the definition point for all dimension types of a DXF DIMENSION entity.

Returns:
the Y-value y0 of the definition point, or EXIT_FAILURE when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 2992 of file dimension.c.

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

Referenced by dxf_dimension_write().

DxfDimension* dxf_dimension_set_y0 ( DxfDimension dimension,
double  y0 
)

Set the Y-value y0 of the definition point for all dimension types of a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
y0the Y-value y0 of the definition point.

Definition at line 3031 of file dimension.c.

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

Referenced by dxf_dimension_init().

double dxf_dimension_get_z0 ( DxfDimension dimension)

Get the Z-value z0 of the definition point for all dimension types of a DXF DIMENSION entity.

Returns:
the Z-value z0 of the definition point, or EXIT_FAILURE when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 3073 of file dimension.c.

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

Referenced by dxf_dimension_write().

DxfDimension* dxf_dimension_set_z0 ( DxfDimension dimension,
double  z0 
)

Set the Z-value z0 of the definition point for all dimension types of a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
z0the Z-value z0 of the definition point.

Definition at line 3112 of file dimension.c.

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

Referenced by dxf_dimension_init().

DxfPoint* dxf_dimension_get_p1 ( DxfDimension dimension)

Get the middle point p1 of the dimension text for all dimension types of a DXF DIMENSION entity.

Returns:
the definition point p1, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 3154 of file dimension.c.

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

DxfDimension* dxf_dimension_set_p1 ( DxfDimension dimension,
DxfPoint p1 
)

Set the middle point p1 of the dimension text for all dimension types of a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
p1a pointer to a DXF POINT entity.

Definition at line 3193 of file dimension.c.

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

double dxf_dimension_get_x1 ( DxfDimension dimension)

Get the X-value x1 of the middle point of the dimension text for all dimension types of a DXF DIMENSION entity.

Returns:
the X-value x1 of the middle point, or EXIT_FAILURE when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 3235 of file dimension.c.

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

Referenced by dxf_dimension_write().

DxfDimension* dxf_dimension_set_x1 ( DxfDimension dimension,
double  x1 
)

Set the X-value x1 of the middle point for all dimension types of a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
x1the X-value x1 of the middle point.

Definition at line 3274 of file dimension.c.

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

Referenced by dxf_dimension_init().

double dxf_dimension_get_y1 ( DxfDimension dimension)

Get the Y-value y1 of the middle point of the dimension text for all dimension types of a DXF DIMENSION entity.

Returns:
the Y-value y1 of the middle point, or EXIT_FAILURE when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 3316 of file dimension.c.

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

Referenced by dxf_dimension_write().

DxfDimension* dxf_dimension_set_y1 ( DxfDimension dimension,
double  y1 
)

Set the Y-value y1 of the middle point for all dimension types of a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
y1the Y-value y1 of the middle point.

Definition at line 3355 of file dimension.c.

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

Referenced by dxf_dimension_init().

double dxf_dimension_get_z1 ( DxfDimension dimension)

Get the Z-value z1 of the middle point of the dimension text for all dimension types of a DXF DIMENSION entity.

Returns:
the Z-value z1 of the middle point, or EXIT_FAILURE when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 3398 of file dimension.c.

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

Referenced by dxf_dimension_write().

DxfDimension* dxf_dimension_set_z1 ( DxfDimension dimension,
double  z1 
)

Set the Z-value z1 of the middle point for all dimension types of a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
z1the Z-coordinate value z1 of the middle point.

Definition at line 3437 of file dimension.c.

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

Referenced by dxf_dimension_init().

DxfPoint* dxf_dimension_get_p2 ( DxfDimension dimension)

Get the definition point p2 for linear and angular dimensions of a DXF DIMENSION entity.

Returns:
the definition point p2, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 3479 of file dimension.c.

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

DxfDimension* dxf_dimension_set_p2 ( DxfDimension dimension,
DxfPoint p2 
)

Set the definition point p2 for linear and angular dimensions of a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
p2a pointer to a DXF POINT entity.

Definition at line 3518 of file dimension.c.

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

double dxf_dimension_get_x2 ( DxfDimension dimension)

Get the X-value x2 of the definition point for linear and angular dimensions of a DXF DIMENSION entity.

Returns:
the X-value x2 of the definition point, or EXIT_FAILURE when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 3560 of file dimension.c.

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

Referenced by dxf_dimension_write().

DxfDimension* dxf_dimension_set_x2 ( DxfDimension dimension,
double  x2 
)

Set the X-value x2 of the definition point for linear and angular dimensions of a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
x2the X-value x2 of the definition point.

Definition at line 3599 of file dimension.c.

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

Referenced by dxf_dimension_init().

double dxf_dimension_get_y2 ( DxfDimension dimension)

Get the Y-value y2 of the definition point for linear and angular dimensions of a DXF DIMENSION entity.

Returns:
the Y-value y2 of the definition point, or EXIT_FAILURE when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 3641 of file dimension.c.

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

Referenced by dxf_dimension_write().

DxfDimension* dxf_dimension_set_y2 ( DxfDimension dimension,
double  y2 
)

Set the Y-value y2 of the definition point for linear and angular dimensions of a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
y2the Y-coordinate value y2 of the definition point.

Definition at line 3680 of file dimension.c.

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

Referenced by dxf_dimension_init().

double dxf_dimension_get_z2 ( DxfDimension dimension)

Get the Z-value z2 of the definition point for linear and angular dimensions of a DXF DIMENSION entity.

Returns:
the Z-value z2 of the definition point, or EXIT_FAILURE when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 3723 of file dimension.c.

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

Referenced by dxf_dimension_write().

DxfDimension* dxf_dimension_set_z2 ( DxfDimension dimension,
double  z2 
)

Set the Z-value z2 of the definition point for linear and angular dimensions of a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
z2the Z-value z2 of the definition point.

Definition at line 3762 of file dimension.c.

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

Referenced by dxf_dimension_init().

DxfPoint* dxf_dimension_get_p3 ( DxfDimension dimension)

Get the definition point p3 for linear and angular dimensions for a DXF DIMENSION entity.

Returns:
the definition point p3, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 3804 of file dimension.c.

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

DxfDimension* dxf_dimension_set_p3 ( DxfDimension dimension,
DxfPoint p3 
)

Set the definition point p3 for linear and angular dimensions for a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
p3a pointer to a DXF POINT entity.

Definition at line 3843 of file dimension.c.

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

double dxf_dimension_get_x3 ( DxfDimension dimension)

Get the X-value x3 of the definition point for a linear and angular dimensions for a DXF DIMENSION entity.

Returns:
the X-value x3 of the definition point, or EXIT_FAILURE when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 3885 of file dimension.c.

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

Referenced by dxf_dimension_write().

DxfDimension* dxf_dimension_set_x3 ( DxfDimension dimension,
double  x3 
)

Set the X-value x3 of the definition point for linear and angular dimensions for a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
x3the X-coordinate value x3 of the definition point.

Definition at line 3924 of file dimension.c.

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

Referenced by dxf_dimension_init().

double dxf_dimension_get_y3 ( DxfDimension dimension)

Get the Y-value y3 of the definition point for a linear and angular dimensions for a DXF DIMENSION entity.

Returns:
the Y-value y3 of the definition point, or EXIT_FAILURE when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 3967 of file dimension.c.

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

Referenced by dxf_dimension_write().

DxfDimension* dxf_dimension_set_y3 ( DxfDimension dimension,
double  y3 
)

Set the Y-value y3 of the definition point for linear and angular dimensions for a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
y3the Y-coordinate value y3 of the definition point.

Definition at line 4006 of file dimension.c.

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

Referenced by dxf_dimension_init().

double dxf_dimension_get_z3 ( DxfDimension dimension)

Get the Z-value z3 of the definition point for a linear and angular dimensions for a DXF DIMENSION entity.

Returns:
the Z-value z3 of the definition point, or EXIT_FAILURE when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 4049 of file dimension.c.

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

Referenced by dxf_dimension_write().

DxfDimension* dxf_dimension_set_z3 ( DxfDimension dimension,
double  z3 
)

Set the Z-value z3 of the definition point for linear and angular dimensions for a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
z3the Z-coordinate value z3 of the definition point.

Definition at line 4088 of file dimension.c.

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

Referenced by dxf_dimension_init().

DxfPoint* dxf_dimension_get_p4 ( DxfDimension dimension)

Get the definition point p4 for linear and angular dimensions for a DXF DIMENSION entity.

Returns:
the definition point p4, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 4131 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_dimension_struct::p4.

DxfDimension* dxf_dimension_set_p4 ( DxfDimension dimension,
DxfPoint p4 
)

Set the definition point p4 for linear and angular dimensions for a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
p4a pointer to a DXF POINT entity.

Definition at line 4170 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_dimension_struct::p4.

double dxf_dimension_get_x4 ( DxfDimension dimension)

Get the X-value x4 of the definition point for a linear and angular dimensions for a DXF DIMENSION entity.

Returns:
the X-value x4 of the definition point, or EXIT_FAILURE when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 4212 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_dimension_struct::p4, and dxf_point_struct::x0.

Referenced by dxf_dimension_write().

DxfDimension* dxf_dimension_set_x4 ( DxfDimension dimension,
double  x4 
)

Set the X-value x4 of the definition point for linear and angular dimensions for a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
x4the X-value x4 of the definition point.

Definition at line 4251 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_dimension_struct::p4, and dxf_point_struct::x0.

Referenced by dxf_dimension_init().

double dxf_dimension_get_y4 ( DxfDimension dimension)

Get the Y-value y4 of the definition point for a linear and angular dimensions for a DXF DIMENSION entity.

Returns:
the Y-value y4 of the definition point, or EXIT_FAILURE when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 4293 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_dimension_struct::p4, and dxf_point_struct::y0.

Referenced by dxf_dimension_write().

DxfDimension* dxf_dimension_set_y4 ( DxfDimension dimension,
double  y4 
)

Set the Y-value y4 of the definition point for linear and angular dimensions for a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
y4the Y-value y4 of the definition point.

Definition at line 4332 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_dimension_struct::p4, and dxf_point_struct::y0.

Referenced by dxf_dimension_init().

double dxf_dimension_get_z4 ( DxfDimension dimension)

Get the Z-value z4 of the definition point for a linear and angular dimensions for a DXF DIMENSION entity.

Returns:
the Z-value z4 of the definition point, or EXIT_FAILURE when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 4374 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_dimension_struct::p4, and dxf_point_struct::z0.

Referenced by dxf_dimension_write().

DxfDimension* dxf_dimension_set_z4 ( DxfDimension dimension,
double  z4 
)

Set the Z-value z4 of the definition point for linear and angular dimensions for a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
z4the Z-value z4 of the definition point.

Definition at line 4413 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_dimension_struct::p4, and dxf_point_struct::z0.

Referenced by dxf_dimension_init().

DxfPoint* dxf_dimension_get_p5 ( DxfDimension dimension)

Get the definition point p5 for diameter, radius, and angular dimensions for a DXF DIMENSION entity.

Returns:
the definition point p5, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 4455 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_dimension_struct::p5.

DxfDimension* dxf_dimension_set_p5 ( DxfDimension dimension,
DxfPoint p5 
)

Set the definition point p5 for diameter, radius, and angular dimensions for a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
p5a pointer to a DXF POINT entity.

Definition at line 4494 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_dimension_struct::p5.

double dxf_dimension_get_x5 ( DxfDimension dimension)

Get the X-value x5 of the definition point for diameter, radius, and angular dimensions for a DXF DIMENSION entity.

Returns:
the X-value x5 of the definition point, or EXIT_FAILURE when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 4536 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_dimension_struct::p5, and dxf_point_struct::x0.

Referenced by dxf_dimension_write().

DxfDimension* dxf_dimension_set_x5 ( DxfDimension dimension,
double  x5 
)

Set the X-value x5 of the definition point for diameter, radius, and angular dimensions for a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
x5the X-value x5 of the definition point.

Definition at line 4575 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_dimension_struct::p5, and dxf_point_struct::x0.

Referenced by dxf_dimension_init().

double dxf_dimension_get_y5 ( DxfDimension dimension)

Get the Y-value y5 of the definition point for diameter, radius, and angular dimensions for a DXF DIMENSION entity.

Returns:
the Y-value y5 of the definition point, or EXIT_FAILURE when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 4617 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_dimension_struct::p5, and dxf_point_struct::y0.

Referenced by dxf_dimension_write().

DxfDimension* dxf_dimension_set_y5 ( DxfDimension dimension,
double  y5 
)

Set the Y-value y5 of the definition point for diameter, radius, and angular dimensions for a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
y5the Y-value y5 of the definition point.

Definition at line 4656 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_dimension_struct::p5, and dxf_point_struct::y0.

Referenced by dxf_dimension_init().

double dxf_dimension_get_z5 ( DxfDimension dimension)

Get the Z-value z5 of the definition point for diameter, radius, and angular dimensions for a DXF DIMENSION entity.

Returns:
the Z-value z5 of the definition point, or EXIT_FAILURE when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 4698 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_dimension_struct::p5, and dxf_point_struct::z0.

Referenced by dxf_dimension_write().

DxfDimension* dxf_dimension_set_z5 ( DxfDimension dimension,
double  z5 
)

Set the Z-value z5 of the definition point for diameter, radius, and angular dimensions for a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
z5the Z-value z5 of the definition point.

Definition at line 4737 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_dimension_struct::p5, and dxf_point_struct::z0.

Referenced by dxf_dimension_init().

DxfPoint* dxf_dimension_get_p6 ( DxfDimension dimension)

Get the definition point p6 defining the dimension arc for angular dimensions for a DXF DIMENSION entity.

Returns:
the definition point p6, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 4779 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_dimension_struct::p6.

DxfDimension* dxf_dimension_set_p6 ( DxfDimension dimension,
DxfPoint p6 
)

Set the definition point p6 defining the dimension arc for angular dimensions for a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
p6a pointer to a DXF POINT entity.

Definition at line 4818 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_dimension_struct::p6.

double dxf_dimension_get_x6 ( DxfDimension dimension)

Get the X-value x6 of the definition point defining the dimension arc for angular dimensions for a DXF DIMENSION entity.

Returns:
the X-value x6 of the definition point, or EXIT_FAILURE when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 4860 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_dimension_struct::p6, and dxf_point_struct::x0.

Referenced by dxf_dimension_write().

DxfDimension* dxf_dimension_set_x6 ( DxfDimension dimension,
double  x6 
)

Set the X-value x6 of the point defining the dimension arc for angular dimensions for a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
x6the X-value x6 of the definition point.

Definition at line 4899 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_dimension_struct::p6, and dxf_point_struct::x0.

Referenced by dxf_dimension_init().

double dxf_dimension_get_y6 ( DxfDimension dimension)

Get the Y-value y6 of the definition point defining the dimension arc for angular dimensions for a DXF DIMENSION entity.

Returns:
the Y-value y6 of the definition point, or EXIT_FAILURE when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 4941 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_dimension_struct::p6, and dxf_point_struct::y0.

Referenced by dxf_dimension_write().

DxfDimension* dxf_dimension_set_y6 ( DxfDimension dimension,
double  y6 
)

Set the Y-value y6 of the point defining the dimension arc for angular dimensions for a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
y6the Y-value y6 of the definition point.

Definition at line 4980 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_dimension_struct::p6, and dxf_point_struct::y0.

Referenced by dxf_dimension_init().

double dxf_dimension_get_z6 ( DxfDimension dimension)

Get the Z-value z6 of the definition point defining the dimension arc for angular dimensions for a DXF DIMENSION entity.

Returns:
the Z-value z6 of the definition point, or EXIT_FAILURE when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 5022 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_dimension_struct::p6, and dxf_point_struct::z0.

Referenced by dxf_dimension_write().

DxfDimension* dxf_dimension_set_z6 ( DxfDimension dimension,
double  z6 
)

Set the Z-value z6 of the point defining the dimension arc for angular dimensions for a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
z6the Z-value z6 of the definition point.

Definition at line 5061 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_dimension_struct::p6, and dxf_point_struct::z0.

Referenced by dxf_dimension_init().

double dxf_dimension_get_leader_length ( DxfDimension dimension)

Get the leader_length from a DXF DIMENSION entity.

Returns:
leader_length, or EXIT_FAILURE when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 5101 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_dimension_struct::leader_length.

Referenced by dxf_dimension_write().

DxfDimension* dxf_dimension_set_leader_length ( DxfDimension dimension,
double  leader_length 
)

Set the leader_length for a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
leader_lengththe leader length to be set for the entity.

Definition at line 5132 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_dimension_struct::leader_length.

Referenced by dxf_dimension_init().

double dxf_dimension_get_text_line_spacing_factor ( DxfDimension dimension)

Get the text_line_spacing factor from a DXF DIMENSION entity.

Returns:
text_line_spacing factor, or EXIT_FAILURE when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 5167 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_dimension_struct::text_line_spacing_factor.

Referenced by dxf_dimension_write().

DxfDimension* dxf_dimension_set_text_line_spacing_factor ( DxfDimension dimension,
double  text_line_spacing_factor 
)

Set the text_line_spacing factor for a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
text_line_spacing_factorthe text line spacing factor to be set for the entity.

Definition at line 5199 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_dimension_struct::text_line_spacing_factor.

Referenced by dxf_dimension_init().

double dxf_dimension_get_actual_measurement ( DxfDimension dimension)

Get the actual_measurement from a DXF DIMENSION entity.

Returns:
actual_measurement, or EXIT_FAILURE when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 5233 of file dimension.c.

References _, dxf_dimension_struct::actual_measurement, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_dimension_write().

DxfDimension* dxf_dimension_set_actual_measurement ( DxfDimension dimension,
double  actual_measurement 
)

Set the actual_measurement for a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
actual_measurementthe actual measurement to be set for the entity.

Definition at line 5264 of file dimension.c.

References _, dxf_dimension_struct::actual_measurement, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_dimension_init().

double dxf_dimension_get_angle ( DxfDimension dimension)

Get the angle of rotated, horizontal, or vertical linear dimensions from a DXF DIMENSION entity.

Returns:
angle, or EXIT_FAILURE when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 5298 of file dimension.c.

References _, dxf_dimension_struct::angle, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_dimension_write().

DxfDimension* dxf_dimension_set_angle ( DxfDimension dimension,
double  angle 
)

Set the angle of rotated, horizontal, or vertical linear dimensions for a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
anglethe angle to be set for the entity.

Definition at line 5330 of file dimension.c.

References _, dxf_dimension_struct::angle, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_dimension_init().

double dxf_dimension_get_hor_dir ( DxfDimension dimension)

Get the horizontal direction hor_dir from a DXF DIMENSION entity.

Returns:
horizontal direction hor_dir, or EXIT_FAILURE when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 5365 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_dimension_struct::hor_dir.

Referenced by dxf_dimension_write().

DxfDimension* dxf_dimension_set_hor_dir ( DxfDimension dimension,
double  hor_dir 
)

Set the horizontal direction hor_dir for a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
hor_dirthe horizontal direction to be set for the entity.

Definition at line 5397 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_dimension_struct::hor_dir.

Referenced by dxf_dimension_init().

double dxf_dimension_get_obl_angle ( DxfDimension dimension)

Get the oblique angle obl_angle from a DXF DIMENSION entity.

Returns:
oblique angle obl_angle, or EXIT_FAILURE when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 5432 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_dimension_struct::obl_angle.

Referenced by dxf_dimension_write().

DxfDimension* dxf_dimension_set_obl_angle ( DxfDimension dimension,
double  obl_angle 
)

Set the oblique angle obl_angle for a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
obl_anglethe oblique angle to be set for the entity.

Definition at line 5464 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_dimension_struct::obl_angle.

Referenced by dxf_dimension_init().

double dxf_dimension_get_text_angle ( DxfDimension dimension)

Get the text_angle from a DXF DIMENSION entity.

Returns:
text_angle, or EXIT_FAILURE when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 5497 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_dimension_struct::text_angle.

Referenced by dxf_dimension_write().

DxfDimension* dxf_dimension_set_text_angle ( DxfDimension dimension,
double  text_angle 
)

Set the text_angle for a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
text_anglethe text angle to be set for the entity.

Definition at line 5528 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_dimension_struct::text_angle.

Referenced by dxf_dimension_init().

int dxf_dimension_get_flag ( DxfDimension dimension)

Get the value of the flag of a DXF DIMENSION.

Returns:
The value of the flag, or DXF_ERROR when an error occurred.
Parameters:
dimensionPointer to the DXF DIMENSION entity.

Definition at line 5562 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_ERROR, and dxf_dimension_struct::flag.

Referenced by dxf_dimension_write().

DxfDimension* dxf_dimension_set_flag ( DxfDimension dimension,
int  flag 
)

Set the flag for a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
flagthe flag value to be set for the entity.

Definition at line 5599 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_dimension_struct::flag.

Referenced by dxf_dimension_init().

int dxf_dimension_get_attachment_point ( DxfDimension dimension)

Get the attachment_point of a DXF DIMENSION.

Returns:
The attachment_point, or DXF_ERROR when an error occurred.
Parameters:
dimensionPointer to the DXF DIMENSION entity.

Definition at line 5639 of file dimension.c.

References _, dxf_dimension_struct::attachment_point, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and DXF_ERROR.

Referenced by dxf_dimension_write().

DxfDimension* dxf_dimension_set_attachment_point ( DxfDimension dimension,
int  attachment_point 
)

Set the attachment_point for a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
attachment_pointthe attachment point to be set for the entity.

Definition at line 5683 of file dimension.c.

References _, dxf_dimension_struct::attachment_point, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_dimension_init().

int dxf_dimension_get_text_line_spacing ( DxfDimension dimension)

Get the text_line_spacing of a DXF DIMENSION.

Returns:
The text_line_spacing, or DXF_ERROR when an error occurred.
Parameters:
dimensionPointer to the DXF DIMENSION entity.

Definition at line 5730 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_ERROR, and dxf_dimension_struct::text_line_spacing.

Referenced by dxf_dimension_write().

DxfDimension* dxf_dimension_set_text_line_spacing ( DxfDimension dimension,
int  text_line_spacing 
)

Set the text line spacing for a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
text_line_spacingthe text line spacing to be set for the entity.

Definition at line 5774 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_dimension_struct::text_line_spacing.

Referenced by dxf_dimension_init().

double dxf_dimension_get_extr_x0 ( DxfDimension dimension)

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

Returns:
the X-value extr_x0 of the extrusion vector, or EXIT_FAILURE when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 5823 of file dimension.c.

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

Referenced by dxf_dimension_write().

DxfDimension* dxf_dimension_set_extr_x0 ( DxfDimension dimension,
double  extr_x0 
)

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

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

Definition at line 5855 of file dimension.c.

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

Referenced by dxf_dimension_init().

double dxf_dimension_get_extr_y0 ( DxfDimension dimension)

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

Returns:
the Y-value extr_y0 of the extrusion vector, or EXIT_FAILURE when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 5890 of file dimension.c.

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

Referenced by dxf_dimension_write().

DxfDimension* dxf_dimension_set_extr_y0 ( DxfDimension dimension,
double  extr_y0 
)

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

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

Definition at line 5922 of file dimension.c.

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

Referenced by dxf_dimension_init().

double dxf_dimension_get_extr_z0 ( DxfDimension dimension)

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

Returns:
the Z-value extr_z0 of the extrusion vector, or EXIT_FAILURE when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 5957 of file dimension.c.

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

Referenced by dxf_dimension_write().

DxfDimension* dxf_dimension_set_extr_z0 ( DxfDimension dimension,
double  extr_z0 
)

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

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

Definition at line 5989 of file dimension.c.

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

Referenced by dxf_dimension_init().

DxfPoint* dxf_dimension_get_extrusion_vector_as_point ( DxfDimension dimension)

Get the extrusion vector as a DXF POINT entity from a DXF DIMENSION entity.

Returns:
a DXF POINT containing the extrusion coordinates, or NULL when an error occurred.
Warning:
No other members are copied into the DXF POINT.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 6026 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_point_init(), dxf_dimension_struct::extr_x0, dxf_dimension_struct::extr_y0, and dxf_dimension_struct::extr_z0.

Here is the call graph for this function:

DxfDimension* dxf_dimension_set_extrusion_vector ( DxfDimension dimension,
double  extr_x0,
double  extr_y0,
double  extr_z0 
)

Set the extrusion vector values for a DXF DIMENSION entity.

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
extr_x0X-value of the extrusion direction.
extr_y0Y-value of the extrusion direction.
extr_z0Z-value of the extrusion direction.

Definition at line 6070 of file dimension.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_dimension_struct::extr_x0, dxf_dimension_struct::extr_y0, and dxf_dimension_struct::extr_z0.

DxfDimension* dxf_dimension_get_next ( DxfDimension dimension)

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

Returns:
pointer to the next DIMENSION entity, or NULL when an error occurred.
Warning:
No checks are performed on the returned pointer.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 6113 of file dimension.c.

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

Referenced by dxf_dimension_free_chain().

DxfDimension* dxf_dimension_set_next ( DxfDimension dimension,
DxfDimension next 
)

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

Returns:
a pointer to dimension when successful, or NULL when an error occurred.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.
nexta pointer to the next DIMENSION for the entity.

Definition at line 6152 of file dimension.c.

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

Referenced by dxf_dimension_init().

DxfDimension* dxf_dimension_get_last ( DxfDimension dimension)

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

Returns:
pointer to the last DIMENSION entity, or NULL when an error occurred.
Warning:
No checks are performed on the returned pointer.
Parameters:
dimensiona pointer to a DXF DIMENSION entity.

Definition at line 6196 of file dimension.c.

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