OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Macros | Functions
vpfmisc.h File Reference
#include <ossim/vpfutil/vpfview.h>

Go to the source code of this file.

Macros

#define graphic_mode()   ( (getgraphmode() < 0) ? 0 : 1)
 

Functions

void * vpfmalloc (unsigned long size)
 
void vpffree (void *ptr)
 
void displaymessage (char *,...)
 
void displayinfo (char *text[], int nlines)
 
void no_study_area (void)
 
void no_map_displayed (void)
 
void display_message (char *str)
 
dms_type float_to_dms (double coord)
 
double dms_to_float (dms_type coord)
 
char * dms_string (dms_type coord, int seconds)
 
void out_dms (dms_type coord, int x, int y, int dir, int seconds)
 
int strpos (char *str, char ch)
 
VPF_BOOLEAN fwithin (float x, float y, extent_type extent)
 
VPF_BOOLEAN contained (extent_type extent1, extent_type extent2)
 
void memleft (void)
 
char * strupr (char *str)
 
float distance (double lat1, double lon1, double lat2, double lon2, int units)
 
char * rightjust (char *str)
 
char * leftjust (char *str)
 
VPF_BOOLEAN displayerror (char *text[], int nlines)
 
int printer_ready (void)
 
int printer_ok (void)
 
int is_primitive (char *name)
 
int is_simple_feature (char *name)
 
int is_complex_feature (char *name)
 
int is_feature (char *name)
 
int feature_type (char *name)
 
int is_join (char *name)
 
int primitive_class (char *name)
 
int ossim_strcasecmp (const char *s1, const char *s2)
 Written to replace non-portable "strcasecmp". More...
 
int ossim_strncasecmp (const char *s1, const char *s2, unsigned int n)
 Written to replace non-portable "strncasecmp". More...
 

Macro Definition Documentation

◆ graphic_mode

#define graphic_mode ( )    ( (getgraphmode() < 0) ? 0 : 1)

Definition at line 7 of file vpfmisc.h.

Function Documentation

◆ contained()

VPF_BOOLEAN contained ( extent_type  extent1,
extent_type  extent2 
)

◆ display_message()

void display_message ( char *  str)

◆ displayerror()

VPF_BOOLEAN displayerror ( char *  text[],
int  nlines 
)

◆ displayinfo()

void displayinfo ( char *  text[],
int  nlines 
)

◆ displaymessage()

void displaymessage ( char *  ,
  ... 
)

◆ distance()

float distance ( double  lat1,
double  lon1,
double  lat2,
double  lon2,
int  units 
)

◆ dms_string()

char* dms_string ( dms_type  coord,
int  seconds 
)

◆ dms_to_float()

double dms_to_float ( dms_type  coord)

◆ feature_type()

int feature_type ( char *  name)

◆ float_to_dms()

dms_type float_to_dms ( double  coord)

◆ fwithin()

VPF_BOOLEAN fwithin ( float  x,
float  y,
extent_type  extent 
)

Referenced by ossimVpfExtent::within().

◆ is_complex_feature()

int is_complex_feature ( char *  name)

◆ is_feature()

int is_feature ( char *  name)

◆ is_join()

int is_join ( char *  name)

◆ is_primitive()

int is_primitive ( char *  name)

◆ is_simple_feature()

int is_simple_feature ( char *  name)

◆ leftjust()

char* leftjust ( char *  str)

◆ memleft()

void memleft ( void  )

◆ no_map_displayed()

void no_map_displayed ( void  )

◆ no_study_area()

void no_study_area ( void  )

◆ ossim_strcasecmp()

int ossim_strcasecmp ( const char *  s1,
const char *  s2 
)

Written to replace non-portable "strcasecmp".

Returns
An integer -1, 0, or 1 if s1 is found, respectively, to be less than, to match, or be greater than s2.

◆ ossim_strncasecmp()

int ossim_strncasecmp ( const char *  s1,
const char *  s2,
unsigned int  n 
)

Written to replace non-portable "strncasecmp".

Similar to ossim_strcasecmp, except it only compares the first n characters.

Returns
An integer -1, 0, or 1 if s1 is found, respectively, to be less than, to match, or be greater than s2.

◆ out_dms()

void out_dms ( dms_type  coord,
int  x,
int  y,
int  dir,
int  seconds 
)

◆ primitive_class()

int primitive_class ( char *  name)

◆ printer_ok()

int printer_ok ( void  )

◆ printer_ready()

int printer_ready ( void  )

◆ rightjust()

char* rightjust ( char *  str)

◆ strpos()

int strpos ( char *  str,
char  ch 
)

◆ strupr()

char* strupr ( char *  str)

◆ vpffree()

void vpffree ( void *  ptr)

◆ vpfmalloc()

void* vpfmalloc ( unsigned long  size)