1 #ifndef COORDINATESYSTEMS_HH
2 #define COORDINATESYSTEMS_HH
53 return ACTIVE_MODE ==
CART;
57 return ACTIVE_MODE ==
FRAC;
66 static std::string
NAME() {
67 return NAME(ACTIVE_MODE);
70 if(mode ==
FRAC)
return "Direct";
71 if(mode ==
CART)
return "Cartesian";
72 return NAME(ACTIVE_MODE);
77 ACTIVE_MODE = new_mode;
84 ACTIVE_MODE = new_mode;
106 return (ACTIVE_MODE ==
LOCAL);
118 ACTIVE_MODE = new_mode;
125 ACTIVE_MODE = new_mode;
static COORD_TYPE ACTIVE_MODE
PERIODICITY_MODE(PERIODICITY_TYPE new_mode)
COORD_MODE(COORD_TYPE new_mode)
void set(const PERIODICITY_TYPE new_mode)
COORD_TYPE old_mode
old_mode specifies the value of ACTIVE_MODE when this COORD_MODE object was instantiated ...
static std::string NAME(COORD_TYPE mode)
COORD_MODE specifies the current coordinate mode (Fractional or Cartesian)
static PERIODICITY_TYPE ACTIVE_MODE
void set(const COORD_TYPE new_mode)
static bool IS_FRAC()
Static method to check if mode is FRAC (call using COORD_MODE::IS_FRAC() )
static std::string NAME()
get a string with the name of the active mode
static bool IS_PERIODIC()
static bool IS_CART()
Static method to check if mode is CART (call using COORD_MODE::IS_CART() )
static PERIODICITY_TYPE CHECK()
PERIODICITY_TYPE old_mode
static COORD_TYPE CHECK()
get the current mode (call using COORD_MODE::CHECK())