22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# File 'lib/adiwg/mdtranslator/writers/simple_html/sections/html_gridRepresentation.rb', line 22
def writeHtml(hGrid)
dimensionClass = Html_Dimension.new(@html)
scopeClass = Html_Scope.new(@html)
hGrid[:scope].each do |scope|
@html.div do
@html.div('Scope ', 'class' => 'h5')
@html.div(:class => 'block') do
scopeClass.writeHtml(hGrid[:scope])
end
end
end
unless hGrid[:numberOfDimensions].nil?
@html.em('Number of dimensions: ')
@html.text!(hGrid[:numberOfDimensions].to_s)
@html.br
end
dimensionCount = 0
hGrid[:dimension].each do |hDimension|
dimensionCount += 1
@html.div do
@html.div('Dimension '+dimensionCount.to_s, 'class' => 'h5')
@html.div(:class => 'block') do
dimensionClass.writeHtml(hDimension)
end
end
end
unless hGrid[:cellGeometry].nil?
@html.em('Cell Geometry: ')
@html.text!(hGrid[:cellGeometry])
@html.br
end
@html.em('Transformation parameters available: ')
@html.text!(hGrid[:transformationParameterAvailable].to_s)
end
|