Class: OoxmlParser::View3D
- Inherits:
-
OOXMLDocumentObject
- Object
- OOXMLDocumentObject
- OoxmlParser::View3D
- Defined in:
- lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart/view_3d.rb
Overview
Parsing Chart 3D view tag ‘view3D’
Instance Attribute Summary collapse
-
#right_angle_axis ⇒ True, False
chart axes are at right angles, rather than drawn in perspective.
-
#rotation_x ⇒ ValuedChild
a 3-D chart shall be rotated in the X direction.
-
#rotation_y ⇒ ValuedChild
a 3-D chart shall be rotated in the Y direction.
Attributes inherited from OOXMLDocumentObject
Instance Method Summary collapse
-
#parse(node) ⇒ View3D
Parse View3D object.
Methods inherited from OOXMLDocumentObject
#==, add_to_xmls_stack, copy_file_and_rename_to_zip, current_xml, dir, encrypted_file?, get_link_from_rels, #initialize, unzip_file, #with_data?
Methods included from OoxmlDocumentObjectHelper
Constructor Details
This class inherits a constructor from OoxmlParser::OOXMLDocumentObject
Instance Attribute Details
#right_angle_axis ⇒ True, False
chart axes are at right angles, rather than drawn in perspective. Applies only to 3-D charts.
13 14 15 |
# File 'lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart/view_3d.rb', line 13 def right_angle_axis @right_angle_axis end |
#rotation_x ⇒ ValuedChild
a 3-D chart shall be rotated in the X direction
6 7 8 |
# File 'lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart/view_3d.rb', line 6 def rotation_x @rotation_x end |
#rotation_y ⇒ ValuedChild
a 3-D chart shall be rotated in the Y direction
9 10 11 |
# File 'lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart/view_3d.rb', line 9 def rotation_y @rotation_y end |
Instance Method Details
#parse(node) ⇒ View3D
Parse View3D object
18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart/view_3d.rb', line 18 def parse(node) node.xpath('*').each do |node_child| case node_child.name when 'rotX' @rotation_x = ValuedChild.new(:integer, parent: self).parse(node_child) when 'rotY' @rotation_y = ValuedChild.new(:integer, parent: self).parse(node_child) when 'rAngAx' @right_angle_axis = option_enabled?(node_child) end end self end |