Public Member Functions | |
StereographicGrid (int nx=512, int ny=512, double max_E=3330000, double max_N=3330000) | |
virtual int | getSegmentIndex (const AntarcticCoord &coord) const |
virtual int | getNeighbors (int segment, std::vector< int > *neighbors=NULL) const |
virtual int | NSegments () const |
virtual void | getSegmentCenter (int idx, AntarcticCoord *fill, bool fillalt=true) const |
virtual AntarcticCoord * | sampleSegment (int idx, int N, AntarcticCoord *fillus=0, bool random=true, bool fillalt=true) const |
virtual void | Draw (const char *opt="colz", const double *data=0, const double *range=0) const |
virtual double | interpolate (AntarcticCoord where, const double *data, double noval=0) const |
virtual double | interpolate (double x, double y, const double *data, double noval=0) const |
virtual void | asString (TString *str) const |
Public Member Functions inherited from AntarcticSegmentationScheme | |
virtual AntarcticCoord | getSegmentCenter (int idx, bool fillalt=true) const |
void | fillHistogram (TH2 *h, const double *data, AntarcticCoord::CoordType type=AntarcticCoord::STEREOGRAPHIC, double noval=0) const |
virtual void | DrawI (const char *opt="colz", const int *data=0, const double *range=0) const |
virtual void | setRampdemDataset (RampdemReader::dataSet d) |
Additional Inherited Members | |
Static Public Member Functions inherited from AntarcticSegmentationScheme | |
static AntarcticSegmentationScheme * | factory (const char *key) |
Protected Member Functions inherited from AntarcticSegmentationScheme | |
ClassDef (AntarcticSegmentationScheme, 1) | |
Protected Attributes inherited from AntarcticSegmentationScheme | |
RampdemReader::dataSet | dataset |
Definition at line 196 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 from AntarcticSegmentationScheme.
Definition at line 557 of file AntarcticaGeometry.cxx.
|
virtual |
Return the number of neighbhors. if neighbors not null, appends to the vector the neighbors.
Implements AntarcticSegmentationScheme.
Definition at line 618 of file AntarcticaGeometry.cxx.
|
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
Implements AntarcticSegmentationScheme.
Definition at line 469 of file AntarcticaGeometry.cxx.
|
virtual |
Gets the index of the segment at this position. -1 if not in segmentation scheme.
Implements AntarcticSegmentationScheme.
Definition at line 455 of file AntarcticaGeometry.cxx.
|
virtual |
Interpolate data at where. If outside of range, noval is returned.
Implements AntarcticSegmentationScheme.
Definition at line 481 of file AntarcticaGeometry.cxx.
|
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
Implements AntarcticSegmentationScheme.
Definition at line 517 of file AntarcticaGeometry.cxx.