libDXF 0.0.1
A library with DXF related functions written in C.
|
Header file for a DXF imagedef object (IMAGEDEF
).
More...
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 | |
DxfImagedef * | dxf_imagedef_new () |
Allocate memory for a DxfImagedef . | |
DxfImagedef * | dxf_imagedef_init (DxfImagedef *imagedef) |
Allocate memory and initialize data fields in a IMAGEDEF object. | |
DxfImagedef * | dxf_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. | |
DxfImagedef * | dxf_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. | |
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. | |
char * | dxf_imagedef_get_dictionary_owner_hard (DxfImagedef *imagedef) |
Get the pointer to the dictionary_owner_hard from a DXF IMAGEDEF object. | |
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. | |
char * | dxf_imagedef_get_file_name (DxfImagedef *imagedef) |
Get the file_name from a DXF IMAGEDEF object. | |
DxfImagedef * | dxf_imagedef_set_file_name (DxfImagedef *imagedef, char *file_name) |
Set the file_name for a DXF IMAGEDEF object. | |
DxfPoint * | dxf_imagedef_get_p0 (DxfImagedef *imagedef) |
Get the image size in pixels p0 of a DXF IMAGEDEF object. | |
DxfImagedef * | dxf_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. | |
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. | |
double | dxf_imagedef_get_y0 (DxfImagedef *imagedef) |
Get the V-value of the image size in pixels y0 of a DXF IMAGEDEF object. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
int32_t | dxf_imagedef_get_class_version (DxfImagedef *imagedef) |
Get the class_version from a DXF IMAGEDEF object. | |
DxfImagedef * | dxf_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. | |
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. | |
int | dxf_imagedef_get_resolution_units (DxfImagedef *imagedef) |
Get the resolution_units from a DXF IMAGEDEF object. | |
DxfImagedef * | dxf_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. | |
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. | |
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. | |
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. | |
DxfImagedef * | dxf_imagedef_get_next (DxfImagedef *imagedef) |
Get the pointer to the next IMAGEDEF object from a DXF IMAGEDEF object. | |
DxfImagedef * | dxf_imagedef_set_next (DxfImagedef *imagedef, DxfImagedef *next) |
Set the pointer to the next IMAGEDEF for a DXF IMAGEDEF object. | |
DxfImagedef * | dxf_imagedef_get_last (DxfImagedef *imagedef) |
Get the pointer to the last IMAGEDEF object from a linked list of DXF IMAGEDEF objects. |
Header file for a DXF imagedef object (IMAGEDEF
).
IMAGEDEF
object was introduced in DXF R14.IMAGEDEF
object requires AutoCAD version R14 or higher.
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 struct dxf_imagedef_struct DxfImagedef |
DXF definition of an AutoCAD imagedef object (IMAGEDEF
).
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 | ) |
Allocate memory and initialize data fields in a IMAGEDEF
object.
NULL
when no memory was allocated, a pointer to the allocated memory when succesful. imagedef | DXF IMAGEDEF object. |
Definition at line 92 of file imagedef.c.
References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_imagedef_get_imagedef_reactor(), dxf_imagedef_new(), dxf_imagedef_reactor_init(), dxf_imagedef_reactor_new(), dxf_imagedef_set_acad_image_dict_soft(), dxf_imagedef_set_class_version(), dxf_imagedef_set_dictionary_owner_hard(), dxf_imagedef_set_dictionary_owner_soft(), dxf_imagedef_set_file_name(), dxf_imagedef_set_id_code(), dxf_imagedef_set_image_is_loaded_flag(), dxf_imagedef_set_imagedef_reactor(), dxf_imagedef_set_next(), dxf_imagedef_set_resolution_units(), dxf_imagedef_set_x0(), and dxf_imagedef_set_y0().
Referenced by dxf_imagedef_read().
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
.
a
pointer to imagedef
. fp | DXF file pointer to an input file (or device). |
imagedef | DXF 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.
int dxf_imagedef_write | ( | DxfFile * | fp, |
DxfImagedef * | imagedef | ||
) |
Write DXF output to a file for a DXF IMAGEDEF
object.
EXIT_SUCCESS
when done, or EXIT_FAILURE
when an error occurred. fp | DXF file pointer to an output file (or device). |
imagedef | DXF 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.
int dxf_imagedef_free | ( | DxfImagedef * | imagedef | ) |
Free the allocated memory for a DXF IMAGEDEF
and all it's data fields.
EXIT_SUCCESS
when done, or EXIT_FAILURE
when an error occurred. imagedef | Pointer 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.
imagedefs | pointer 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.
int dxf_imagedef_get_id_code | ( | DxfImagedef * | imagedef | ) |
Get the id_code
from a DXF IMAGEDEF
object.
id_code
when successful, or EXIT_FAILURE
when an error occurred. imagedef | a 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.
imagedef
when successful, or NULL
when an error occurred. imagedef | a pointer to a DXF IMAGEDEF object. |
id_code | Identification 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.
dictionary_owner_soft
when successful, or NULL
when an error occurred.imagedef | a 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.
imagedef
when successful, or NULL
when an error occurred. imagedef | a pointer to a DXF IMAGEDEF object. |
dictionary_owner_soft | a 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.
dictionary_owner_hard
when successful, or NULL
when an error occurred.imagedef | a 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.
imagedef
when successful, or NULL
when an error occurred. imagedef | a pointer to a DXF IMAGEDEF object. |
dictionary_owner_hard | a 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.
file_name
when sucessful, or NULL
when an error occurred. imagedef | a 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.
imagedef
when successful, or NULL
when an error occurred. imagedef | a pointer to a DXF IMAGEDEF object. |
file_name | a 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.
p0
. imagedef | a 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.
IMAGEDEF
object. imagedef | a pointer to a DXF IMAGEDEF object. |
p0 | a 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.
x0
. imagedef | a 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.
imagedef
when successful, or NULL
when an error occurred. imagedef | a pointer to a DXF IMAGEDEF object. |
x0 | the 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.
y0
. imagedef | a 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.
imagedef
when successful, or NULL
when an error occurred. imagedef | a pointer to a DXF IMAGEDEF object. |
y0 | the 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.
p1
. imagedef | a 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.
IMAGEDEF
object. imagedef | a pointer to a DXF IMAGEDEF object. |
p1 | a 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.
x1
. imagedef | a 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.
imagedef
when successful, or NULL
when an error occurred. imagedef | a pointer to a DXF IMAGEDEF object. |
x1 | the 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.
y1
. imagedef | a 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.
imagedef
when successful, or NULL
when an error occurred. imagedef | a pointer to a DXF IMAGEDEF object. |
y1 | the 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.
class_version
when successful, or EXIT_FAILURE
when an error occurred. imagedef | a 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.
imagedef
when successful, or NULL
when an error occurred. imagedef | a pointer to a DXF IMAGE entity. |
class_version | the 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.
image_is_loaded_flag
when successful, or EXIT_FAILURE
when an error occurred. imagedef | a 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.
imagedef
when successful, or NULL
when an error occurred. imagedef | a pointer to a DXF IMAGEDEF object. |
image_is_loaded_flag | image_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.
resolution_units
when successful, or EXIT_FAILURE
when an error occurred. imagedef | a 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.
imagedef
when successful, or NULL
when an error occurred. imagedef | a pointer to a DXF IMAGEDEF object. |
resolution_units | resolution_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.
acad_image_dict_soft
when successful, or NULL
when an error occurred.imagedef | a 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.
imagedef
when successful, or NULL
when an error occurred. imagedef | a pointer to a DXF IMAGEDEF object. |
acad_image_dict_soft | a 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.
imagedef_reactor
object.imagedef | a 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.
imagedef | a pointer to a DXF IMAGEDEF object. |
imagedef_reactor | a 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.
IMAGEDEF
object.imagedef | a 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.
imagedef | a pointer to a DXF IMAGEDEF object. |
next | a 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.
IMAGEDEF
object.imagedef | a 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.