You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
918 B
35 lines
918 B
9 years ago
|
#ifndef MODGMT_MAP_H
|
||
|
#define MODGMT_MAP_H
|
||
|
#include "common.h"
|
||
|
|
||
|
class ObjectGMTMap: public ObjectBase
|
||
|
{
|
||
|
std::shared_ptr<std::string> data;
|
||
|
int64_t bblx,bbly,bbrx,bbry;
|
||
|
|
||
|
ObjectGMTMap(const ObjectGMTMap* p):data(p->data),bblx(p->bblx),bbly(p->bbly),bbrx(p->bbrx),bbry(p->bbry) {};
|
||
|
|
||
|
public:
|
||
|
ObjectGMTMap(std::string* s, int nbblx, int nbbly, int nbbrx, int nbbry):data(s),bblx(nbblx),bbly(nbbly),bbrx(nbbrx),bbry(nbbry) {};
|
||
|
|
||
|
// Pure virtual overrides
|
||
|
ObjectBase* Copy() const override {return new ObjectGMTMap(this);}
|
||
|
bool Print() const override
|
||
|
{
|
||
|
COUT(NORMAL)<<std::endl<<"Object type: "<<Type()<<std::endl;
|
||
|
return true;
|
||
|
}
|
||
|
std::string Type() const override {return "GMTMap";}
|
||
|
const int8_t* Blob(size_t* size) const override
|
||
|
{
|
||
|
*size=data->size();
|
||
|
return reinterpret_cast<const int8_t*>(data->data());
|
||
|
}
|
||
|
};
|
||
|
|
||
|
// Creating eps map from set of layers
|
||
|
ObjectBase* GMT_Map(const ObjectList* input);
|
||
|
|
||
|
#endif
|
||
|
|