@@ -133,7 +133,7 @@ views::contour range_contour(const surface_type& s_,
133133 contour = view.path (vertices_disc);
134134 } else {
135135 throw std::invalid_argument (
136- " surface_sheet_xy (...) - could not estimate range." );
136+ " range_contour (...) - could not estimate range." );
137137 }
138138 return contour;
139139}
@@ -166,7 +166,7 @@ static std::array<std::array<scalar, 2>, 2> view_range(
166166 *
167167 * @param v_ volume of the detector
168168 * @param view_ the view used for this
169- * @param sh_ the sheet size
169+ * @param sh_ the canvas size
170170 * @param es_ is the equal scale
171171 * @param hl_ switch highlighting on/off
172172 * @param dt_ draw template is available
@@ -249,55 +249,6 @@ process_modules(const volume_type& v_, const view_type& view_,
249249 return {all_modules, scale_transform, axes};
250250}
251251
252- /* * Helper method to connect the surface sheets to the
253- * surfaces of the layer_sheets
254- *
255- * @tparam volume_type the type of volume (templated on point3_container)
256- *
257- * @param v_ the input volume
258- * @param templates_ the given module templtes
259- * @param o_ the object to which they are attached
260- *
261- **/
262- template <typename volume_type>
263- void connect_surface_sheets (const volume_type& v_,
264- std::vector<std::vector<svg::object>>& templates_,
265- svg::object& o_) {
266- // Now create an item per surface
267- for (auto [ib, surface_batch] : utils::enumerate (v_._surfaces )) {
268- for (auto [is, s] : utils::enumerate (surface_batch)) {
269- std::string sid = s._name ;
270-
271- svg::object& s_sheet_s = templates_[ib][is];
272- s_sheet_s._attribute_map [" display" ] = " none" ;
273-
274- // Object information to appear
275- svg::object on;
276- on._tag = " animate" ;
277- on._attribute_map [" fill" ] = " freeze" ;
278- on._attribute_map [" attributeName" ] = " display" ;
279- on._attribute_map [" from" ] = " none" ;
280- on._attribute_map [" to" ] = " block" ;
281- on._attribute_map [" begin" ] = sid + __d + " mouseout" ;
282-
283- svg::object off;
284-
285- off._tag = " animate" ;
286- off._attribute_map [" fill" ] = " freeze" ;
287- off._attribute_map [" attributeName" ] = " display" ;
288- off._attribute_map [" to" ] = " none" ;
289- off._attribute_map [" from" ] = " block" ;
290- off._attribute_map [" begin" ] = sid + __d + " mouseover" ;
291-
292- // Store the animation
293- s_sheet_s._sub_objects .push_back (off);
294- s_sheet_s._sub_objects .push_back (on);
295-
296- o_.add_object (s_sheet_s);
297- }
298- }
299- }
300-
301252} // namespace display
302253
303254} // namespace actsvg
0 commit comments