Tables

tables/vport

#include "dxfio/tables/vport.hpp"

In DxfIO::Tables

struct VportVPORT

A VPORT table record: a tiled viewport of model space. The tiled viewports on screen together share the name "*Active".

FieldType and defaultMeaning
RecordTables::RecordThe name, flags and handles every table record carries.
LowerVectorThe lower left corner on screen, from 0 to 1 across and up. Groups 10, 20.
UpperVector{.X = 1, .Y = 1, .Z = 0}The upper right corner on screen, from 0 to 1 across and up. Groups 11, 21.
CenterVectorThe center of the view, in display coordinates. Groups 12, 22.
BaseVectorThe snap base point, in display coordinates. Groups 13, 23.
SnapVector{.X = Snapunit, .Y = Snapunit, .Z = 0}The snap spacing along X and Y. Groups 14, 24.
GridVector{.X = Gridunit, .Y = Gridunit, .Z = 0}The grid spacing along X and Y. Groups 15, 25.
DirectionVector{.X = 0, .Y = 0, .Z = 1}The direction the view looks from, toward the target, in world coordinates. Groups 16, 26, 36.
TargetVectorThe point the view looks at, in world coordinates. Groups 17, 27, 37.
Heightdouble{1}How tall the view is, in display coordinates. Group 40.
Aspectdouble{1}The width of the viewport over its height. Group 41.
Focaldouble{Lens}The lens length, in millimeters, of a perspective view. Group 42.
FrontdoubleThe front clipping plane, as an offset from the target. Group 43.
BackdoubleThe back clipping plane, as an offset from the target. Group 44.
RotationdoubleThe snap angle, in degrees. Group 50.
TwistdoubleThe rotation of the view about its direction, in degrees. Group 51.
ModeintBits, as $VIEWMODE: 1 perspective, 2 front clipping, 4 back clipping, 8 UCS follow, 16 front clip not at the eye. Group 71.
Zoomint{Viewres}The circle zoom percent, as $VIEWRES: how smooth arcs and circles are drawn. Group 72.
Fastbool{true}Whether fast zoom is on. Group 73.
Iconint{3}The UCS icon, as $UCSICON: 1 shown, 2 at the origin. Group 74.
SnappedboolWhether snap is on. Group 75.
Griddedbool{true}Whether the grid is shown. Group 76.
IsometricboolWhether snap is isometric rather than square. Group 77.
IsoplaneintThe isometric plane: 0 left, 1 top, 2 right. Group 78.
RenderintHow the view is shaded: 0 2D optimized, 1 wireframe, 2 hidden line, 3 flat, 4 Gouraud, 5 and 6 those two with wireframe. Group 281, from R2000.
Ucsvpbool{true}Whether the viewport keeps a UCS of its own, made current when the viewport is. Group 65, from R2000.
AxesTables::AxesThe UCS of the viewport; from R2000.
StyleHandleThe visual style. Group 348, from R2007.
Displayint{3}How the grid is shown, as $GRIDDISPLAY bits. Group 60, from R2007.
Majorint{Gridmajor}The grid lines between major ones, as $GRIDMAJOR. Group 61, from R2007.
Litbool{true}Whether the default lighting is on. Group 292, from R2007.
Lightingint{1}The default lighting: 0 one distant light, 1 two. Group 282, from R2007.
BrightnessdoubleHow bright the viewport's lighting is. Group 141, from R2007.
ContrastdoubleHow much the viewport's lighting contrasts. Group 142, from R2007.
Ambientint{Ambience}The AutoCAD Color Index of the ambient light. Group 63, from R2007.
Rgbstd::optional<int>The ambient light as a true color 0xRRGGBB, when it has one. Group 421, from R2007.
BackgroundHandleThe background object. Group 332, from R2007.
ShadowHandleThe shade plot object. Group 333, from R2007.

Constants

Snapunitdouble = 10The snap spacing of a new viewport, as $SNAPUNIT.
Gridunitdouble = 10The grid spacing of a new viewport, as $GRIDUNIT.
Viewresint = 1000The circle zoom percent of a new viewport, as $VIEWRES.
Gridmajorint = 5The grid lines between major ones in a new viewport.
Ambienceint = 250The color of a new viewport's ambient light: color index 250, a dark gray.