openModeller
Version 1.5.0
|
#include <openmodeller/om.hh>
#include <openmodeller/FileParser.hh>
#include <openmodeller/env_io/GeoTransform.hh>
#include <openmodeller/env_io/Raster.hh>
#include <openmodeller/Occurrence.hh>
#include "graph/graphic.hh"
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdexcept>
#include <string>
#include <vector>
Go to the source code of this file.
Functions | |
GColor | _bg (0, 140, 150) |
void | draw () |
void | draw_map (GGraph *graph, Map *map) |
void | draw_occur (GGraph *graph, Map *map, const OccurrencesPtr &) |
void | findRegion (int nmap, Map **map, Coord *xmin, Coord *ymin, Coord *xmax, Coord *ymax) |
OccurrencesPtr | readOccurrences (char const *source, char const *name, char const *coord_system) |
int | main (int argc, char **argv) |
Variables | |
float | _zoom |
int | _redraw = 1 |
int | _last_draw = 0 |
int | _nmap |
Map ** | _maps |
OccurrencesPtr | _occurs |
GImage * | _cnv |
GImage * | _pm |
GGraph * | _graph |
GColor _bg | ( | 0 | , |
140 | , | ||
150 | |||
) |
Referenced by main().
void draw | ( | ) |
Definition at line 219 of file om_viewer.cpp.
References _cnv, _graph, _nmap, _redraw, draw_map(), and draw_occur().
Referenced by main().
void draw_map | ( | GGraph * | graph, |
Map * | map | ||
) |
Definition at line 240 of file om_viewer.cpp.
References _cnv, Map::get(), and Map::numBand().
Referenced by draw().
void draw_occur | ( | GGraph * | graph, |
Map * | map, | ||
const OccurrencesPtr & | occurs | ||
) |
Definition at line 272 of file om_viewer.cpp.
Referenced by draw().
Definition at line 296 of file om_viewer.cpp.
References Map::getExtent().
Referenced by main().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 75 of file om_viewer.cpp.
References _bg(), _cnv, _graph, _maps, _nmap, _pm, _zoom, FileParser::count(), draw(), Log::error(), findRegion(), FileParser::get(), FileParser::getAll(), Log::Info, Log::info(), Log::instance(), RasterFactory::instance(), readOccurrences(), Log::setLevel(), Log::setPrefix(), and Log::warn().
OccurrencesPtr readOccurrences | ( | char const * | source, |
char const * | name, | ||
char const * | coord_system | ||
) |
Definition at line 305 of file om_viewer.cpp.
References OccurrencesFactory::create(), OccurrencesReader::getAbsences(), OccurrencesReader::getPresences(), and OccurrencesFactory::instance().
Referenced by main().
GImage* _cnv |
Definition at line 59 of file om_viewer.cpp.
Referenced by draw(), draw_map(), and main().
GGraph* _graph |
Definition at line 61 of file om_viewer.cpp.
int _last_draw = 0 |
Definition at line 50 of file om_viewer.cpp.
Map** _maps |
Definition at line 55 of file om_viewer.cpp.
Referenced by main().
int _nmap |
Definition at line 54 of file om_viewer.cpp.
OccurrencesPtr _occurs |
Definition at line 57 of file om_viewer.cpp.
GImage* _pm |
Definition at line 60 of file om_viewer.cpp.
Referenced by main().
int _redraw = 1 |
Definition at line 49 of file om_viewer.cpp.
Referenced by draw().
float _zoom |
Definition at line 48 of file om_viewer.cpp.
Referenced by main().