API Documentation
Loading...
Searching...
No Matches
ViewportData Struct Reference

logic for storing a viewport in a CAD-friendly way for exporting and importing. More...

#include <CADEntities.h>

Inheritance diagram for ViewportData:
[legend]
Collaboration diagram for ViewportData:
[legend]

Public Types

enum  Flags {
  e_perspective , e_enable_front_clipping , e_enable_back_clipping , e_enable_ucs_follow ,
  e_enable_front_clip , e_enable_icon_visible , e_enable_ucs_icon_at_origin , e_enable_fast_zoom ,
  e_enable_snaps , e_enable_grids , e_enable_iso_snap , e_enable_hide_plot ,
  e_is_pair_top , e_iso_pair_right , e_enable_viewport_zoom_lock , e_always_enabled ,
  e_enable_non_rect_clipping , e_viewport_off , e_grid_beyond_limits , e_adaptive_grid ,
  e_grid_subdivide , e_grid_follows_workplane
}
 
enum  RenderMode {
  e_2D_optimized = 0 , e_wireframe = 1 , e_hidden_line = 2 , e_flat_shaded = 3 ,
  e_gouraud_shaded = 4 , e_flat_shaded_with_wireframe = 5 , e_gouraud_shaded_with_wireframe = 6
}
 
enum  ViewMode {
  e_perspective_view = 0 , e_front_clipping = 1 , e_back_clipping = 2 , e_ucs_follow_mode = 3 ,
  e_front_clipping_not_at_camera = 4
}
 

Public Attributes

uint04 handle = Constant<uint04>::NaN
 
Vector< 2, fltp08center_point = Vector<2, fltp08>(0.0)
 
Bounds< 2, fltp08screen_bounds = Bounds<2, fltp08>(0.0, 1.0)
 
Vector< 2, fltp08snap_spacing = Vector<2, fltp08>(0.5)
 
Vector< 2, fltp08grid_spacing = Vector<2, fltp08>(0.5)
 
Vector< 3, fltp08view_direction = Vector<3, fltp08>(0.0, 0.0, 1.0)
 
Vector< 3, fltp08target_point = Vector<3, fltp08>(0.0, 0.0, 0.0)
 
fltp08 perspective_lens_length = 1.0
 
Vector< 2, fltp08clip_planes = Vector<2, fltp08>(0.0, 1.0)
 
fltp08 view_height = 1.0
 
Angle< fltp08twist_angle = Angle<fltp08>(0)
 
String id = "*Active"
 
Vector< 16, bool > flags = Vector<16, bool>(false)
 
bool has_grid = false
 
BitFlag view_mode = BitFlag(0)
 
RenderMode render_mode = e_2D_optimized
 
- Public Attributes inherited from EntityData
String layer
 
String line_type
 
CADColorInfo color_info
 
fltp08 line_type_scale = 1.0
 
PaperSpace paper_space_info
 
uint04 material_handle = Constant<uint04>::NaN
 
uint04 file_line_number = Constant<uint04>::NaN
 
bool is_off = false
 
bool visible = true
 
bool paper_space = false
 
- Public Attributes inherited from HandleData
uint04 handle = Constant<uint04>::NaN
 
uint04 parent_handle = Constant<uint04>::NaN
 
uint04 file_line_number = Constant<uint04>::NaN
 

Detailed Description

logic for storing a viewport in a CAD-friendly way for exporting and importing.


Class: ViewportData

autotoc_md696

Member Enumeration Documentation

◆ Flags

enum Flags
Enumerator
e_perspective 
e_enable_front_clipping 
e_enable_back_clipping 
e_enable_ucs_follow 
e_enable_front_clip 
e_enable_icon_visible 
e_enable_ucs_icon_at_origin 
e_enable_fast_zoom 
e_enable_snaps 
e_enable_grids 
e_enable_iso_snap 
e_enable_hide_plot 
e_is_pair_top 
e_iso_pair_right 
e_enable_viewport_zoom_lock 
e_always_enabled 
e_enable_non_rect_clipping 
e_viewport_off 
e_grid_beyond_limits 
e_adaptive_grid 
e_grid_subdivide 
e_grid_follows_workplane 

◆ RenderMode

enum RenderMode
Enumerator
e_2D_optimized 
e_wireframe 
e_hidden_line 
e_flat_shaded 
e_gouraud_shaded 
e_flat_shaded_with_wireframe 
e_gouraud_shaded_with_wireframe 

◆ ViewMode

enum ViewMode
Enumerator
e_perspective_view 
e_front_clipping 
e_back_clipping 
e_ucs_follow_mode 
e_front_clipping_not_at_camera 

Member Data Documentation

◆ center_point

Vector<2, fltp08> center_point = Vector<2, fltp08>(0.0)

◆ clip_planes

Vector<2, fltp08> clip_planes = Vector<2, fltp08>(0.0, 1.0)

◆ flags

Vector<16, bool> flags = Vector<16, bool>(false)

◆ grid_spacing

Vector<2, fltp08> grid_spacing = Vector<2, fltp08>(0.5)

◆ handle

uint04 handle = Constant<uint04>::NaN

◆ has_grid

bool has_grid = false

◆ id

String id = "*Active"

◆ perspective_lens_length

fltp08 perspective_lens_length = 1.0

◆ render_mode

RenderMode render_mode = e_2D_optimized

◆ screen_bounds

Bounds<2, fltp08> screen_bounds = Bounds<2, fltp08>(0.0, 1.0)

◆ snap_spacing

Vector<2, fltp08> snap_spacing = Vector<2, fltp08>(0.5)

◆ target_point

Vector<3, fltp08> target_point = Vector<3, fltp08>(0.0, 0.0, 0.0)

◆ twist_angle

Angle<fltp08> twist_angle = Angle<fltp08>(0)

◆ view_direction

Vector<3, fltp08> view_direction = Vector<3, fltp08>(0.0, 0.0, 1.0)

◆ view_height

fltp08 view_height = 1.0

◆ view_mode

BitFlag view_mode = BitFlag(0)

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