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

imagedef.h File Reference

Header file for a DXF imagedef object (IMAGEDEF). More...

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

Go to the source code of this file.

Data Structures

struct  dxf_imagedef_struct
 DXF definition of an AutoCAD imagedef object (IMAGEDEF). More...

Typedefs

typedef struct dxf_imagedef_struct DxfImagedef
 DXF definition of an AutoCAD imagedef object (IMAGEDEF).

Functions

DxfImagedefdxf_imagedef_new ()
 Allocate memory for a DxfImagedef.
DxfImagedefdxf_imagedef_init (DxfImagedef *imagedef)
 Allocate memory and initialize data fields in a IMAGEDEF object.
DxfImagedefdxf_imagedef_read (DxfFile *fp, DxfImagedef *imagedef)
 Read data from a DXF file into a DXF IMAGEDEF object.
int dxf_imagedef_write (DxfFile *fp, DxfImagedef *imagedef)
 Write DXF output to a file for a DXF IMAGEDEF object.
int dxf_imagedef_free (DxfImagedef *imagedef)
 Free the allocated memory for a DXF IMAGEDEF and all it's data fields.
void dxf_imagedef_free_chain (DxfImagedef *imagedefs)
 Free the allocated memory for a chain of DXF IMAGEDEF objects and all their data fields.
int dxf_imagedef_get_id_code (DxfImagedef *imagedef)
 Get the id_code from a DXF IMAGEDEF object.
DxfImagedefdxf_imagedef_set_id_code (DxfImagedef *imagedef, int id_code)
 Set the id_code for a DXF IMAGEDEF object.
char * dxf_imagedef_get_dictionary_owner_soft (DxfImagedef *imagedef)
 Get the pointer to the dictionary_owner_soft from a DXF IMAGEDEF object.
DxfImagedefdxf_imagedef_set_dictionary_owner_soft (DxfImagedef *imagedef, char *dictionary_owner_soft)
 Set the pointer to the dictionary_owner_soft for a DXF IMAGEDEF object.
char * dxf_imagedef_get_dictionary_owner_hard (DxfImagedef *imagedef)
 Get the pointer to the dictionary_owner_hard from a DXF IMAGEDEF object.
DxfImagedefdxf_imagedef_set_dictionary_owner_hard (DxfImagedef *imagedef, char *dictionary_owner_hard)
 Set the pointer to the dictionary_owner_hard for a DXF IMAGEDEF object.
char * dxf_imagedef_get_file_name (DxfImagedef *imagedef)
 Get the file_name from a DXF IMAGEDEF object.
DxfImagedefdxf_imagedef_set_file_name (DxfImagedef *imagedef, char *file_name)
 Set the file_name for a DXF IMAGEDEF object.
DxfPointdxf_imagedef_get_p0 (DxfImagedef *imagedef)
 Get the image size in pixels p0 of a DXF IMAGEDEF object.
DxfImagedefdxf_imagedef_set_p0 (DxfImagedef *imagedef, DxfPoint *p0)
 Set the image size in pixels p0 of a DXF IMAGEDEF object.
double dxf_imagedef_get_x0 (DxfImagedef *imagedef)
 Get the U-value of the image size in pixels x0 of a DXF IMAGEDEF object.
DxfImagedefdxf_imagedef_set_x0 (DxfImagedef *imagedef, double x0)
 Set the U-value of the image size in pixels x0 of a DXF IMAGEDEF object.
double dxf_imagedef_get_y0 (DxfImagedef *imagedef)
 Get the V-value of the image size in pixels y0 of a DXF IMAGEDEF object.
DxfImagedefdxf_imagedef_set_y0 (DxfImagedef *imagedef, double y0)
 Set the V-value of the image size in pixels y0 of a DXF IMAGEDEF object.
DxfPointdxf_imagedef_get_p1 (DxfImagedef *imagedef)
 Get the default size of one pixel in AutoCAD units (U and V values) p1 of a DXF IMAGEDEF object.
DxfImagedefdxf_imagedef_set_p1 (DxfImagedef *imagedef, DxfPoint *p1)
 Set the default size of one pixel in AutoCAD units (U and V values) p1 of a DXF IMAGEDEF object.
double dxf_imagedef_get_x1 (DxfImagedef *imagedef)
 Get the U-value of the default size of one pixel in AutoCAD units x1 of a DXF IMAGEDEF object.
DxfImagedefdxf_imagedef_set_x1 (DxfImagedef *imagedef, double x1)
 Set the U-value of the default size of one pixel in AutoCAD units x1 of a DXF IMAGEDEF object.
double dxf_imagedef_get_y1 (DxfImagedef *imagedef)
 Get the V-value of the default size of one pixel in AutoCAD units y1 of a DXF IMAGEDEF object.
DxfImagedefdxf_imagedef_set_y1 (DxfImagedef *imagedef, double y1)
 Set the V-value of the default size of one pixel in AutoCAD units y1 of a DXF IMAGEDEF object.
int32_t dxf_imagedef_get_class_version (DxfImagedef *imagedef)
 Get the class_version from a DXF IMAGEDEF object.
DxfImagedefdxf_imagedef_set_class_version (DxfImagedef *imagedef, int32_t class_version)
 Set the class_version for a DXF IMAGEDEF object.
int dxf_imagedef_get_image_is_loaded_flag (DxfImagedef *imagedef)
 Get the image_is_loaded_flag from a DXF IMAGEDEF object.
DxfImagedefdxf_imagedef_set_image_is_loaded_flag (DxfImagedef *imagedef, int image_is_loaded_flag)
 Set the image_is_loaded_flag for a DXF IMAGEDEF object.
int dxf_imagedef_get_resolution_units (DxfImagedef *imagedef)
 Get the resolution_units from a DXF IMAGEDEF object.
DxfImagedefdxf_imagedef_set_resolution_units (DxfImagedef *imagedef, int resolution_units)
 Set the resolution_units for a DXF IMAGEDEF object.
char * dxf_imagedef_get_acad_image_dict_soft (DxfImagedef *imagedef)
 Get the pointer to the acad_image_dict_soft from a DXF IMAGEDEF object.
DxfImagedefdxf_imagedef_set_acad_image_dict_soft (DxfImagedef *imagedef, char *acad_image_dict_soft)
 Set the pointer to the acad_image_dict_soft for a DXF IMAGEDEF object.
DxfImagedefReactordxf_imagedef_get_imagedef_reactor (DxfImagedef *imagedef)
 Get the pointer to the first imagedef_reactor object in a linked list, from a DXF IMAGEDEF object.
DxfImagedefdxf_imagedef_set_imagedef_reactor (DxfImagedef *imagedef, DxfImagedefReactor *imagedef_reactor)
 Set the pointer to the first imagedef_reactor object in a linked list, for a DXF IMAGEDEF object.
DxfImagedefdxf_imagedef_get_next (DxfImagedef *imagedef)
 Get the pointer to the next IMAGEDEF object from a DXF IMAGEDEF object.
DxfImagedefdxf_imagedef_set_next (DxfImagedef *imagedef, DxfImagedef *next)
 Set the pointer to the next IMAGEDEF for a DXF IMAGEDEF object.
DxfImagedefdxf_imagedef_get_last (DxfImagedef *imagedef)
 Get the pointer to the last IMAGEDEF object from a linked list of DXF IMAGEDEF objects.

Detailed Description

Header file for a DXF imagedef object (IMAGEDEF).

Author:
Copyright (C) 2015, 2016, 2017 by Bert Timmerman <bert.timmerman@xs4all.nl>.
Since:
The IMAGEDEF object was introduced in DXF R14.
Warning:
The IMAGEDEF object requires AutoCAD version R14 or higher.
Version:
According to DXF R10 (backward compatibility).
According to DXF R11 (backward compatibility).
According to DXF R12 (backward compatibility).
According to DXF R13 (backward compatibility).
According to DXF R14.

Copyright Notices.


This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to:
Free Software Foundation, Inc.,
59 Temple Place,
Suite 330,
Boston,
MA 02111 USA.

Drawing eXchange Format (DXF) is a defacto industry standard for the exchange of drawing files between various Computer Aided Drafting programs.
DXF is an industry standard designed by Autodesk(TM).
For more details see http://www.autodesk.com.


Definition in file imagedef.h.


Typedef Documentation

DXF definition of an AutoCAD imagedef object (IMAGEDEF).


Function Documentation

DxfImagedef* dxf_imagedef_new ( )

Allocate memory for a DxfImagedef.

Fill the memory contents with zeros.

Definition at line 54 of file imagedef.c.

References _, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_imagedef_init(), and dxf_imagedef_read().

DxfImagedef* dxf_imagedef_init ( DxfImagedef imagedef)
DxfImagedef* dxf_imagedef_read ( DxfFile fp,
DxfImagedef imagedef 
)

Read data from a DXF file into a DXF IMAGEDEF object.

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

Returns:
a pointer to imagedef.

Todo:
Check for overrun of array index.

Parameters:
fpDXF file pointer to an input file (or device).
imagedefDXF IMAGEDEF object.

Definition at line 150 of file imagedef.c.

References _, dxf_imagedef_struct::acad_image_dict_soft, dxf_file_struct::acad_version_number, AutoCAD_13, AutoCAD_14, dxf_imagedef_struct::class_version, dxf_imagedef_struct::dictionary_owner_hard, dxf_imagedef_struct::dictionary_owner_soft, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_imagedef_init(), dxf_imagedef_new(), dxf_imagedef_struct::file_name, dxf_file_struct::filename, dxf_file_struct::fp, dxf_imagedef_struct::id_code, dxf_imagedef_struct::image_is_loaded_flag, dxf_imagedef_struct::imagedef_reactor_soft, dxf_file_struct::line_number, dxf_imagedef_struct::resolution_units, dxf_imagedef_struct::x0, dxf_imagedef_struct::x1, dxf_imagedef_struct::y0, and dxf_imagedef_struct::y1.

Here is the call graph for this function:

int dxf_imagedef_write ( DxfFile fp,
DxfImagedef imagedef 
)

Write DXF output to a file for a DXF IMAGEDEF object.

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).
imagedefDXF IMAGEDEF object.

Definition at line 346 of file imagedef.c.

References _, dxf_file_struct::acad_version_number, AutoCAD_13, AutoCAD_14, dxf_imagedef_struct::dictionary_owner_hard, dxf_imagedef_struct::dictionary_owner_soft, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_imagedef_get_acad_image_dict_soft(), dxf_imagedef_get_class_version(), dxf_imagedef_get_dictionary_owner_hard(), dxf_imagedef_get_dictionary_owner_soft(), dxf_imagedef_get_file_name(), dxf_imagedef_get_id_code(), dxf_imagedef_get_image_is_loaded_flag(), dxf_imagedef_get_imagedef_reactor(), dxf_imagedef_get_resolution_units(), dxf_imagedef_get_x0(), dxf_imagedef_get_x1(), dxf_imagedef_get_y0(), dxf_imagedef_get_y1(), dxf_imagedef_reactor_get_associated_image_object(), dxf_imagedef_reactor_get_next(), dxf_file_struct::fp, and dxf_imagedef_struct::id_code.

Here is the call graph for this function:

int dxf_imagedef_free ( DxfImagedef imagedef)

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

Returns:
EXIT_SUCCESS when done, or EXIT_FAILURE when an error occurred.
Parameters:
imagedefPointer to the memory occupied by the DXF IMAGEDEF object.

Definition at line 454 of file imagedef.c.

References _, dxf_imagedef_struct::acad_image_dict_soft, dxf_imagedef_struct::dictionary_owner_hard, dxf_imagedef_struct::dictionary_owner_soft, DXF_DEBUG_BEGIN, DXF_DEBUG_END, DXF_MAX_PARAM, dxf_imagedef_struct::file_name, dxf_imagedef_struct::imagedef_reactor_soft, and dxf_imagedef_struct::next.

Referenced by dxf_imagedef_free_chain().

void dxf_imagedef_free_chain ( DxfImagedef imagedefs)

Free the allocated memory for a chain of DXF IMAGEDEF objects and all their data fields.

Parameters:
imagedefspointer to the chain of DXF IMAGEDEF objects.

Definition at line 503 of file imagedef.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_imagedef_free(), and dxf_imagedef_struct::next.

Here is the call graph for this function:

int dxf_imagedef_get_id_code ( DxfImagedef imagedef)

Get the id_code from a DXF IMAGEDEF object.

Returns:
id_code when successful, or EXIT_FAILURE when an error occurred.
Parameters:
imagedefa pointer to a DXF IMAGEDEF object.

Definition at line 537 of file imagedef.c.

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

Referenced by dxf_imagedef_write().

DxfImagedef* dxf_imagedef_set_id_code ( DxfImagedef imagedef,
int  id_code 
)

Set the id_code for a DXF IMAGEDEF object.

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

Definition at line 575 of file imagedef.c.

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

Referenced by dxf_imagedef_init().

char* dxf_imagedef_get_dictionary_owner_soft ( DxfImagedef imagedef)

Get the pointer to the dictionary_owner_soft from a DXF IMAGEDEF object.

Returns:
a pointer to dictionary_owner_soft when successful, or NULL when an error occurred.
Warning:
No checks are performed on the returned pointer.
Parameters:
imagedefa pointer to a DXF IMAGEDEF object.

Definition at line 621 of file imagedef.c.

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

Referenced by dxf_imagedef_write().

DxfImagedef* dxf_imagedef_set_dictionary_owner_soft ( DxfImagedef imagedef,
char *  dictionary_owner_soft 
)

Set the pointer to the dictionary_owner_soft for a DXF IMAGEDEF object.

Returns:
a pointer to imagedef when successful, or NULL when an error occurred.
Parameters:
imagedefa pointer to a DXF IMAGEDEF object.
dictionary_owner_softa string containing the pointer to the dictionary_owner_soft for the entity.

Definition at line 660 of file imagedef.c.

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

Referenced by dxf_imagedef_init().

char* dxf_imagedef_get_dictionary_owner_hard ( DxfImagedef imagedef)

Get the pointer to the dictionary_owner_hard from a DXF IMAGEDEF object.

Returns:
a pointer to dictionary_owner_hard when successful, or NULL when an error occurred.
Warning:
No checks are performed on the returned pointer.
Parameters:
imagedefa pointer to a DXF IMAGEDEF object.

Definition at line 705 of file imagedef.c.

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

Referenced by dxf_imagedef_write().

DxfImagedef* dxf_imagedef_set_dictionary_owner_hard ( DxfImagedef imagedef,
char *  dictionary_owner_hard 
)

Set the pointer to the dictionary_owner_hard for a DXF IMAGEDEF object.

Returns:
a pointer to imagedef when successful, or NULL when an error occurred.
Parameters:
imagedefa pointer to a DXF IMAGEDEF object.
dictionary_owner_harda string containing the pointer to the dictionary_owner_hard for the entity.

Definition at line 744 of file imagedef.c.

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

Referenced by dxf_imagedef_init().

char* dxf_imagedef_get_file_name ( DxfImagedef imagedef)

Get the file_name from a DXF IMAGEDEF object.

Returns:
file_name when sucessful, or NULL when an error occurred.
Parameters:
imagedefa pointer to a DXF IMAGEDEF object.

Definition at line 785 of file imagedef.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_imagedef_struct::file_name.

Referenced by dxf_imagedef_write().

DxfImagedef* dxf_imagedef_set_file_name ( DxfImagedef imagedef,
char *  file_name 
)

Set the file_name for a DXF IMAGEDEF object.

Returns:
a pointer to imagedef when successful, or NULL when an error occurred.
Parameters:
imagedefa pointer to a DXF IMAGEDEF object.
file_namea string containing the file_name for the object.

Definition at line 823 of file imagedef.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_imagedef_struct::file_name.

Referenced by dxf_imagedef_init().

DxfPoint* dxf_imagedef_get_p0 ( DxfImagedef imagedef)

Get the image size in pixels p0 of a DXF IMAGEDEF object.

Returns:
the image size in pixels p0.
Parameters:
imagedefa pointer to a DXF IMAGEDEF object.

Definition at line 864 of file imagedef.c.

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

DxfImagedef* dxf_imagedef_set_p0 ( DxfImagedef imagedef,
DxfPoint p0 
)

Set the image size in pixels p0 of a DXF IMAGEDEF object.

Returns:
a pointer to a DXF IMAGEDEF object.
Parameters:
imagedefa pointer to a DXF IMAGEDEF object.
p0a pointer to a DXF POINT entity.

Definition at line 901 of file imagedef.c.

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

double dxf_imagedef_get_x0 ( DxfImagedef imagedef)

Get the U-value of the image size in pixels x0 of a DXF IMAGEDEF object.

Returns:
the U-value of the image size in pixels x0.
Parameters:
imagedefa pointer to a DXF IMAGEDEF object.

Definition at line 942 of file imagedef.c.

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

Referenced by dxf_imagedef_write().

DxfImagedef* dxf_imagedef_set_x0 ( DxfImagedef imagedef,
double  x0 
)

Set the U-value of the image size in pixels x0 of a DXF IMAGEDEF object.

Returns:
a pointer to imagedef when successful, or NULL when an error occurred.
Parameters:
imagedefa pointer to a DXF IMAGEDEF object.
x0the U-value of the image size in pixels x0 of a DXF IMAGEDEF object.

Definition at line 982 of file imagedef.c.

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

Referenced by dxf_imagedef_init().

double dxf_imagedef_get_y0 ( DxfImagedef imagedef)

Get the V-value of the image size in pixels y0 of a DXF IMAGEDEF object.

Returns:
the V-value of the image size in pixels y0.
Parameters:
imagedefa pointer to a DXF IMAGEDEF object.

Definition at line 1024 of file imagedef.c.

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

Referenced by dxf_imagedef_write().

DxfImagedef* dxf_imagedef_set_y0 ( DxfImagedef imagedef,
double  y0 
)

Set the V-value of the image size in pixels y0 of a DXF IMAGEDEF object.

Returns:
a pointer to imagedef when successful, or NULL when an error occurred.
Parameters:
imagedefa pointer to a DXF IMAGEDEF object.
y0the V-value of the image size in pixels y0 of a DXF IMAGEDEF object.

Definition at line 1064 of file imagedef.c.

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

Referenced by dxf_imagedef_init().

DxfPoint* dxf_imagedef_get_p1 ( DxfImagedef imagedef)

Get the default size of one pixel in AutoCAD units (U and V values) p1 of a DXF IMAGEDEF object.

Returns:
the default size of one pixel p1.
Parameters:
imagedefa pointer to a DXF IMAGEDEF object.

Definition at line 1106 of file imagedef.c.

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

DxfImagedef* dxf_imagedef_set_p1 ( DxfImagedef imagedef,
DxfPoint p1 
)

Set the default size of one pixel in AutoCAD units (U and V values) p1 of a DXF IMAGEDEF object.

Returns:
a pointer to a DXF IMAGEDEF object.
Parameters:
imagedefa pointer to a DXF IMAGEDEF object.
p1a pointer to a DXF POINT entity.

Definition at line 1144 of file imagedef.c.

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

double dxf_imagedef_get_x1 ( DxfImagedef imagedef)

Get the U-value of the default size of one pixel in AutoCAD units x1 of a DXF IMAGEDEF object.

Returns:
the U-value of the default size of one pixel x1.
Parameters:
imagedefa pointer to a DXF IMAGEDEF object.

Definition at line 1185 of file imagedef.c.

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

Referenced by dxf_imagedef_write().

DxfImagedef* dxf_imagedef_set_x1 ( DxfImagedef imagedef,
double  x1 
)

Set the U-value of the default size of one pixel in AutoCAD units x1 of a DXF IMAGEDEF object.

Returns:
a pointer to imagedef when successful, or NULL when an error occurred.
Parameters:
imagedefa pointer to a DXF IMAGEDEF object.
x1the U-value of the default size of one pixel in AutoCAD units x1 of a DXF IMAGEDEF object.

Definition at line 1225 of file imagedef.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_imagedef_struct::p1, dxf_point_struct::x0, and dxf_imagedef_struct::x1.

double dxf_imagedef_get_y1 ( DxfImagedef imagedef)

Get the V-value of the default size of one pixel in AutoCAD units y1 of a DXF IMAGEDEF object.

Returns:
the V-value of the default size of one pixel y1.
Parameters:
imagedefa pointer to a DXF IMAGEDEF object.

Definition at line 1267 of file imagedef.c.

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

Referenced by dxf_imagedef_write().

DxfImagedef* dxf_imagedef_set_y1 ( DxfImagedef imagedef,
double  y1 
)

Set the V-value of the default size of one pixel in AutoCAD units y1 of a DXF IMAGEDEF object.

Returns:
a pointer to imagedef when successful, or NULL when an error occurred.
Parameters:
imagedefa pointer to a DXF IMAGEDEF object.
y1the V-value of the default size of one pixel in AutoCAD units y1 of a DXF IMAGEDEF object.

Definition at line 1307 of file imagedef.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_imagedef_struct::p1, dxf_point_struct::y0, and dxf_imagedef_struct::y1.

int32_t dxf_imagedef_get_class_version ( DxfImagedef imagedef)

Get the class_version from a DXF IMAGEDEF object.

Returns:
class_version when successful, or EXIT_FAILURE when an error occurred.
Parameters:
imagedefa pointer to a DXF IMAGEDEF object.

Definition at line 1349 of file imagedef.c.

References _, dxf_imagedef_struct::class_version, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_imagedef_write().

DxfImagedef* dxf_imagedef_set_class_version ( DxfImagedef imagedef,
int32_t  class_version 
)

Set the class_version for a DXF IMAGEDEF object.

Returns:
a pointer to imagedef when successful, or NULL when an error occurred.
Parameters:
imagedefa pointer to a DXF IMAGE entity.
class_versionthe class_version to be set for the object.

Definition at line 1394 of file imagedef.c.

References _, dxf_imagedef_struct::class_version, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_imagedef_init().

int dxf_imagedef_get_image_is_loaded_flag ( DxfImagedef imagedef)

Get the image_is_loaded_flag from a DXF IMAGEDEF object.

Returns:
image_is_loaded_flag when successful, or EXIT_FAILURE when an error occurred.
Parameters:
imagedefa pointer to a DXF IMAGEDEF object.

Definition at line 1442 of file imagedef.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_imagedef_struct::image_is_loaded_flag.

Referenced by dxf_imagedef_write().

DxfImagedef* dxf_imagedef_set_image_is_loaded_flag ( DxfImagedef imagedef,
int  image_is_loaded_flag 
)

Set the image_is_loaded_flag for a DXF IMAGEDEF object.

Returns:
a pointer to imagedef when successful, or NULL when an error occurred.
Parameters:
imagedefa pointer to a DXF IMAGEDEF object.
image_is_loaded_flagimage_is_loaded_flag.

Definition at line 1487 of file imagedef.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_imagedef_struct::image_is_loaded_flag.

Referenced by dxf_imagedef_init().

int dxf_imagedef_get_resolution_units ( DxfImagedef imagedef)

Get the resolution_units from a DXF IMAGEDEF object.

Returns:
resolution_units when successful, or EXIT_FAILURE when an error occurred.
Parameters:
imagedefa pointer to a DXF IMAGEDEF object.

Definition at line 1535 of file imagedef.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_imagedef_struct::resolution_units.

Referenced by dxf_imagedef_write().

DxfImagedef* dxf_imagedef_set_resolution_units ( DxfImagedef imagedef,
int  resolution_units 
)

Set the resolution_units for a DXF IMAGEDEF object.

Returns:
a pointer to imagedef when successful, or NULL when an error occurred.
Parameters:
imagedefa pointer to a DXF IMAGEDEF object.
resolution_unitsresolution_units.

Definition at line 1580 of file imagedef.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_imagedef_struct::resolution_units.

Referenced by dxf_imagedef_init().

char* dxf_imagedef_get_acad_image_dict_soft ( DxfImagedef imagedef)

Get the pointer to the acad_image_dict_soft from a DXF IMAGEDEF object.

Returns:
a pointer to acad_image_dict_soft when successful, or NULL when an error occurred.
Warning:
No checks are performed on the returned pointer.
Parameters:
imagedefa pointer to a DXF IMAGEDEF object.

Definition at line 1631 of file imagedef.c.

References _, dxf_imagedef_struct::acad_image_dict_soft, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_imagedef_write().

DxfImagedef* dxf_imagedef_set_acad_image_dict_soft ( DxfImagedef imagedef,
char *  acad_image_dict_soft 
)

Set the pointer to the acad_image_dict_soft for a DXF IMAGEDEF object.

Returns:
a pointer to imagedef when successful, or NULL when an error occurred.
Parameters:
imagedefa pointer to a DXF IMAGEDEF object.
acad_image_dict_softa string containing the pointer to the acad_image_dict_soft for the entity.

Definition at line 1670 of file imagedef.c.

References _, dxf_imagedef_struct::acad_image_dict_soft, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_imagedef_init().

DxfImagedefReactor* dxf_imagedef_get_imagedef_reactor ( DxfImagedef imagedef)

Get the pointer to the first imagedef_reactor object in a linked list, from a DXF IMAGEDEF object.

Returns:
pointer to the imagedef_reactor object.
Warning:
No checks are performed on the returned pointer.
Parameters:
imagedefa pointer to a DXF IMAGEDEF object.

Definition at line 1714 of file imagedef.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_imagedef_struct::imagedef_reactor.

Referenced by dxf_imagedef_init(), and dxf_imagedef_write().

DxfImagedef* dxf_imagedef_set_imagedef_reactor ( DxfImagedef imagedef,
DxfImagedefReactor imagedef_reactor 
)

Set the pointer to the first imagedef_reactor object in a linked list, for a DXF IMAGEDEF object.

Parameters:
imagedefa pointer to a DXF IMAGEDEF object.
imagedef_reactora pointer to the first imagedef_reactor object of a linked list of imagedef_reactor objects.

Definition at line 1750 of file imagedef.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_imagedef_struct::imagedef_reactor.

Referenced by dxf_imagedef_init().

DxfImagedef* dxf_imagedef_get_next ( DxfImagedef imagedef)

Get the pointer to the next IMAGEDEF object from a DXF IMAGEDEF object.

Returns:
pointer to the next IMAGEDEF object.
Warning:
No checks are performed on the returned pointer.
Parameters:
imagedefa pointer to a DXF IMAGEDEF object.

Definition at line 1794 of file imagedef.c.

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

DxfImagedef* dxf_imagedef_set_next ( DxfImagedef imagedef,
DxfImagedef next 
)

Set the pointer to the next IMAGEDEF for a DXF IMAGEDEF object.

Parameters:
imagedefa pointer to a DXF IMAGEDEF object.
nexta pointer to the next IMAGEDEF for the object.

Definition at line 1830 of file imagedef.c.

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

Referenced by dxf_imagedef_init().

DxfImagedef* dxf_imagedef_get_last ( DxfImagedef imagedef)

Get the pointer to the last IMAGEDEF object from a linked list of DXF IMAGEDEF objects.

Returns:
pointer to the last IMAGEDEF object.
Warning:
No checks are performed on the returned pointer.
Parameters:
imagedefa pointer to a DXF IMAGEDEF object.

Definition at line 1873 of file imagedef.c.

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