libDXF 0.0.1
A library with DXF related functions written in C.
|
DXF definition of an AutoCAD viewport entity. More...
#include <vport.h>
Data Fields | |
int | id_code |
char * | viewport_name |
double | x_min |
double | y_min |
double | x_max |
double | y_max |
double | x_center |
double | y_center |
double | x_snap_base |
double | y_snap_base |
double | x_snap_spacing |
double | y_snap_spacing |
double | x_grid_spacing |
double | y_grid_spacing |
double | x_direction |
double | y_direction |
double | z_direction |
double | x_target |
double | y_target |
double | z_target |
double | view_height |
double | viewport_aspect_ratio |
double | lens_length |
double | front_plane_offset |
double | back_plane_offset |
double | snap_rotation_angle |
double | view_twist_angle |
int | status_field |
int | id |
int | standard_flag |
int | view_mode |
int | circle_zoom_percent |
int | fast_zoom_setting |
int | UCSICON_setting |
int | snap_on |
int | grid_on |
int | snap_style |
int | snap_isopair |
char * | dictionary_owner_soft |
char * | dictionary_owner_hard |
struct DxfVPort * | next |
DXF definition of an AutoCAD viewport entity.
The VPORT table is unique in that it may contain several entries with the same name (indicating a multiple-viewport configuration).
The entries corresponding to the active viewport configuration all have the name *ACTIVE.
The first such entry describes the current viewport.
Identification number for the entity.
This is to be an unique (sequential) number in the DXF file.
Group code = 5.
Definition at line 67 of file vport.h.
Referenced by dxf_vport_init(), dxf_vport_read(), and dxf_vport_write().
char* dxf_vport::viewport_name |
Group code = 2.
Definition at line 72 of file vport.h.
Referenced by dxf_vport_free(), dxf_vport_init(), dxf_vport_read(), and dxf_vport_write().
double dxf_vport::x_min |
X value of the lower-left corner of viewport.
Group code = 10.
Definition at line 74 of file vport.h.
Referenced by dxf_vport_init(), dxf_vport_read(), and dxf_vport_write().
double dxf_vport::y_min |
Y value of the lower-left corner of viewport.
Group code = 20.
Definition at line 77 of file vport.h.
Referenced by dxf_vport_init(), dxf_vport_read(), and dxf_vport_write().
double dxf_vport::x_max |
X value of the upper-right corner.
Group code = 11.
Definition at line 80 of file vport.h.
Referenced by dxf_vport_init(), dxf_vport_read(), and dxf_vport_write().
double dxf_vport::y_max |
Y value of the upper-right corner.
Group code = 21.
Definition at line 83 of file vport.h.
Referenced by dxf_vport_init(), dxf_vport_read(), and dxf_vport_write().
double dxf_vport::x_center |
X value of the view center point, in World Coordinate System.
Group code = 12.
Definition at line 86 of file vport.h.
Referenced by dxf_vport_init(), dxf_vport_read(), and dxf_vport_write().
double dxf_vport::y_center |
Y value of the view center point, in World Coordinate System.
Group code = 22.
Definition at line 90 of file vport.h.
Referenced by dxf_vport_init(), dxf_vport_read(), and dxf_vport_write().
double dxf_vport::x_snap_base |
X value of the snap base point.
Group code = 13.
Definition at line 94 of file vport.h.
Referenced by dxf_vport_init(), dxf_vport_read(), and dxf_vport_write().
double dxf_vport::y_snap_base |
Y value of the snap base point.
Group code = 23.
Definition at line 97 of file vport.h.
Referenced by dxf_vport_init(), dxf_vport_read(), and dxf_vport_write().
double dxf_vport::x_snap_spacing |
X value of snap spacing X and Y.
Group code = 14.
Definition at line 100 of file vport.h.
Referenced by dxf_vport_init(), dxf_vport_read(), and dxf_vport_write().
double dxf_vport::y_snap_spacing |
Y value of snap spacing X and Y.
Group code = 24.
Definition at line 103 of file vport.h.
Referenced by dxf_vport_init(), dxf_vport_read(), and dxf_vport_write().
double dxf_vport::x_grid_spacing |
X value of grid spacing X and Y.
Group code = 15.
Definition at line 106 of file vport.h.
Referenced by dxf_vport_init(), dxf_vport_read(), and dxf_vport_write().
double dxf_vport::y_grid_spacing |
Y value of grid spacing X and Y.
Group code = 25.
Definition at line 109 of file vport.h.
Referenced by dxf_vport_init(), dxf_vport_read(), and dxf_vport_write().
double dxf_vport::x_direction |
X value of the view direction from target point.
Group code = 16.
Definition at line 112 of file vport.h.
Referenced by dxf_vport_init(), dxf_vport_read(), and dxf_vport_write().
double dxf_vport::y_direction |
Y value of the view direction from target point.
Group code = 26.
Definition at line 115 of file vport.h.
Referenced by dxf_vport_init(), dxf_vport_read(), and dxf_vport_write().
double dxf_vport::z_direction |
Z value of the view direction from target point.
Group code = 36.
Definition at line 118 of file vport.h.
Referenced by dxf_vport_init(), dxf_vport_read(), and dxf_vport_write().
double dxf_vport::x_target |
X value of the view target point.
Group code = 17.
Definition at line 121 of file vport.h.
Referenced by dxf_vport_init(), dxf_vport_read(), and dxf_vport_write().
double dxf_vport::y_target |
Y value of the view target point.
Group code = 27.
Definition at line 124 of file vport.h.
Referenced by dxf_vport_init(), dxf_vport_read(), and dxf_vport_write().
double dxf_vport::z_target |
Z value of the view target point.
Group code = 37.
Definition at line 127 of file vport.h.
Referenced by dxf_vport_init(), dxf_vport_read(), and dxf_vport_write().
double dxf_vport::view_height |
View height.
Group code = 40.
Definition at line 130 of file vport.h.
Referenced by dxf_vport_init(), dxf_vport_read(), and dxf_vport_write().
Viewport aspect ratio.
Group code = 41.
Definition at line 133 of file vport.h.
Referenced by dxf_vport_init(), dxf_vport_read(), and dxf_vport_write().
double dxf_vport::lens_length |
Lens length.
Group code = 42.
Definition at line 136 of file vport.h.
Referenced by dxf_vport_init(), and dxf_vport_write().
Front clipping plane - offset from target point.
Group code = 43.
Definition at line 139 of file vport.h.
Referenced by dxf_vport_init(), dxf_vport_read(), and dxf_vport_write().
double dxf_vport::back_plane_offset |
Back clipping plane - offset from target point.
Group code = 44.
Definition at line 142 of file vport.h.
Referenced by dxf_vport_init(), dxf_vport_read(), and dxf_vport_write().
Snap rotation angle.
Group code = 50.
Definition at line 145 of file vport.h.
Referenced by dxf_vport_init(), dxf_vport_read(), and dxf_vport_write().
double dxf_vport::view_twist_angle |
View twist angle.
Group code = 51.
Definition at line 148 of file vport.h.
Referenced by dxf_vport_init(), dxf_vport_read(), and dxf_vport_write().
Status field (never saved in DXF).
Group code = 68.
Definition at line 151 of file vport.h.
Referenced by dxf_vport_init(), and dxf_vport_read().
int dxf_vport::id |
ID (never saved in DXF).
Group code = 69.
Definition at line 154 of file vport.h.
Referenced by dxf_vport_init(), and dxf_vport_read().
Standard flag values (See "Common Group Codes for
Symbol Table Entries.").
Bit coded:
This flag is for the benefit of AutoCAD commands; it can be ignored by most programs that read DXF files, and need not be set by programs that write DXF files.
Group code = 70.
Definition at line 157 of file vport.h.
Referenced by dxf_vport_init(), dxf_vport_read(), and dxf_vport_write().
See VIEWMODE system variable in appendix A.
Group code = 71.
Definition at line 175 of file vport.h.
Referenced by dxf_vport_init(), dxf_vport_read(), and dxf_vport_write().
Circle zoom percent.
Group code = 72.
Definition at line 178 of file vport.h.
Referenced by dxf_vport_init(), dxf_vport_read(), and dxf_vport_write().
Fast zoom setting.
Group code = 73.
Definition at line 181 of file vport.h.
Referenced by dxf_vport_init(), dxf_vport_read(), and dxf_vport_write().
UCSICON setting.
Group code = 74.
Definition at line 184 of file vport.h.
Referenced by dxf_vport_init(), dxf_vport_read(), and dxf_vport_write().
Snap on/off.
Group code = 75.
Definition at line 187 of file vport.h.
Referenced by dxf_vport_init(), dxf_vport_read(), and dxf_vport_write().
Grid on/off.
Group code = 76.
Definition at line 190 of file vport.h.
Referenced by dxf_vport_init(), dxf_vport_read(), and dxf_vport_write().
Snap style.
Group code = 77.
Definition at line 193 of file vport.h.
Referenced by dxf_vport_init(), dxf_vport_read(), and dxf_vport_write().
Snap isopair.
Group code = 78.
Definition at line 196 of file vport.h.
Referenced by dxf_vport_init(), dxf_vport_read(), and dxf_vport_write().
Soft-pointer ID/handle to owner dictionary (optional).
Group code = 330.
Definition at line 199 of file vport.h.
Referenced by dxf_vport_free(), dxf_vport_init(), dxf_vport_read(), and dxf_vport_write().
Hard owner ID/handle to owner dictionary (optional).
Group code = 360.
Definition at line 203 of file vport.h.
Referenced by dxf_vport_free(), dxf_vport_init(), dxf_vport_read(), and dxf_vport_write().
struct DxfVPort* dxf_vport::next |
Pointer to the next DxfVPort.
NULL
in the last DxfVPort.
Definition at line 206 of file vport.h.
Referenced by dxf_vport_free(), dxf_vport_free_chain(), and dxf_vport_init().