Tables
tables/ view
#include "dxfio/tables/view.hpp"In DxfIO::Tables
struct ViewVIEW
A VIEW table record: a named view of the drawing, with the camera it is seen through.
| Field | Type and default | Meaning |
|---|---|---|
Record | Tables::Record | The name, flags and handles every table record carries. |
Height | double{1} | How tall the view is, in display coordinates. Group 40. |
Center | Vector | The center of the view, in display coordinates. Groups 10, 20. |
Width | double{1} | How wide the view is, in display coordinates. Group 41. |
Direction | Vector{.X = 0, .Y = 0, .Z = 1} | The direction the view looks from, toward the target, in world coordinates. Groups 11, 21, 31. |
Target | Vector | The point the view looks at, in world coordinates. Groups 12, 22, 32. |
Focal | double{Lens} | The lens length, in millimeters, of a perspective view. Group 42. |
Front | double | The front clipping plane, as an offset from the target. Group 43. |
Back | double | The back clipping plane, as an offset from the target. Group 44. |
Twist | double | The rotation of the view about its direction, in degrees. Group 50. |
Mode | int | Bits, as $VIEWMODE: 1 perspective, 2 front clipping, 4 back clipping, 8 UCS follow, 16 front clip not at the eye. Group 71. |
Render | int | How 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. |
Associated | bool | Whether the view keeps a UCS of its own in Axes. Group 72, from R2000. |
Axes | Tables::Axes | The UCS of the view, written only when Associated is set; from R2000. |
Plottable | bool | Whether the camera is plotted. Group 73, from R2007. |
Background | Handle | The background object. Group 332, from R2007. |
Section | Handle | The live section object. Group 334, from R2007. |
Style | Handle | The visual style. Group 348, from R2007. |
Constants
Lens | double = 50 | The lens length, in millimeters, of a new view or viewport. |