| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions
TeGTMHeader Class Reference

TeGTMHeader .gtm files header. More...

`#include <TeGTM.h>`

List of all members.

## Public Member Functions

| TeGTMHeader ()
| Constructor.
| ~TeGTMHeader ()
| Destructor.
void | readGTMHeader (FILE *file)
| Header reader.
void | writeGTMHeader (FILE *file)
| Header writer.
short | getVersion ()
| version_ attribute Getter
void | setVersion (short version)
| version_ attribute Setter
short | getLabelsize ()
| labelsize_ attribute Getter
void | setLabelsize (short labelsize)
| labelsize_ attribute Setter
char * | getCode ()
| code_ attribute Getter
void | setCode (char *code)
| code_ attribute Setter
char * | getGradfont ()
| gradfont_ attribute Getter
void | setGradfont (char *gradfont)
| gradfont_ attribute Setter
char * | getlabelFont ()
| userfont_ attribute Getter
void | setlabelFont (char *labelfont)
| userfont_ attribute Setter
char * | getUserfont ()
| attribute Getter
void | setUserfont (char *userfont)
| attribute Setter
char * | getNewdatum ()
| newdatum_attribute Getter
void | setNewdatum (char *newdatum)
| newdatum_attribute Setter
unsigned char | getWli ()
| wli_ attribute Getter
void | setWli (unsigned char wli)
| wli_ attribute Setter
unsigned char | getVwt ()
| vwt_ attribute Getter
void | setVwt (unsigned char vwt)
| vwt_ attribute Setter
unsigned char | getGradnum ()
| gradnum_ attribute Getter
void | setGradnum (unsigned char gradnum)
| gradnum_ attribute Setter
unsigned char | getWptnum ()
| wptnum_ attribute Getter
void | setWptnum (unsigned char wptnum)
| wptnum_ attribute Setter
unsigned char | getUsernum ()
| usernum_ attribute Getter
void | setUsernum (unsigned char usernum)
| usernum_ attribute Setter
unsigned char | getCoriml ()
| coriml_ attribute Getter
void | setCoriml (unsigned char coriml)
| coriml_ attribute Setter
unsigned char | getNdatum ()
| ndatum_ attribute Getter
void | setNdatum (unsigned char ndatum)
| ndatum_ attribute Setter
long | getGradcolor ()
| gradcolor_ attribute Getter
void | setGradcolor (long gradcolor)
| gradcolor_ attribute Setter
long | getBcolor ()
| bcolor_ attribute Getter
void | setBcolor (long bcolor)
| bcolor_ attribute Setter
long | getNwptstyles ()
| usercolor_ attribute Getter
void | setNwptstyles (long nwptstyles)
| usercolor_ attribute Setter
long | getUsercolor ()
| attribute Getter
void | setUsercolor (long usercolor)
| attribute Setter
long | getNwpts ()
| nwpts_ attribute Getter
void | setNwpts (long nwpts)
| nwpts_ attribute Setter
long | getNtracks ()
| ntrcks_ attribute Getter
void | setNtracks (long ntrcks)
| ntrcks_ attribute Setter
long | getNrtes ()
| nrtes_ attribute Getter
void | setNrtes (long nrtes)
| nrtes_ attribute Setter
long | getN_maps ()
| n_maps_ attribute Getter
void | setN_maps (long n_maps)
| n_maps_ attribute Setter
long | getN_tk ()
| n_tk_ attribute Getter
void | setN_tk (long n_tk)
| n_tk_ attribute Setter
long | getLabelcolor ()
| labelcolor_ attribute Getter
void | setLabelcolor (long labelcolor)
| labelcolor_ attribute Setter
float | getMaxlon ()
| maxlon_ attribute Getter
void | setMaxlon (float maxlon)
| maxlon_ attribute Setter
float | getMinlon ()
| minlon_ attribute Getter
void | setMinlon (float minlon)
| minlon_ attribute Setter
float | getMaxlat ()
| maxlat_ attribute Getter
void | setMaxlat (float maxlat)
| maxlat_ attribute Setter
float | getMinlat ()
| minlat_ attribute Getter
void | setMinlat (float minlat)
| minlat_ attribute Setter
float | getLayers ()
| layers_ attribute Getter
void | setLayers (float layers)
| layers_ attribute Setter
float | getIconnum ()
| iconnum_ attribute Getter
void | setIconnum (float iconnum)
| iconnum_ attribute Setter
bool | getRectangular ()
| rectangular_ attribute Getter
void | setRectangular (bool rectangular)
| rectangular_ attribute Setter
bool | getTruegrid ()
| truegrid_ attribute Getter
void | setTruegrid (bool truegrid)
| truegrid_ attribute Setter
bool | getUsernegrit ()
| usernegrit_ attribute Getter
void | setUsernegrit (bool usernegrit)
| usernegrit_ attribute Setter
bool | getUseritalic ()
| useritalic_ attribute Getter
void | setUseritalic (bool useritalic)
| useritalic_ attribute Setter
bool | getUsersublin ()
| usersublin_ attribute Getter
void | setUsersublin (bool usersublin)
| usersublin_ attribute Setter
bool | getUsertachado ()
| usertachado_ attribute Getter
void | setUsertachado (bool usertachado)
| usertachado_ attribute Setter
bool | getMap ()
| map_ attribute Getter
void | setMap (bool map)
| map_ attribute Setter

## Detailed Description

TeGTMHeader .gtm files header.

This class contains the access methods for the .gtm header attributes. Attributes used in this class: version - Integer Version of GTM file – Place 211 code - String*10 Fixed-length String – Place TrackMaker wli - Byte Draws thick lines on Maps – Set to 0 vwt - Byte Reservation – Set to 0 gradnum - Byte Font size of the Grid Lines – Default = 8 wptnum - Byte Reservation – Set to 0 usernum - Byte Reservation – Set to 0 coriml - Byte Icon color ndatum - Byte Reservation – Set to 0 gradcolor - Long Grid color – RGB – Default = 0 (Black) bcolor - Long Background color– RGB – Default = 16777215 (White) nwptstyles - Long Number of Waypoint Styles Defines the number of times that the stylefont1 sequence will be repeated. usercolor - Long Text Color of default Waypoint – RGB – Default = 0 (Black) nwpts - Long Number of Waypoints Defines - the number of times that the Wpts1 sequence will be repeated ntrcks - Long Number of Trackpoints Defines the number of times that the trcks1 sequence will be repeated nrtes - Long Number of RoutePoints Defines the number of times that the rtes1 sequence will be repeated

maxlon - minlon - Single Bounding Box that stores the actual extent of the data in the file. Represents the minimum-bounding maxlat - rectangle orthogonal to the X and Y axes that contains all shapes. Basically used by the Catalog of Images. minlat -

n_maps - Long Number of Map images n_tk - Long Number of Tracklog Styles rectangular - Boolean Activates Rectangular coordinates when GTM file is opened – Default = false truegrid - Boolean Activates True Grid Mode when GTM file is opened – Default = False LabelColor - Boolean Text Color of Tracklog Labels wpttachado - Boolean Reservation – Set to False usernegrit - Boolean Reservation – Set to False useritalic - Boolean Reservation – Set to False usersublin - Boolean Reservation – Set to False usertachado - Boolean Reservation – Set to False map - Boolean Set to TRUE if there are maps LabelSize - Boolean Font Size of Tracklog Labels gradfont - String Font Name of the Grid Text – Default = Times New Roman LabelFont - String Font Name of Tracklogs Labels – Default = Times New Roman userfont - String Reservation – No Text newdatum - String Reservation – No Text

Author:
  Luiz Claudio Oliveira de Andrade <lcoandrade@gmail.com>

## Constructor & Destructor Documentation

TeGTMHeader::TeGTMHeader | ( |  | ) |

Constructor.

TeGTMHeader::~TeGTMHeader | ( |  | ) |

Destructor.

## Member Function Documentation

long TeGTMHeader::getBcolor | ( |  | ) | `[inline]`

bcolor_ attribute Getter

char* TeGTMHeader::getCode | ( |  | ) | `[inline]`

code_ attribute Getter

unsigned char TeGTMHeader::getCoriml | ( |  | ) | `[inline]`

coriml_ attribute Getter

long TeGTMHeader::getGradcolor | ( |  | ) | `[inline]`

gradcolor_ attribute Getter

char* TeGTMHeader::getGradfont | ( |  | ) | `[inline]`

gradfont_ attribute Getter

unsigned char TeGTMHeader::getGradnum | ( |  | ) | `[inline]`

gradnum_ attribute Getter

float TeGTMHeader::getIconnum | ( |  | ) | `[inline]`

iconnum_ attribute Getter

long TeGTMHeader::getLabelcolor | ( |  | ) | `[inline]`

labelcolor_ attribute Getter

char* TeGTMHeader::getlabelFont | ( |  | ) | `[inline]`

userfont_ attribute Getter

short TeGTMHeader::getLabelsize | ( |  | ) | `[inline]`

labelsize_ attribute Getter

float TeGTMHeader::getLayers | ( |  | ) | `[inline]`

layers_ attribute Getter

bool TeGTMHeader::getMap | ( |  | ) | `[inline]`

map_ attribute Getter

float TeGTMHeader::getMaxlat | ( |  | ) | `[inline]`

maxlat_ attribute Getter

float TeGTMHeader::getMaxlon | ( |  | ) | `[inline]`

maxlon_ attribute Getter

float TeGTMHeader::getMinlat | ( |  | ) | `[inline]`

minlat_ attribute Getter

float TeGTMHeader::getMinlon | ( |  | ) | `[inline]`

minlon_ attribute Getter

long TeGTMHeader::getN_maps | ( |  | ) | `[inline]`

n_maps_ attribute Getter

long TeGTMHeader::getN_tk | ( |  | ) | `[inline]`

n_tk_ attribute Getter

unsigned char TeGTMHeader::getNdatum | ( |  | ) | `[inline]`

ndatum_ attribute Getter

char* TeGTMHeader::getNewdatum | ( |  | ) | `[inline]`

newdatum_attribute Getter

long TeGTMHeader::getNrtes | ( |  | ) | `[inline]`

nrtes_ attribute Getter

long TeGTMHeader::getNtracks | ( |  | ) | `[inline]`

ntrcks_ attribute Getter

long TeGTMHeader::getNwpts | ( |  | ) | `[inline]`

nwpts_ attribute Getter

long TeGTMHeader::getNwptstyles | ( |  | ) | `[inline]`

usercolor_ attribute Getter

bool TeGTMHeader::getRectangular | ( |  | ) | `[inline]`

rectangular_ attribute Getter

bool TeGTMHeader::getTruegrid | ( |  | ) | `[inline]`

truegrid_ attribute Getter

long TeGTMHeader::getUsercolor | ( |  | ) | `[inline]`

attribute Getter

char* TeGTMHeader::getUserfont | ( |  | ) | `[inline]`

attribute Getter

bool TeGTMHeader::getUseritalic | ( |  | ) | `[inline]`

useritalic_ attribute Getter

bool TeGTMHeader::getUsernegrit | ( |  | ) | `[inline]`

usernegrit_ attribute Getter

unsigned char TeGTMHeader::getUsernum | ( |  | ) | `[inline]`

usernum_ attribute Getter

bool TeGTMHeader::getUsersublin | ( |  | ) | `[inline]`

usersublin_ attribute Getter

bool TeGTMHeader::getUsertachado | ( |  | ) | `[inline]`

usertachado_ attribute Getter

short TeGTMHeader::getVersion | ( |  | ) | `[inline]`

version_ attribute Getter

unsigned char TeGTMHeader::getVwt | ( |  | ) | `[inline]`

vwt_ attribute Getter

unsigned char TeGTMHeader::getWli | ( |  | ) | `[inline]`

wli_ attribute Getter

unsigned char TeGTMHeader::getWptnum | ( |  | ) | `[inline]`

wptnum_ attribute Getter

void TeGTMHeader::readGTMHeader | ( | FILE * | file | ) |

Header reader.

Parameters:

  file | pointer to a FILE* with the .gtm file to be imported.

void TeGTMHeader::setBcolor | ( | long | bcolor | ) | `[inline]`

bcolor_ attribute Setter

Parameters:

  GTM | file bcolor to be set, Default = 16777215.

void TeGTMHeader::setCode | ( | char * | code | ) | `[inline]`

code_ attribute Setter

Parameters:

  GTM | file code to be set, place Trackmaker.

void TeGTMHeader::setCoriml | ( | unsigned char | coriml | ) | `[inline]`

coriml_ attribute Setter

Parameters:

  GTM | file coriml to be set, Byte Icon color.

void TeGTMHeader::setGradcolor | ( | long | gradcolor | ) | `[inline]`

gradcolor_ attribute Setter

Parameters:

  GTM | file gradcolor to be set, Default = 0.

void TeGTMHeader::setGradfont | ( | char * | gradfont | ) | `[inline]`

gradfont_ attribute Setter

Parameters:

  GTM | file grad font to be set, Default = Times New Roman.

void TeGTMHeader::setGradnum | ( | unsigned char | gradnum | ) | `[inline]`

gradnum_ attribute Setter

Parameters:

  GTM | file gradnum to be set, Default = 8.

void TeGTMHeader::setIconnum | ( | float | iconnum | ) | `[inline]`

iconnum_ attribute Setter

Parameters:

  GTM | file iconnum to be set.

void TeGTMHeader::setLabelcolor | ( | long | labelcolor | ) | `[inline]`

labelcolor_ attribute Setter

Parameters:

  GTM | file labelcolor to be set.

void TeGTMHeader::setlabelFont | ( | char * | labelfont | ) | `[inline]`

userfont_ attribute Setter

Parameters:

  GTM | file label font to be set, Default = Times New Roman.

void TeGTMHeader::setLabelsize | ( | short | labelsize | ) | `[inline]`

labelsize_ attribute Setter

Parameters:

  GTM | file labelsize to be set.

void TeGTMHeader::setLayers | ( | float | layers | ) | `[inline]`

layers_ attribute Setter

Parameters:

  GTM | file layers to be set.

void TeGTMHeader::setMap | ( | bool | map | ) | `[inline]`

map_ attribute Setter

Parameters:

  GTM | file map to be set.

void TeGTMHeader::setMaxlat | ( | float | maxlat | ) | `[inline]`

maxlat_ attribute Setter

Parameters:

  GTM | file maxlat to be set.

void TeGTMHeader::setMaxlon | ( | float | maxlon | ) | `[inline]`

maxlon_ attribute Setter

Parameters:

  GTM | file maxlon to be set.

void TeGTMHeader::setMinlat | ( | float | minlat | ) | `[inline]`

minlat_ attribute Setter

Parameters:

  GTM | file minlat to be set.

void TeGTMHeader::setMinlon | ( | float | minlon | ) | `[inline]`

minlon_ attribute Setter

Parameters:

  GTM | file minlon to be set.

void TeGTMHeader::setN_maps | ( | long | n_maps | ) | `[inline]`

n_maps_ attribute Setter

Parameters:

  GTM | file n_maps_ to be set.

void TeGTMHeader::setN_tk | ( | long | n_tk | ) | `[inline]`

n_tk_ attribute Setter

Parameters:

  GTM | file n_tk to be set.

void TeGTMHeader::setNdatum | ( | unsigned char | ndatum | ) | `[inline]`

ndatum_ attribute Setter

Parameters:

  GTM | file ndatum to be set, Set to 0.

void TeGTMHeader::setNewdatum | ( | char * | newdatum | ) | `[inline]`

newdatum_attribute Setter

Parameters:

  GTM | file new datum to be set, String Reservation – No Text.

void TeGTMHeader::setNrtes | ( | long | nrtes | ) | `[inline]`

nrtes_ attribute Setter

Parameters:

  GTM | file nrtes to be set.

void TeGTMHeader::setNtracks | ( | long | ntrcks | ) | `[inline]`

ntrcks_ attribute Setter

Parameters:

  GTM | file ndatum to be set.

void TeGTMHeader::setNwpts | ( | long | nwpts | ) | `[inline]`

nwpts_ attribute Setter

Parameters:

  GTM | file nwpts to be set.

void TeGTMHeader::setNwptstyles | ( | long | nwptstyles | ) | `[inline]`

usercolor_ attribute Setter

Parameters:

  GTM | file nwptstyles to be set.

void TeGTMHeader::setRectangular | ( | bool | rectangular | ) | `[inline]`

rectangular_ attribute Setter

Parameters:

  GTM | file rectangular to be set.

void TeGTMHeader::setTruegrid | ( | bool | truegrid | ) | `[inline]`

truegrid_ attribute Setter

Parameters:

  GTM | file truegrid to be set.

void TeGTMHeader::setUsercolor | ( | long | usercolor | ) | `[inline]`

attribute Setter

Parameters:

  GTM | file usercolor to be set, Default = 0.

void TeGTMHeader::setUserfont | ( | char * | userfont | ) | `[inline]`

attribute Setter

Parameters:

  GTM | file user font to be set, String Reservation – No Text.

void TeGTMHeader::setUseritalic | ( | bool | useritalic | ) | `[inline]`

useritalic_ attribute Setter

Parameters:

  GTM | file useritalic to be set.

void TeGTMHeader::setUsernegrit | ( | bool | usernegrit | ) | `[inline]`

usernegrit_ attribute Setter

Parameters:

  GTM | file usernegrit to be set.

void TeGTMHeader::setUsernum | ( | unsigned char | usernum | ) | `[inline]`

usernum_ attribute Setter

Parameters:

  GTM | file usernum to be set, Set to 0.

void TeGTMHeader::setUsersublin | ( | bool | usersublin | ) | `[inline]`

usersublin_ attribute Setter

Parameters:

  GTM | file usersublin to be set.

void TeGTMHeader::setUsertachado | ( | bool | usertachado | ) | `[inline]`

usertachado_ attribute Setter

Parameters:

  GTM | file usertachado to be set.

void TeGTMHeader::setVersion | ( | short | version | ) | `[inline]`

version_ attribute Setter

Parameters:

  GTM | file version to be set.

void TeGTMHeader::setVwt | ( | unsigned char | vwt | ) | `[inline]`

vwt_ attribute Setter

Parameters:

  GTM | file vwt to be set, Set to 0.

void TeGTMHeader::setWli | ( | unsigned char | wli | ) | `[inline]`

wli_ attribute Setter

Parameters:

  GTM | file wli to be set, Set to 0.

void TeGTMHeader::setWptnum | ( | unsigned char | wptnum | ) | `[inline]`

wptnum_ attribute Setter

Parameters:

  GTM | file wptnum to be set, Set to 0.

void TeGTMHeader::writeGTMHeader | ( | FILE * | file | ) |

Header writer.

Parameters:

  file | pointer to a FILE* with the .gtm file to be exported.

The documentation for this class was generated from the following files:

- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/drivers/GTM/TeGTM.h
- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/drivers/GTM/TeGTM.cpp

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines