Class: Pdfrb::Model::Type::ThreeDAnnotation

Inherits:
Annotation show all
Defined in:
lib/pdfrb/model/type/three_d_annotation.rb

Overview

3D annotation (s13.6.2, PDF 1.6+). /Subtype /3D. Hosts a 3D artwork stream, activation behaviour, and viewing state.

Instance Attribute Summary

Attributes inherited from Object

#document, #gen, #oid, #value

Instance Method Summary collapse

Methods inherited from Annotation

#action, #additional_actions, #appearance, #appearance_state, #border, #color, #contents, #create_appearance_stream, #flags, for_subtype, #hidden?, #locked?, #locked_contents?, #modified_date, #name, #no_rotate?, #no_view?, #no_zoom?, #normal_appearance, #page, #print?, #read_only?, #rect, register_subtype, #subtype, subtype_map, #toggle_no_view?

Methods inherited from Cos::Dictionary

#[], #[]=, apply_arlington_definition, arlington_default, arlington_key_to_symbol, 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, merged_field, own_fields, #pdf_type, register_type, type_map, #validate

Methods included from Cos::ArlingtonBacked

#arlington_object

Methods inherited from Object

#==, define_type, #deref, #indirect?, #initialize, #must_be_indirect?, #pdf_type, pdf_type

Constructor Details

This class inherits a constructor from Pdfrb::Model::Cos::Dictionary

Instance Method Details

#activationObject



13
# File 'lib/pdfrb/model/type/three_d_annotation.rb', line 13

def activation; self[:"3DA"]; end

#artworkObject



11
# File 'lib/pdfrb/model/type/three_d_annotation.rb', line 11

def artwork; self[:"3DD"]; end

#default_viewObject



12
# File 'lib/pdfrb/model/type/three_d_annotation.rb', line 12

def default_view; self[:"3DV"]; end

#default_view_name?Boolean

Returns:

  • (Boolean)


27
28
29
# File 'lib/pdfrb/model/type/three_d_annotation.rb', line 27

def default_view_name?
  default_view.is_a?(Symbol) || default_view.is_a?(String)
end

#geometryObject



17
# File 'lib/pdfrb/model/type/three_d_annotation.rb', line 17

def geometry; self[:GEO]; end

#has_measure?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/pdfrb/model/type/three_d_annotation.rb', line 23

def has_measure?
  !geometry.nil?
end

#interactiveObject



14
# File 'lib/pdfrb/model/type/three_d_annotation.rb', line 14

def interactive; self[:"3DI"]; end

#interactive?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/pdfrb/model/type/three_d_annotation.rb', line 19

def interactive?
  interactive == true
end

#unitsObject



16
# File 'lib/pdfrb/model/type/three_d_annotation.rb', line 16

def units; self[:"3DU"]; end

#view_boxObject



15
# File 'lib/pdfrb/model/type/three_d_annotation.rb', line 15

def view_box; self[:"3DB"]; end