OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
vpfmisc.h
Go to the documentation of this file.
1 #ifndef _VPFMISC_
2 #define _VPFMISC_
3 #ifdef __cplusplus
4 extern "C" {
5 #endif
6 
7 #define graphic_mode()\
8  ( (getgraphmode() < 0) ? 0 : 1)
9 
10 #include <ossim/vpfutil/vpfview.h>
11 
12 void *vpfmalloc( unsigned long size );
13 
14 void vpffree( void *ptr );
15 void displaymessage(char*, ...);
16 
17 #ifdef __MSDOS__
18 void get_display_position( int *x, int *y, window_type window );
19 #endif
20 
21 void displayinfo( char *text[],
22  int nlines );
23 
24 void no_study_area(void);
25 
26 void no_map_displayed(void);
27 
28 void display_message(char *str);
29 
30 dms_type float_to_dms( double coord );
31 
32 double dms_to_float( dms_type coord );
33 
34 char *dms_string( dms_type coord, int seconds );
35 
36 void out_dms( dms_type coord, int x, int y, int dir, int seconds );
37 
38 int strpos( char *str, char ch );
39 
40 VPF_BOOLEAN fwithin( float x,
41  float y,
42  extent_type extent );
43 
45  extent_type extent2 );
46 
47 void memleft(void);
48 
49 #ifdef __MSDOS__
50 window_type info_window( char *text );
51 #endif
52 
53 #if !defined(__MSDOS__) && !defined(_MSC_VER) && !defined(__BORLANDC__)
54 # ifndef _MSC_VER
55 char* strupr(char* str);
56 # endif
57 #endif
58 
59 float distance( double lat1, double lon1, double lat2, double lon2,
60  int units );
61 
62 char *rightjust( char *str );
63 
64 char *leftjust( char *str );
65 
66 VPF_BOOLEAN displayerror( char *text[],
67  int nlines );
68 
69 int printer_ready(void);
70 
71 int printer_ok(void);
72 
73 int is_primitive( char *name );
74 
75 int is_simple_feature( char *name );
76 
77 int is_complex_feature( char *name );
78 
79 int is_feature( char *name );
80 
81 int feature_type( char *name );
82 
83 int is_join( char *name );
84 
85 int primitive_class( char *name );
86 
93 int ossim_strcasecmp(const char *s1, const char *s2);
94 
102 int ossim_strncasecmp(const char *s1, const char *s2, unsigned int n);
103 
104 #ifdef __cplusplus
105 }
106 #endif
107 
108 #endif
ossim_uint32 x
int ossim_strcasecmp(const char *s1, const char *s2)
Written to replace non-portable "strcasecmp".
unsigned VPF_BOOLEAN
Definition: vpfview.h:22
ossim_uint32 y
void memleft(void)
void display_message(char *str)
void displayinfo(char *text[], int nlines)
int feature_type(char *name)
char * rightjust(char *str)
void vpffree(void *ptr)
int printer_ready(void)
char * dms_string(dms_type coord, int seconds)
float distance(double lat1, double lon1, double lat2, double lon2, int units)
VPF_BOOLEAN contained(extent_type extent1, extent_type extent2)
int is_complex_feature(char *name)
yy_size_t size
dms_type float_to_dms(double coord)
os2<< "> n<< " > nendobj n
void no_study_area(void)
void out_dms(dms_type coord, int x, int y, int dir, int seconds)
int printer_ok(void)
void no_map_displayed(void)
VPF_BOOLEAN displayerror(char *text[], int nlines)
int strpos(char *str, char ch)
int primitive_class(char *name)
int is_feature(char *name)
char * leftjust(char *str)
VPF_BOOLEAN fwithin(float x, float y, extent_type extent)
int is_primitive(char *name)
int is_simple_feature(char *name)
int ossim_strncasecmp(const char *s1, const char *s2, unsigned int n)
Written to replace non-portable "strncasecmp".
void * vpfmalloc(unsigned long size)
char * strupr(char *str)
void displaymessage(char *,...)
int is_join(char *name)
double dms_to_float(dms_type coord)