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

dxf_vport Struct Reference

DXF definition of an AutoCAD viewport entity. More...

#include <vport.h>

Collaboration diagram for dxf_vport:
Collaboration graph
[legend]

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 DxfVPortnext

Detailed Description

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.

Version:
According to DXF R10.
According to DXF R11.
According to DXF R12.
According to DXF R13.
According to DXF R14.

Definition at line 63 of file vport.h.


Field Documentation

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().

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().

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().

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().

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().

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().

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().

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().

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().

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().

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().

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().

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().

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().

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().

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().

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().

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().

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().

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().

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().

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().

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().

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().

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:

  1. If set, table entry is externally dependent on an Xref.
  2. If this bit and bit 16 are both set, the externally dependent Xref has been successfully resolved.
  3. If set, the table entry was referenced by at least one entity in the drawing the last time the drawing was edited.

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().

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().


The documentation for this struct was generated from the following file: