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

vport.h

Go to the documentation of this file.
00001 
00036 #ifndef LIBDXF_SRC_VPORT_H
00037 #define LIBDXF_SRC_VPORT_H
00038 
00039 
00040 #include "global.h"
00041 
00042 
00043 #ifdef __cplusplus
00044 extern "C" {
00045 #endif
00046 
00047 
00063 typedef struct
00064 dxf_vport
00065 {
00066         int id_code;
00071         char *viewport_name;
00073         double x_min;
00076         double y_min;
00079         double x_max;
00082         double y_max;
00085         double x_center;
00089         double y_center;
00093         double x_snap_base;
00096         double y_snap_base;
00099         double x_snap_spacing;
00102         double y_snap_spacing;
00105         double x_grid_spacing;
00108         double y_grid_spacing;
00111         double x_direction;
00114         double y_direction;
00117         double z_direction;
00120         double x_target;
00123         double y_target;
00126         double z_target;
00129         double view_height;
00132         double viewport_aspect_ratio;
00135         double lens_length;
00138         double front_plane_offset;
00141         double back_plane_offset;
00144         double snap_rotation_angle;
00147         double view_twist_angle;
00150         int status_field;
00153         int id;
00156         int standard_flag;
00174         int view_mode;
00177         int circle_zoom_percent;
00180         int fast_zoom_setting;
00183         int UCSICON_setting;
00186         int snap_on;
00189         int grid_on;
00192         int snap_style;
00195         int snap_isopair;
00198         char *dictionary_owner_soft;
00202         char *dictionary_owner_hard;
00206         struct DxfVPort *next;
00209 } DxfVPort;
00210 
00211 
00212 DxfVPort *dxf_vport_new ();
00213 DxfVPort *dxf_vport_init (DxfVPort *vport);
00214 DxfVPort *dxf_vport_read (DxfFile *fp, DxfVPort *vport);
00215 int dxf_vport_write (DxfFile *fp, DxfVPort *vport);
00216 int dxf_vport_free (DxfVPort *vport);
00217 void dxf_vport_free_chain (DxfVPort *vports);
00218 
00219 
00220 #ifdef __cplusplus
00221 }
00222 #endif
00223 
00224 
00225 #endif /* LIBDXF_SRC_VPORT_H */
00226 
00227 
00228 /* EOF */