1 #ifndef COORDINATESYSTEMS_HH
2 #define COORDINATESYSTEMS_HH
63 if (mode ==
FRAC)
return "Direct";
64 if (mode ==
CART)
return "Cartesian";
COORD_MODE specifies the current coordinate mode (Fractional or Cartesian)
COORD_MODE(COORD_TYPE new_mode)
static bool IS_CART()
Static method to check if mode is CART (call using COORD_MODE::IS_CART() )
static std::string NAME()
get a string with the name of the active mode
static std::string NAME(COORD_TYPE mode)
static COORD_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 COORD_TYPE CHECK()
get the current mode (call using COORD_MODE::CHECK())
PERIODICITY_TYPE old_mode
static PERIODICITY_TYPE CHECK()
void set(const PERIODICITY_TYPE new_mode)
PERIODICITY_MODE(PERIODICITY_TYPE new_mode)
static PERIODICITY_TYPE ACTIVE_MODE
static bool IS_PERIODIC()
const PERIODICITY_TYPE LOCAL
const PERIODICITY_TYPE PERIODIC