Class: Pdfrb::Model::Type::FunctionStitching
- Inherits:
-
Function
- Object
- Object
- Cos::Dictionary
- Function
- Pdfrb::Model::Type::FunctionStitching
- Defined in:
- lib/pdfrb/model/type/function_stitching.rb
Overview
Type 3 Stitching function (s8.9.5). Concatenates multiple sub-functions over a stitched input domain.
Instance Attribute Summary
Attributes inherited from Object
Instance Method Summary collapse
- #bounds ⇒ Object
- #each_subfunction ⇒ Object
- #encode ⇒ Object
- #sub_functions ⇒ Object
- #subfunction_count ⇒ Object
Methods inherited from Function
#domain, #exponential?, #function_type, #input_dimension, #output_dimension, #postscript?, #range, #sampled?, #stitching?
Methods inherited from Cos::Dictionary
#[], #[]=, 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
Constructor Details
This class inherits a constructor from Pdfrb::Model::Cos::Dictionary
Instance Method Details
#bounds ⇒ Object
10 |
# File 'lib/pdfrb/model/type/function_stitching.rb', line 10 def bounds; self[:Bounds]; end |
#each_subfunction ⇒ Object
20 21 22 23 24 25 26 27 28 29 |
# File 'lib/pdfrb/model/type/function_stitching.rb', line 20 def each_subfunction return enum_for(:each_subfunction) unless block_given? return unless sub_functions && document arr = sub_functions.is_a?(Pdfrb::Model::PdfArray) ? sub_functions.to_a : sub_functions arr.each do |ref| obj = ref.is_a?(Pdfrb::Model::Reference) ? document.object(ref) : ref yield obj if obj end end |
#encode ⇒ Object
11 |
# File 'lib/pdfrb/model/type/function_stitching.rb', line 11 def encode; self[:Encode]; end |
#sub_functions ⇒ Object
9 |
# File 'lib/pdfrb/model/type/function_stitching.rb', line 9 def sub_functions; self[:Functions]; end |