Class: Pdfrb::Model::Type::ThreeDCrossSection
Overview
3D Cross Section (s13.6.4). Plane cutaway view of a 3D model.
Instance Attribute Summary
Attributes inherited from Object
#document, #gen, #oid, #value
Instance Method Summary
collapse
#[], #[]=, arlington_available?, arlington_default, arlington_key_to_symbol, arlington_loaded_for?, arlington_mark_loaded, arlington_object, arlington_one_type_to_ruby, arlington_required?, arlington_types_to_ruby, arlington_version, define_field, define_field_from_arlington, #delete, #each, each_field, #each_raw, #empty?, field, #initialize, #key?, #keys, lookup_type, own_fields, #pdf_type, register_type, type_map, #validate
Methods inherited from Object
#==, define_type, #deref, #indirect?, #initialize, #must_be_indirect?, #pdf_type, pdf_type
Instance Method Details
9
|
# File 'lib/pdfrb/model/type/three_d_cross_section.rb', line 9
def center; self[:C]; end
|
#has_plane_color? ⇒ Boolean
19
20
21
|
# File 'lib/pdfrb/model/type/three_d_cross_section.rb', line 19
def has_plane_color?
!!plane_color
end
|
#intersection_color ⇒ Object
17
|
# File 'lib/pdfrb/model/type/three_d_cross_section.rb', line 17
def intersection_color; self[:IC]; end
|
#intersection_visible? ⇒ Boolean
13
|
# File 'lib/pdfrb/model/type/three_d_cross_section.rb', line 13
def intersection_visible?; truthy?(self[:IV]); end
|
#orientation ⇒ Object
10
|
# File 'lib/pdfrb/model/type/three_d_cross_section.rb', line 10
def orientation; self[:O]; end
|
#plane_color ⇒ Object
12
|
# File 'lib/pdfrb/model/type/three_d_cross_section.rb', line 12
def plane_color; self[:PC]; end
|
#plane_opacity ⇒ Object
11
|
# File 'lib/pdfrb/model/type/three_d_cross_section.rb', line 11
def plane_opacity; self[:PO] || 0.5; end
|
#plane_visible? ⇒ Boolean
14
|
# File 'lib/pdfrb/model/type/three_d_cross_section.rb', line 14
def plane_visible?; truthy?(self[:PV]); end
|
#show_cut? ⇒ Boolean
16
|
# File 'lib/pdfrb/model/type/three_d_cross_section.rb', line 16
def show_cut?; truthy?(self[:SC]); end
|
#show_transparent? ⇒ Boolean
15
|
# File 'lib/pdfrb/model/type/three_d_cross_section.rb', line 15
def show_transparent?; truthy?(self[:ST]); end
|
8
|
# File 'lib/pdfrb/model/type/three_d_cross_section.rb', line 8
def type; self[:Type]; end
|