88{
89 if ( ! hnVector.size() ) return true;
90
91 fViewer->plots().init_sg();
92
94 fViewer->plots().set_current_plotter(0);
95
96 auto result = true;
97 auto isWriteNeeded = false;
98
99 for (const auto& [ht, info] : hnVector) {
100 G4bool plotting = info->GetPlotting();
101 G4bool activation = info->GetActivation();
103
104
105
106 if ( ( ! plotting ) ||
108 ( info->GetDeleted() ) ) continue;
109
110
111 fViewer->plot(*ht);
112 fViewer->set_current_plotter_style(fPlotParameters.
GetStyle());
113
114
115 tools::sg::plotter& plotter = fViewer->plots().current_plotter();
116
117 plotter.bins_style(0).color = tools::colorf_blue();
118
119
121 if ( ht->annotation(tools::histo::key_axis_x_title(), title) ) {
122 plotter.x_axis().title = title;
123 }
124 if ( ht->annotation(tools::histo::key_axis_y_title(), title) ) {
125 plotter.y_axis().title = title;
126 }
127 if ( ht->annotation(tools::histo::key_axis_z_title(), title) ) {
128 plotter.z_axis().title = title;
129 }
130
131#ifndef TOOLS_USE_FREETYPE
132 plotter.set_encoding_none();
133#endif
134
135
137 plotter.x_axis().labels_style().encoding = "PAW";
138 plotter.x_axis_is_log = true;
139 }
141 plotter.y_axis().labels_style().encoding = "PAW";
142 plotter.y_axis_is_log = true;
143 }
145 plotter.z_axis().labels_style().encoding = "PAW";
146 plotter.z_axis_is_log = true;
147 }
148 isWriteNeeded = true;
149
151
152
153 if (
G4int(fViewer->plots().current_index()) == (GetNofPlotsPerPage() - 1) ) {
154 result &= WritePage();
155 isWriteNeeded = false;
156 }
157
158
159 fViewer->plots().next();
160 }
161
162
163 if ( isWriteNeeded ) {
164 result &= WritePage();
165 }
166
167
168 return result;
169}
G4bool GetIsActivation() const
G4String GetStyle() const
const char * name(G4int ptype)