Sha256: daa29946c6be3dbfaf4483db3b9789c6f4fd16f4fd7a602e1469dcbbdebaab5d
Contents?: true
Size: 1.9 KB
Versions: 23
Compression:
Stored size: 1.9 KB
Contents
# HTML writer # grid representation # History: # Stan Smith 2017-03-28 refactored for mdTranslator 2.0 # Stan Smith 2015-07-31 original script require_relative 'html_dimension' module ADIWG module Mdtranslator module Writers module Html class Html_GridRepresentation def initialize(html) @html = html end def writeHtml(hGrid) # classes used dimensionClass = Html_Dimension.new(@html) # grid representation - number of dimensions unless hGrid[:numberOfDimensions].nil? @html.em('Number of dimensions: ') @html.text!(hGrid[:numberOfDimensions].to_s) @html.br end # grid representation - dimension [] dimensionCount = 0 hGrid[:dimension].each do |hDimension| dimensionCount += 1 @html.details do @html.summary('Dimension '+dimensionCount.to_s, 'class' => 'h5') @html.section(:class => 'block') do dimensionClass.writeHtml(hDimension) end end end # grid representation - cell geometry unless hGrid[:cellGeometry].nil? @html.em('Cell Geometry: ') @html.text!(hGrid[:cellGeometry]) @html.br end # grid representation - transformation parameters available {Boolean} @html.em('Transformation parameters available: ') @html.text!(hGrid[:transformationParameterAvailable].to_s) end # writeHtml end # Html_GridRepresentation end end end end
Version data entries
23 entries across 23 versions & 1 rubygems