libDXF 0.0.1
A library with DXF related functions written in C.
|
DXF definition of an AutoCAD hatch entity. More...
#include <hatch.h>
Data Fields | |
int | id_code |
char * | linetype |
char * | layer |
double | elevation |
double | thickness |
double | linetype_scale |
int16_t | visibility |
int | color |
int | paperspace |
int | graphics_data_size |
struct DxfBinaryGraphicsData * | binary_graphics_data |
char * | dictionary_owner_soft |
char * | dictionary_owner_hard |
char * | pattern_name |
double | x0 |
double | y0 |
double | z0 |
double | pattern_scale |
double | pixel_size |
double | pattern_angle |
int | solid_fill |
int | associative |
int | hatch_style |
int | hatch_pattern_type |
int | pattern_double |
int | number_of_pattern_def_lines |
int | number_of_boundary_paths |
int | number_of_seed_points |
double | extr_x0 |
double | extr_y0 |
double | extr_z0 |
struct DxfHatchBoundaryPath * | paths |
struct DxfHatchPattern * | patterns |
struct DxfHatchPatternDefLine * | def_lines |
struct DxfHatchPatternSeedPoint * | seed_points |
struct DxfHatch * | next |
Identification number for the entity.
This is to be an unique (sequential) number in the DXF file.
Group code = 5.
Definition at line 440 of file hatch.h.
Referenced by dxf_hatch_get_id_code(), dxf_hatch_init(), dxf_hatch_set_id_code(), and dxf_hatch_write().
The linetype of the entity.
Defaults to BYLAYER
if ommitted in the DXF file.
Group code = 6.
Definition at line 445 of file hatch.h.
Referenced by dxf_hatch_free(), dxf_hatch_get_linetype(), dxf_hatch_init(), dxf_hatch_set_linetype(), and dxf_hatch_write().
char* dxf_hatch_struct::layer |
Layer on which the entity is drawn.
Defaults to layer "0" if no valid layername is given.
Group code = 8.
Definition at line 449 of file hatch.h.
Referenced by dxf_hatch_free(), dxf_hatch_get_layer(), dxf_hatch_init(), dxf_hatch_set_layer(), and dxf_hatch_write().
double dxf_hatch_struct::elevation |
Elevation of the arc in the local Z-direction.
Defaults to 0.0 if omitted in the DXF file, or prior to DXF version R12, or DXF_FLATLAND equals 0 (default).
Group code = 38.
Definition at line 453 of file hatch.h.
Referenced by dxf_hatch_get_elevation(), dxf_hatch_set_elevation(), and dxf_hatch_write().
double dxf_hatch_struct::thickness |
Thickness of the arc in the local Z-direction.
Defaults to 0.0 if ommitted in the DXF file.
Group code = 39.
Definition at line 458 of file hatch.h.
Referenced by dxf_hatch_get_thickness(), dxf_hatch_init(), dxf_hatch_set_thickness(), and dxf_hatch_write().
Linetype scale (optional).
Group code = 48.
Definition at line 462 of file hatch.h.
Referenced by dxf_hatch_get_linetype_scale(), dxf_hatch_init(), dxf_hatch_set_linetype_scale(), and dxf_hatch_write().
int16_t dxf_hatch_struct::visibility |
Object visibility (optional):
Group code = 60.
Definition at line 465 of file hatch.h.
Referenced by dxf_hatch_get_visibility(), dxf_hatch_init(), dxf_hatch_set_visibility(), and dxf_hatch_write().
Color of the entity.
Defaults to BYLAYER
if ommitted in the DXF file.
Note that entities encapsulated in a block with the color BYBLOCK
are represented in the "native" color of the BLOCK
entity.
Group code = 62.
Definition at line 472 of file hatch.h.
Referenced by dxf_hatch_get_color(), dxf_hatch_init(), dxf_hatch_set_color(), and dxf_hatch_write().
Entities are to be drawn on either PAPERSPACE
or MODELSPACE
.
Optional, defaults to DXF_MODELSPACE
(0).
Group code = 67.
Definition at line 479 of file hatch.h.
Referenced by dxf_hatch_get_paperspace(), dxf_hatch_init(), dxf_hatch_set_paperspace(), and dxf_hatch_write().
The number of bytes in the image (and subsequent binary chunk records) (optional).
Group code = 92.
Definition at line 484 of file hatch.h.
Referenced by dxf_hatch_get_graphics_data_size(), dxf_hatch_init(), dxf_hatch_set_graphics_data_size(), and dxf_hatch_write().
Proxy entity graphics data.
Multiple lines of 256 characters maximum per line (optional).
Group code = 310.
Definition at line 487 of file hatch.h.
Referenced by dxf_hatch_free(), dxf_hatch_get_binary_graphics_data(), dxf_hatch_init(), dxf_hatch_set_binary_graphics_data(), and dxf_hatch_write().
Soft-pointer ID/handle to owner dictionary (optional).
Group code = 330.
Definition at line 493 of file hatch.h.
Referenced by dxf_hatch_free(), dxf_hatch_get_dictionary_owner_soft(), dxf_hatch_init(), dxf_hatch_set_dictionary_owner_soft(), and dxf_hatch_write().
Hard owner ID/handle to owner dictionary (optional).
Group code = 360.
Definition at line 496 of file hatch.h.
Referenced by dxf_hatch_free(), dxf_hatch_get_dictionary_owner_hard(), dxf_hatch_init(), dxf_hatch_set_dictionary_owner_hard(), and dxf_hatch_write().
group code = 2.
Definition at line 500 of file hatch.h.
Referenced by dxf_hatch_free(), dxf_hatch_get_pattern_name(), dxf_hatch_set_pattern_name(), and dxf_hatch_write().
double dxf_hatch_struct::x0 |
Base point.
Group code = 10.
Definition at line 502 of file hatch.h.
Referenced by dxf_hatch_get_x0(), dxf_hatch_init(), dxf_hatch_set_x0(), and dxf_hatch_write().
double dxf_hatch_struct::y0 |
Base point.
Group code = 20.
Definition at line 505 of file hatch.h.
Referenced by dxf_hatch_get_y0(), dxf_hatch_init(), dxf_hatch_set_y0(), and dxf_hatch_write().
double dxf_hatch_struct::z0 |
Base point.
Group code = 30.
Definition at line 508 of file hatch.h.
Referenced by dxf_hatch_get_z0(), dxf_hatch_init(), dxf_hatch_set_z0(), and dxf_hatch_write().
Pattern fill only.
Group code 41.
Definition at line 511 of file hatch.h.
Referenced by dxf_hatch_get_pattern_scale(), dxf_hatch_init(), dxf_hatch_set_pattern_scale(), and dxf_hatch_write().
double dxf_hatch_struct::pixel_size |
group code 47
Definition at line 514 of file hatch.h.
Referenced by dxf_hatch_get_pixel_size(), dxf_hatch_init(), dxf_hatch_set_pixel_size(), and dxf_hatch_write().
Pattern fill only.
Group code 52.
Definition at line 516 of file hatch.h.
Referenced by dxf_hatch_get_pattern_angle(), dxf_hatch_init(), dxf_hatch_set_pattern_angle(), and dxf_hatch_write().
0 = pattern fill
1 = solid fill.
Group code = 70.
Definition at line 519 of file hatch.h.
Referenced by dxf_hatch_get_solid_fill(), dxf_hatch_init(), dxf_hatch_set_solid_fill(), and dxf_hatch_write().
0 = non-associative
1 = associative.
Group code = 71.
Definition at line 523 of file hatch.h.
Referenced by dxf_hatch_get_associative(), dxf_hatch_init(), dxf_hatch_set_associative(), and dxf_hatch_write().
0 = hatch "odd parity" area (Normal style)
1 = hatch outermost area only (Outer style)
2 = hatch through entire area (Ignore style).
Group code = 75.
Definition at line 527 of file hatch.h.
Referenced by dxf_hatch_get_hatch_style(), dxf_hatch_init(), dxf_hatch_set_hatch_style(), and dxf_hatch_write().
0 = user defined
1 = predefined
2 = custom.
Group code = 76.
Definition at line 532 of file hatch.h.
Referenced by dxf_hatch_get_hatch_pattern_type(), dxf_hatch_init(), dxf_hatch_set_hatch_pattern_type(), and dxf_hatch_write().
Pattern fill only
0 = not double
1 = double.
Group code = 77.
Definition at line 537 of file hatch.h.
Referenced by dxf_hatch_get_pattern_double(), dxf_hatch_init(), dxf_hatch_set_pattern_double(), and dxf_hatch_write().
Number of pattern definition lines.
Group code = 78.
Definition at line 542 of file hatch.h.
Referenced by dxf_hatch_init(), and dxf_hatch_write().
Number of boundary paths (loops).
Group code = 91.
Definition at line 545 of file hatch.h.
Referenced by dxf_hatch_init(), and dxf_hatch_write().
Number of seed points.
Group code = 98.
Definition at line 548 of file hatch.h.
Referenced by dxf_hatch_init(), and dxf_hatch_write().
double dxf_hatch_struct::extr_x0 |
Extrusion direction
optional, if omitted defaults to 0.0.
Group code = 210.
Definition at line 551 of file hatch.h.
Referenced by dxf_hatch_get_extr_x0(), dxf_hatch_init(), dxf_hatch_set_extr_x0(), and dxf_hatch_write().
double dxf_hatch_struct::extr_y0 |
Extrusion direction
optional, if omitted defaults to 0.0.
Group code = 220.
Definition at line 555 of file hatch.h.
Referenced by dxf_hatch_get_extr_y0(), dxf_hatch_init(), dxf_hatch_set_extr_y0(), and dxf_hatch_write().
double dxf_hatch_struct::extr_z0 |
Extrusion direction
optional, if omitted defaults to 1.0.
Group code = 230.
Definition at line 559 of file hatch.h.
Referenced by dxf_hatch_get_extr_z0(), dxf_hatch_init(), dxf_hatch_set_extr_z0(), and dxf_hatch_write().
Pointer to the first DxfHatchBoundaryPath.
NULL
if there is no DxfHatchBoundaryPath in the DxfHatch.
Definition at line 562 of file hatch.h.
Referenced by dxf_hatch_free(), dxf_hatch_get_boundary_paths(), dxf_hatch_init(), dxf_hatch_set_boundary_paths(), and dxf_hatch_write().
Pointer to the first DxfHatchPattern.
NULL
if there is no DxfHatchPattern in the DxfHatch.
Definition at line 566 of file hatch.h.
Referenced by dxf_hatch_free(), dxf_hatch_get_patterns(), dxf_hatch_init(), and dxf_hatch_set_patterns().
Pointer to the first DxfHatchPatternDefLine.
NULL
if there is no DxfHatchPatternDefLine in the DxfHatch.
Definition at line 570 of file hatch.h.
Referenced by dxf_hatch_free(), dxf_hatch_init(), and dxf_hatch_write().
Pointer to the first DxfHatchSeedPoint.
Definition at line 574 of file hatch.h.
Referenced by dxf_hatch_free(), dxf_hatch_init(), and dxf_hatch_write().
struct DxfHatch* dxf_hatch_struct::next |
Pointer to the next DxfHatch.
NULL
if the last DxfHatch.
Definition at line 576 of file hatch.h.
Referenced by dxf_hatch_free(), dxf_hatch_free_chain(), dxf_hatch_get_last(), dxf_hatch_get_next(), dxf_hatch_init(), and dxf_hatch_set_next().