celestia/src/celengine/location.h

87 lines
2.2 KiB
C
Raw Normal View History

2003-06-17 11:40:49 -06:00
// location.h
//
// Copyright (C) 2003, Chris Laurel <claurel@shatters.net>
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
#ifndef _CELENGINE_LOCATION_H_
#define _CELENGINE_LOCATION_H_
#include <string>
#include <celutil/basictypes.h>
#include <celmath/vecmath.h>
class Location
{
public:
Location();
virtual ~Location();
std::string getName() const;
void setName(const std::string&);
Vec3f getPosition() const;
void setPosition(const Vec3f&);
2003-06-17 11:40:49 -06:00
float getSize() const;
void setSize(float);
float getImportance() const;
void setImportance(float);
uint32 getFeatureType() const;
void setFeatureType(uint32);
2003-06-17 11:40:49 -06:00
std::string getInfoURL() const;
void setInfoURL(const std::string&);
static uint32 parseFeatureType(const std::string&);
enum FeatureType
{
City = 0x00000001,
Observatory = 0x00000002,
LandingSite = 0x00000004,
Crater = 0x00000008,
Vallis = 0x00000010,
Mons = 0x00000020,
Planum = 0x00000040,
2003-06-17 11:40:49 -06:00
Chasma = 0x00000080,
Patera = 0x00000100,
Mare = 0x00000200,
Rupes = 0x00000400,
Tessera = 0x00000800,
Regio = 0x00001000,
Chaos = 0x00002000,
Terra = 0x00004000,
Astrum = 0x00008000,
Corona = 0x00010000,
Dorsum = 0x00020000,
Fossa = 0x00040000,
Catena = 0x00080000,
Mensa = 0x00100000,
Rima = 0x00200000,
Undae = 0x00400000,
Reticulum = 0x01000000,
Planitia = 0x02000000,
Linea = 0x04000000,
Fluctus = 0x08000000,
Farrum = 0x10000000,
2003-06-17 11:40:49 -06:00
Other = 0x80000000,
};
private:
std::string name;
Vec3f position;
2003-06-17 11:40:49 -06:00
float size;
float importance;
uint32 featureType;
2003-06-17 11:40:49 -06:00
std::string* infoURL;
};
#endif // _CELENGINE_LOCATION_H_