#include <GridDefinition.h>
|
| enum | OrientationFlags { ScanStartRight = binary<010000000>::value,
ScanStartBottom = binary<001000000>::value,
ScanIsVertical = binary<000100000>::value,
ScanIsAlternating = binary<000010000>::value
} |
| |
| enum | Orientation {
LeftUpperHorizontal = binary<000000000>::value,
RightUpperHorizontal = binary<010000000>::value,
LeftLowerHorizontal = binary<001000000>::value,
RightLowerHorizontal = binary<011000000>::value,
LeftUpperVertical = binary<000100000>::value,
RightUpperVertical = binary<010100000>::value,
LeftLowerVertical = binary<001100000>::value,
RightLowerVertical = binary<011100000>::value,
LeftUpperHorizontalAlternating = binary<000010000>::value,
RightUpperHorizontalAlternating = binary<010010000>::value,
LeftLowerHorizontalAlternating = binary<001010000>::value,
RightLowerHorizontalAlternating = binary<011010000>::value,
LeftUpperVerticalAlternating = binary<000110000>::value,
RightUpperVerticalAlternating = binary<010110000>::value,
LeftLowerVerticalAlternating = binary<001110000>::value,
RightLowerVerticalAlternating = binary<011110000>::value
} |
| |
| Enumerator |
|---|
| LeftUpperHorizontal |
|
| RightUpperHorizontal |
|
| LeftLowerHorizontal |
|
| RightLowerHorizontal |
|
| LeftUpperVertical |
|
| RightUpperVertical |
|
| LeftLowerVertical |
|
| RightLowerVertical |
|
| LeftUpperHorizontalAlternating |
|
| RightUpperHorizontalAlternating |
|
| LeftLowerHorizontalAlternating |
|
| RightLowerHorizontalAlternating |
|
| LeftUpperVerticalAlternating |
|
| RightUpperVerticalAlternating |
|
| LeftLowerVerticalAlternating |
|
| RightLowerVerticalAlternating |
|
Use these flags to build an Orientation. Left, Upper, Horizontal and not Alternating are defaults and don't require flags.
| Enumerator |
|---|
| ScanStartRight |
|
| ScanStartBottom |
|
| ScanIsVertical |
|
| ScanIsAlternating |
change direction between succeeding rows (horizontal) or columns (vertical)
|
| MetNoFimex::GridDefinition::GridDefinition |
( |
| ) |
|
| MetNoFimex::GridDefinition::GridDefinition |
( |
std::string |
projDefinition, |
|
|
bool |
isDegree, |
|
|
size_t |
xSize, |
|
|
size_t |
ySize, |
|
|
double |
xIncr, |
|
|
double |
yIncr, |
|
|
double |
xStart, |
|
|
double |
yStart, |
|
|
Orientation |
orient |
|
) |
| |
| virtual MetNoFimex::GridDefinition::~GridDefinition |
( |
| ) |
|
|
virtual |
| virtual bool MetNoFimex::GridDefinition::comparableTo |
( |
const GridDefinition & |
rhs, |
|
|
double |
delta = 0. |
|
) |
| const |
|
virtual |
Compare two GridDefinitions. They are comparable if they have
- same size(XY)
- same incr(XY) within the delta
- same start(XY) within the delta
- Parameters
-
| rhs | the other gridDefinition |
| delta | the relative delta to compare to (a == 0) ? (abs(b) <= delta) : abs((b-a)/a) <= delta |
| virtual std::string MetNoFimex::GridDefinition::getProjDefinition |
( |
| ) |
const |
|
virtual |
| virtual Orientation MetNoFimex::GridDefinition::getScanMode |
( |
| ) |
const |
|
virtual |
| virtual double MetNoFimex::GridDefinition::getXIncrement |
( |
| ) |
const |
|
virtual |
x or longitude increment in m or degree
| virtual size_t MetNoFimex::GridDefinition::getXSize |
( |
| ) |
const |
|
virtual |
number of points in x or longitude direction
| virtual double MetNoFimex::GridDefinition::getXStart |
( |
| ) |
const |
|
virtual |
x or longitude start in m or degree
| virtual double MetNoFimex::GridDefinition::getYIncrement |
( |
| ) |
const |
|
virtual |
y or latitude increment in m or degree
| virtual size_t MetNoFimex::GridDefinition::getYSize |
( |
| ) |
const |
|
virtual |
number of points in y or latitude direction
| virtual double MetNoFimex::GridDefinition::getYStart |
( |
| ) |
const |
|
virtual |
y or latitude start in m or degree
Return a id/hash-key for the grid-definition.
The id is generated with a 0.001 degree/m accuracy for the start-position and increment. Depending on construction, two GridDefinitions can still be identical, even if they have different id's.
| virtual bool MetNoFimex::GridDefinition::isDegree |
( |
| ) |
const |
|
virtual |
| bool MetNoFimex::GridDefinition::operator< |
( |
const GridDefinition & |
rhs | ) |
const |
Less than operator, for usabity of GridDefinition in maps. It does not have any other meaning than a useful sort-order.
| virtual void MetNoFimex::GridDefinition::setDegree |
( |
bool |
isDegree | ) |
|
|
virtual |
| virtual void MetNoFimex::GridDefinition::setProjDefinition |
( |
std::string |
proj | ) |
|
|
virtual |
| virtual void MetNoFimex::GridDefinition::setScanMode |
( |
Orientation |
orient | ) |
|
|
virtual |
| virtual void MetNoFimex::GridDefinition::setXIncrement |
( |
double |
xIncr | ) |
|
|
virtual |
| virtual void MetNoFimex::GridDefinition::setXSize |
( |
size_t |
xSize | ) |
|
|
virtual |
| virtual void MetNoFimex::GridDefinition::setXStart |
( |
double |
startX | ) |
|
|
virtual |
| virtual void MetNoFimex::GridDefinition::setYIncrement |
( |
double |
yIncr | ) |
|
|
virtual |
| virtual void MetNoFimex::GridDefinition::setYSize |
( |
size_t |
ySize | ) |
|
|
virtual |
| virtual void MetNoFimex::GridDefinition::setYStart |
( |
double |
startY | ) |
|
|
virtual |
The documentation for this class was generated from the following file: