Public Member Functions | |
virtual int | getSegmentIndex (const AntarcticCoord &coord) const =0 |
virtual int | NSegments () const =0 |
virtual void | getSegmentCenter (int idx, AntarcticCoord *fillme, bool fillalt=true) const =0 |
virtual AntarcticCoord | getSegmentCenter (int idx, bool fillalt=true) const |
virtual int | getNeighbors (int segment, std::vector< int > *neighbors=NULL) const =0 |
virtual double | interpolate (AntarcticCoord where, const double *data, double noval=0) const =0 |
void | fillHistogram (TH2 *h, const double *data, AntarcticCoord::CoordType type=AntarcticCoord::STEREOGRAPHIC, double noval=0) const |
virtual AntarcticCoord * | sampleSegment (int idx, int N, AntarcticCoord *fillus=0, bool random=true, bool fillalt=true) const =0 |
virtual void | Draw (const char *opt="colz", const double *data=0, const double *range=0) const |
virtual void | DrawI (const char *opt="colz", const int *data=0, const double *range=0) const |
virtual void | asString (TString *str) const =0 |
virtual void | setRampdemDataset (RampdemReader::dataSet d) |
Static Public Member Functions | |
static AntarcticSegmentationScheme * | factory (const char *key) |
Protected Member Functions | |
ClassDef (AntarcticSegmentationScheme, 1) | |
Protected Attributes | |
RampdemReader::dataSet | dataset |
Definition at line 116 of file AntarcticaGeometry.h.
|
virtual |
Draw the segmentation scheme in Stereographic Coords. Default implementation samples each segment 64 times and draws as a TGraph2D with z = segment numbe if data is 0, draws the index of each segment, otherwise draws the value in data[i] for each segment. if range is non-zero, the histogram is zoomed with x in range[0] - range[1] nd y in range[2] - range[3].
Reimplemented in StereographicGrid.
Definition at line 403 of file AntarcticaGeometry.cxx.
|
static |
Factory for AntarcticSegmentationScheme . Will create one based on a string key.
Currently implemented: stereographic_grid_nx[I]_ny[I,=nx]_maxE[I,=3330000]_maxN[I,=3330000] nx by ny bin segmentation of antarctica
Planned: healpix
Definition at line 369 of file AntarcticaGeometry.cxx.
|
pure virtual |
Return the number of neighbhors. if neighbors not null, appends to the vector the neighbors.
Implemented in StereographicGrid.
|
pure virtual |
Gets the center of the segment at this position.
If fillalt, will also fill altitude using RampdemReader (which will be somewhat slower) , otherwise sets it to equivalent of 0
Implemented in StereographicGrid.
|
inlinevirtual |
convenience method
Definition at line 151 of file AntarcticaGeometry.h.
|
pure virtual |
Gets the index of the segment at this position. -1 if not in segmentation scheme.
Implemented in StereographicGrid.
|
pure virtual |
Interpolate data at where. If outside of range, noval is returned.
Implemented in StereographicGrid.
|
pure virtual |
Sample N coordinates within this segment. Will allocate N coords fillus is null. If random is true, random sampling, otherwise some uniformish type
If fillalt, will also fill altitude using RampdemReader (which will be somewhat slower) , otherwise sets it to equivalent of 0
Implemented in StereographicGrid.