Class: Pdfrb::Model::Type::ThreeDLightingScheme

Inherits:
Cos::Dictionary show all
Defined in:
lib/pdfrb/model/type/three_d_lighting_scheme.rb

Overview

3D Lighting Scheme (s13.6.4, Table 320-321). Lighting preset.

Instance Attribute Summary

Attributes inherited from Object

#document, #gen, #oid, #value

Instance Method Summary collapse

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

#artwork?Boolean

Returns:

  • (Boolean)


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

def artwork?; subtype == :Artwork; end

#blue?Boolean

Returns:

  • (Boolean)


18
# File 'lib/pdfrb/model/type/three_d_lighting_scheme.rb', line 18

def blue?; subtype == :Blue; end

#cad?Boolean

Returns:

  • (Boolean)


21
# File 'lib/pdfrb/model/type/three_d_lighting_scheme.rb', line 21

def cad?; subtype == :CAD; end

#cube?Boolean

Returns:

  • (Boolean)


20
# File 'lib/pdfrb/model/type/three_d_lighting_scheme.rb', line 20

def cube?; subtype == :Cube; end

#day?Boolean

Returns:

  • (Boolean)


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

def day?; subtype == :Day; end

#hard?Boolean

Returns:

  • (Boolean)


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

def hard?; subtype == :Hard; end

#headlamp?Boolean

Returns:

  • (Boolean)


22
# File 'lib/pdfrb/model/type/three_d_lighting_scheme.rb', line 22

def headlamp?; subtype == :Headlamp; end

#night?Boolean

Returns:

  • (Boolean)


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

def night?; subtype == :Night; end

#none?Boolean

Returns:

  • (Boolean)


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

def none?; subtype == :None; end

#primary?Boolean

Returns:

  • (Boolean)


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

def primary?; subtype == :Primary; end

#red?Boolean

Returns:

  • (Boolean)


19
# File 'lib/pdfrb/model/type/three_d_lighting_scheme.rb', line 19

def red?; subtype == :Red; end

#subtypeObject



9
# File 'lib/pdfrb/model/type/three_d_lighting_scheme.rb', line 9

def subtype; self[:Subtype]&.to_sym; end

#typeObject



8
# File 'lib/pdfrb/model/type/three_d_lighting_scheme.rb', line 8

def type; self[:Type]; end

#white?Boolean

Returns:

  • (Boolean)


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

def white?; subtype == :White; end