56 #ifndef _GAMS_UTILITY_SEARCH_AREA_H_ 57 #define _GAMS_UTILITY_SEARCH_AREA_H_ 85 const std::string& name =
"");
92 SearchArea (
const std::vector<PrioritizedRegion>& regions,
93 const std::string& name =
"");
130 Region get_convex_hull ()
const;
136 const std::vector<PrioritizedRegion>& get_regions ()
const;
143 madara::knowledge::KnowledgeRecord::Integer get_priority (
const Position& pos)
const;
150 bool contains (
const Position& p)
const;
156 std::string to_string ()
const;
167 void calculate_bounding_box ();
188 virtual bool check_valid_type (madara::knowledge::KnowledgeBase& kb,
189 const std::string& name)
const;
196 virtual void to_container_impl (
197 madara::knowledge::KnowledgeBase& kb,
198 const std::string& name);
205 virtual bool from_container_impl (
206 madara::knowledge::KnowledgeBase& kb,
207 const std::string& name);
212 #include "SearchArea.inl" 214 #endif // _GAMS_UTILITY_SEARCH_AREA_H_ A utility class for search areas.
double min_lat_
bounding box
Copyright (c) 2014 Carnegie Mellon University.
std::vector< PrioritizedRegion > regions_
collection of prioritized regions
A class meant to assist with retrieving information into GAMS containers.
Contains all GAMS-related tools, classes and code.
bool operator!=(const BasicVector< LDerived, Units > &lhs, const BasicVector< RDerived, Units > &rhs)
A helper class for prioritized region information.
A helper class for region information.
bool operator==(const BasicVector< LDerived, Units > &lhs, const BasicVector< RDerived, Units > &rhs)