13 #include <boost/graph/graph_traits.hpp>
14 #include <boost/graph/properties.hpp>
34 template<
typename Graph,
40 typename GeometryTraits::Scalar scale_x,
41 typename GeometryTraits::Scalar scale_y,
42 typename GeometryTraits::Scalar scale_z,
43 const GeometryTraits >)
45 typedef boost::graph_traits< Graph > GraphTraits;
46 typedef typename GraphTraits::vertex_iterator vertex_iterator;
47 typedef typename boost::property_traits< PointMap >::value_type
Point;
54 vertex_iterator vi = iterator_pair.first;
55 vertex_iterator vi_end = iterator_pair.second;
56 for(; vi != vi_end; ++vi)
61 Point(gt.get_x(p) * scale_x,
62 gt.get_y(p) * scale_y,
63 gt.get_z(p) * scale_z));
78 template<
typename Graph,
84 typename GeometryTraits::Scalar scale_x,
85 typename GeometryTraits::Scalar scale_y,
86 typename GeometryTraits::Scalar scale_z)
90 calculate_scaling< Graph, PointMap, GeometryTraits >(
91 g, pm, scale_x, scale_y, scale_z, gt);