openModeller  Version 1.5.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   
)

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

Here is the call graph for this function:

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

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.

Referenced by draw().

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:

int main ( int  argc,
char **  argv 
)
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.

Referenced by draw(), draw_map(), and main().

GGraph* _graph

Definition at line 61 of file om_viewer.cpp.

Referenced by draw(), and main().

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.

Referenced by draw(), and main().

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