openModeller  Version 1.4.0
om_viewer.cpp File Reference
#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>
Include dependency graph for om_viewer.cpp:

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

Function Documentation

GColor _bg ( ,
140  ,
150   
)
void draw ( )
void draw_map ( GGraph *  graph,
Map map 
)

Definition at line 240 of file om_viewer.cpp.

References _cnv, Map::get(), and Map::numBand().

Here is the call graph for this function:

void draw_occur ( GGraph *  graph,
Map map,
const OccurrencesPtr occurs 
)

Definition at line 272 of file om_viewer.cpp.

void findRegion ( int  nmap,
Map **  map,
Coord xmin,
Coord ymin,
Coord xmax,
Coord ymax 
)

Definition at line 296 of file om_viewer.cpp.

References Map::getExtent().

Referenced by main().

Here is the call graph for this function:

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().

Here is the call graph for this function:


Variable Documentation

GImage* _cnv

Definition at line 59 of file om_viewer.cpp.

GGraph* _graph

Definition at line 61 of file om_viewer.cpp.

int _last_draw = 0

Definition at line 50 of file om_viewer.cpp.

Definition at line 55 of file om_viewer.cpp.

int _nmap

Definition at line 54 of file om_viewer.cpp.

Definition at line 57 of file om_viewer.cpp.

GImage* _pm

Definition at line 60 of file om_viewer.cpp.

int _redraw = 1

Definition at line 49 of file om_viewer.cpp.

float _zoom

Definition at line 48 of file om_viewer.cpp.