6 #ifndef __VISUALIZE_ISOCHRONE_H__ 7 #define __VISUALIZE_ISOCHRONE_H__ 41 options(std::map<std::string, std::string>())
779 VisualizeIsochroneRequest(
const std::string& graphName_,
const std::string& sourceNode_,
const double maxSolutionRadius_,
const std::vector<std::string>& weightsOnEdges_,
const std::vector<std::string>& restrictions_,
const int32_t numLevels_,
const bool generateImage_,
const std::string& levelsTable_,
const std::map<std::string, std::string>& styleOptions_,
const std::map<std::string, std::string>& solveOptions_,
const std::map<std::string, std::string>& contourOptions_,
const std::map<std::string, std::string>& options_):
1320 template<>
struct codec_traits<
gpudb::VisualizeIsochroneRequest>
1340 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
1342 const std::vector<size_t> fo = rd->fieldOrder();
1344 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
1438 info(std::map<std::string, std::string>()),
1439 solveInfo(std::map<std::string, std::string>()),
1470 std::map<std::string, std::string>
info;
1486 template<>
struct codec_traits<
gpudb::VisualizeIsochroneResponse>
1490 ::avro::encode(e, v.
width);
1491 ::avro::encode(e, v.
height);
1494 ::avro::encode(e, v.
info);
1501 if (::avro::ResolvingDecoder *rd = dynamic_cast< ::avro::ResolvingDecoder*>(&d))
1503 const std::vector<size_t> fo = rd->fieldOrder();
1505 for (std::vector<size_t>::const_iterator it = fo.begin(); it != fo.end(); ++it)
1510 ::avro::decode(d, v.
width);
1514 ::avro::decode(d, v.
height);
1526 ::avro::decode(d, v.
info);
1544 ::avro::decode(d, v.
width);
1545 ::avro::decode(d, v.
height);
1548 ::avro::decode(d, v.
info);
1556 #endif // __VISUALIZE_ISOCHRONE_H__ std::map< std::string, std::string > info
Additional information.
VisualizeIsochroneRequest()
Constructs a VisualizeIsochroneRequest object with default parameters.
VisualizeIsochroneResponse()
Constructs a VisualizeIsochroneResponse object with default parameters.
std::map< std::string, std::string > styleOptions
Various style related options of the isochrone image.
int64_t bgColor
Background color of the image as provided in bg_color.
std::vector< uint8_t > imageData
Generated contour image data.
int32_t numLevels
Number of equally-separated isochrones to compute.
double maxSolutionRadius
Extent of the search radius around sourceNode.
bool generateImage
If set to true, generates a PNG image of the isochrones in the response.
std::string sourceNode
Starting vertex on the underlying graph from/to which the isochrones are created.
int32_t height
Height of the image as provided in height.
A set of parameters for GPUdb::visualizeIsochrone.
std::vector< std::string > weightsOnEdges
Additional weights to apply to the edges of an existing graph.
VisualizeIsochroneRequest(const std::string &graphName_, const std::string &sourceNode_, const double maxSolutionRadius_, const std::vector< std::string > &weightsOnEdges_, const std::vector< std::string > &restrictions_, const int32_t numLevels_, const bool generateImage_, const std::string &levelsTable_, const std::map< std::string, std::string > &styleOptions_, const std::map< std::string, std::string > &solveOptions_, const std::map< std::string, std::string > &contourOptions_, const std::map< std::string, std::string > &options_)
Constructs a VisualizeIsochroneRequest object with the specified parameters.
std::map< std::string, std::string > solveInfo
Additional information.
std::map< std::string, std::string > options
Additional parameters.
std::string levelsTable
Name of the table to output the isochrones to, in [ schema_name.
std::string graphName
Name of the graph on which the isochrone is to be computed.
A set of results returned by GPUdb::visualizeIsochrone.
std::map< std::string, std::string > solveOptions
Solver specific parameters.
std::map< std::string, std::string > contourInfo
Additional information.
std::vector< std::string > restrictions
Additional restrictions to apply to the nodes/edges of an existing graph.
int32_t width
Width of the image as provided in width.
std::map< std::string, std::string > contourOptions
Solver specific parameters.