| TerraLib 4.1

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

- File List
- File Members

E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/drivers/GTM/TeGTM.h
Go to the documentation of this file.

    00001 /************************************************************************************
    00002 TerraLib - a library for developing GIS applications.
    00003 Copyright © 2001-2007 INPE and Tecgraf/PUC-Rio.
    00004
    00005 This code is part of the TerraLib library.
    00006 This library is free software; you can redistribute it and/or
    00007 modify it under the terms of the GNU Lesser General Public
    00008 License as published by the Free Software Foundation; either
    00009 version 2.1 of the License, or (at your option) any later version.
    00010
    00011 You should have received a copy of the GNU Lesser General Public
    00012 License along with this library.
    00013
    00014 The authors reassure the license terms regarding the warranties.
    00015 They specifically disclaim any warranties, including, but not limited to,
    00016 the implied warranties of merchantability and fitness for a particular purpose.
    00017 The library provided hereunder is on an "as is" basis, and the authors have no
    00018 obligation to provide maintenance, support, updates, enhancements, or modifications.
    00019 In no event shall INPE and Tecgraf / PUC-Rio be held liable to any party for direct,
    00020 indirect, special, incidental, or consequential damages arising out of the use
    00021 of this library and its documentation.
    00022 *************************************************************************************/
    00026 #ifndef  __TERRALIB_INTERNAL_GTMDRIVER_H
    00027 #define  __TERRALIB_INTERNAL_GTMDRIVER_H
    00028
    00029 #include <cstdio>
    00030 #include <vector>
    00031 #include <TeProjection.h>
    00032 #include <TeDatum.h>
    00033 #include <TeLayer.h>
    00034 #include <TeDatabase.h>
    00035 #include <TeAttribute.h>
    00036
    00037 #include <tdkebdgnimport.h>
    00038
    00039 using namespace std;
    00040
    00042
    00086 class TDKEB_DGNIMPORT_API TeGTMHeader
    00087 {
    00088 private:
    00089            short version_, labelsize_;
    00090            char* code_;//code deve ser char[10]
    00091            unsigned char wli_, vwt_, gradnum_, wptnum_, usernum_, coriml_, ndatum_;
    00092            long gradcolor_, bcolor_, nwptstyles_, usercolor_, nwpts_, ntrcks_, nrtes_, n_maps_, n_tk_, labelcolor_;
    00093            float maxlon_, minlon_, maxlat_, minlat_, layers_, iconnum_;
    00094            char *gradfont_, *labelfont_, *userfont_, *newdatum_;
    00095            bool rectangular_, truegrid_, usernegrit_, useritalic_, usersublin_, usertachado_, map_;
    00096 public:
    00098            TeGTMHeader();
    00099
    00101            ~TeGTMHeader();
    00102
    00104
    00107            void readGTMHeader(FILE* file);
    00108
    00110
    00113            void writeGTMHeader(FILE* file);
    00114
    00116            short getVersion(){return version_;};
    00117
    00119
    00122            void setVersion(short version){version_ = version;};
    00123
    00125            short getLabelsize(){return labelsize_;};
    00126
    00128
    00131            void setLabelsize(short labelsize){labelsize_ = labelsize;};
    00132
    00134            char* getCode(){return code_;};
    00135
    00137
    00140            void setCode(char* code){code_ = code;};
    00141
    00143            char* getGradfont(){return gradfont_;};
    00144
    00146
    00149            void setGradfont(char* gradfont){gradfont_ = gradfont;};
    00150
    00152            char* getlabelFont(){return labelfont_;};
    00153
    00155
    00158            void setlabelFont(char* labelfont){labelfont_ = labelfont;};
    00159
    00161            char* getUserfont(){return userfont_;};
    00162
    00164
    00167            void setUserfont(char* userfont){userfont_ = userfont;};
    00168
    00170            char* getNewdatum(){return newdatum_;};
    00171
    00173
    00176            void setNewdatum(char* newdatum){newdatum_ = newdatum;};
    00177
    00179            unsigned char getWli(){return wli_;};
    00180
    00182
    00185            void setWli(unsigned char wli){wli_ = wli;};
    00186
    00188            unsigned char getVwt(){return vwt_;};
    00189
    00191
    00194            void setVwt(unsigned char vwt){vwt_ = vwt;};
    00195
    00197            unsigned char getGradnum(){return gradnum_;};
    00198
    00200
    00203            void setGradnum(unsigned char gradnum){gradnum_ = gradnum;};
    00204
    00206            unsigned char getWptnum(){return wptnum_;};
    00207
    00209
    00212            void setWptnum(unsigned char wptnum){wptnum_ = wptnum;};
    00213
    00215            unsigned char getUsernum(){return usernum_;};
    00216
    00218
    00221            void setUsernum(unsigned char usernum){usernum_ = usernum;};
    00222
    00224            unsigned char getCoriml(){return coriml_;};
    00225
    00227
    00230            void setCoriml(unsigned char coriml){coriml_ = coriml;};
    00231
    00233            unsigned char getNdatum(){return ndatum_;};
    00234
    00236
    00239            void setNdatum(unsigned char ndatum){ndatum_ = ndatum;};
    00240
    00242            long getGradcolor(){return gradcolor_;};
    00243
    00245
    00248            void setGradcolor(long gradcolor){gradcolor_ = gradcolor;};
    00249
    00251            long getBcolor(){return bcolor_;};
    00252
    00254
    00257            void setBcolor(long bcolor){bcolor_ = bcolor;};
    00258
    00260            long getNwptstyles(){return nwptstyles_;};
    00261
    00263
    00266            void setNwptstyles(long nwptstyles){nwptstyles_ = nwptstyles;};
    00267
    00269            long getUsercolor(){return usercolor_;};
    00270
    00272
    00275            void setUsercolor(long usercolor){usercolor_ = usercolor;};
    00276
    00278            long getNwpts(){return nwpts_;};
    00279
    00281
    00284            void setNwpts(long nwpts){nwpts_ = nwpts;};
    00285
    00287            long getNtracks(){return ntrcks_;};
    00288
    00290
    00293            void setNtracks(long ntrcks){ntrcks_ = ntrcks;};
    00294
    00296            long getNrtes(){return nrtes_;};
    00297
    00299
    00302            void setNrtes(long nrtes){nrtes_ = nrtes;};
    00303
    00305            long getN_maps(){return n_maps_;};
    00306
    00308
    00311            void setN_maps(long n_maps){n_maps_ = n_maps;};
    00312
    00314            long getN_tk(){return n_tk_;};
    00316
    00319            void setN_tk(long n_tk){n_tk_ = n_tk;};
    00320
    00322            long getLabelcolor(){return labelcolor_;};
    00324
    00327            void setLabelcolor(long labelcolor){labelcolor_ = labelcolor;};
    00328
    00330            float getMaxlon(){return maxlon_;};
    00331
    00333
    00336            void setMaxlon(float maxlon){maxlon_ = maxlon;};
    00337
    00339            float getMinlon(){return minlon_;};
    00340
    00342
    00345            void setMinlon(float minlon){minlon_ = minlon;};
    00346
    00348            float getMaxlat(){return maxlat_;};
    00349
    00351
    00354            void setMaxlat(float maxlat){maxlat_ = maxlat;};
    00355
    00357            float getMinlat(){return minlat_;};
    00358
    00360
    00363            void setMinlat(float minlat){minlat_ = minlat;};
    00364
    00366            float getLayers(){return layers_;};
    00367
    00369
    00372            void setLayers(float layers){layers_ = layers;};
    00373
    00375            float getIconnum(){return iconnum_;};
    00376
    00378
    00381            void setIconnum(float iconnum){iconnum_ = iconnum;};
    00382
    00384            bool getRectangular(){return rectangular_;};
    00385
    00387
    00390            void setRectangular(bool rectangular){rectangular_ = rectangular;};
    00391
    00393            bool getTruegrid(){return truegrid_;};
    00394
    00396
    00399            void setTruegrid(bool truegrid){truegrid_ = truegrid;};
    00400
    00402            bool getUsernegrit(){return usernegrit_;};
    00403
    00405
    00408            void setUsernegrit(bool usernegrit){usernegrit_ = usernegrit;};
    00409
    00411            bool getUseritalic(){return useritalic_;};
    00412
    00414
    00417            void setUseritalic(bool useritalic){useritalic_ = useritalic;};
    00418
    00420            bool getUsersublin(){return usersublin_;};
    00421
    00423
    00426            void setUsersublin(bool usersublin){usersublin_ = usersublin;};
    00427
    00429            bool getUsertachado(){return usertachado_;};
    00430
    00432
    00435            void setUsertachado(bool usertachado){usertachado_ = usertachado;};
    00436
    00438            bool getMap(){return map_;};
    00439
    00441
    00444            void setMap(bool map){map_ = map;};
    00445 };
    00446
    00447
    00449
    00464 class TDKEB_DGNIMPORT_API TeGTMGridDatum
    00465 {
    00466 private:
    00467            short ngrid_, ndatum_, dx_, dy_, dz_;
    00468            double origin_, falseeast_, scale1_, falsenorthing_, axis_, flattening_;
    00469 public:
    00471            TeGTMGridDatum();
    00472
    00474            ~TeGTMGridDatum();
    00475
    00477
    00480            void readGTMGridDatum(FILE* file);
    00481
    00483
    00486            void writeGTMGridDatum(FILE* file);
    00487
    00489            short getNgrid(){return ngrid_;};
    00490
    00492
    00495            void setNgrid(short ngrid){ngrid_ = ngrid;};
    00496
    00498            short getNdatum(){return ndatum_;};
    00499
    00501
    00504            void setNdatum(short ndatum){ndatum_ = ndatum;};
    00505
    00507            short getDx(){return dx_;};
    00508
    00510
    00513            void setDx(short dx){dx_ = dx;};
    00514
    00516            short getDy(){return dy_;};
    00517
    00519
    00522            void setDy(short dy){dy_ = dy;};
    00523
    00525            short getDz(){return dz_;};
    00526
    00528
    00531            void setDz(short dz){dz_ = dz;};
    00532
    00534            double getOrigin(){return origin_;};
    00535
    00537
    00540            void setOrigin(double origin){origin_ = origin;};
    00541
    00543            double getFalseeast(){return falseeast_;};
    00544
    00546
    00549            void setFalseeast(double falseeast){falseeast_ = falseeast;};
    00550
    00552            double getScale1(){return scale1_;};
    00553
    00555
    00558            void setScale1(double scale1){scale1_ = scale1;};
    00559
    00561            double getFalsenorthing(){return falsenorthing_;};
    00562
    00564
    00567            void setFalsenorthing(double falsenorthing){falsenorthing_ = falsenorthing;};
    00568
    00570            double getAxis(){return axis_;};
    00571
    00573
    00576            void setAxis(double axis){axis_ = axis;};
    00577
    00579            double getFlattening(){return flattening_;};
    00580
    00582
    00585            void setFlattening(double flattening){flattening_ = flattening;};
    00586 };
    00587
    00589
    00604 class TDKEB_DGNIMPORT_API TeGTMInformationImages
    00605 {
    00606 private:
    00607            char *name_map_, *comments_, *blob_;//blob -> usado para guardar a imagem em si
    00608            float gposx_, gposy_, gwidth_, gheight_, metax_, metay_;
    00609            long imagelen_;
    00610            unsigned char metamapa_, tnum_;
    00611 public:
    00613            TeGTMInformationImages();
    00614
    00616            ~TeGTMInformationImages();
    00617
    00619
    00622            void readGTMInformationImages(FILE* file);
    00623
    00625
    00628            void writeGTMInformationImages(FILE* file);
    00629
    00631            char* getName_map(){return name_map_;};
    00632
    00634
    00637            void setName_map(char* name_map){name_map_ = name_map;};
    00638
    00640            char* getComments(){return comments_;};
    00641
    00643
    00646            void setComments(char* comments){comments_ = comments;};
    00647
    00649            float getGposx(){return gposx_;};
    00650
    00652
    00655            void setGposx(float gposx){gposx_ = gposx;};
    00656
    00658            float getGposy(){return gposy_;};
    00659
    00661
    00664            void setGposy(float gposy){gposy_ = gposy;};
    00665
    00667            float getGwidth(){return gwidth_;};
    00668
    00670
    00673            void setGwidth(float gwidth){gwidth_ = gwidth;};
    00674
    00676            float getGheight(){return gheight_;};
    00677
    00679
    00682            void setGheight(float gheight){gheight_ = gheight;};
    00683
    00685            float getMetax(){return metax_;};
    00686
    00688
    00691            void setMetax(float metax){metax_ = metax;};
    00692
    00694            float getMetay(){return metay_;};
    00695
    00697
    00700            void setMetay(float metay){metay_ = metay;};
    00701
    00703            long getImagelen(){return imagelen_;};
    00704
    00706
    00709            void setImagelen(long imagelen){imagelen_ = imagelen;};
    00710
    00712            unsigned char getMetamap(){return metamapa_;};
    00713
    00715
    00718            void setMetamap(unsigned char metamapa){metamapa_ = metamapa;};
    00719
    00721            unsigned char getTnum(){return tnum_;};
    00722
    00724
    00727            void setTnum(unsigned char tnum){tnum_ = tnum;};
    00728
    00730            void setBlob(char* blob){blob_ = blob;};
    00731
    00733            char* getBlob(){return blob_;};
    00734 };
    00735
    00737
    00751 class TDKEB_DGNIMPORT_API TeGTMWaypoints
    00752 {
    00753 private:
    00754            double latitude_, longitude_;
    00755            char *name_, *wname_;//name deve ser char[10]
    00756            short ico_, wrot_, wlayer_;
    00757            unsigned char dspl_;
    00758            long wdate_;
    00759            float walt_;
    00760 public:
    00762            TeGTMWaypoints();
    00763
    00765            ~TeGTMWaypoints();
    00766
    00768
    00771            void readGTMWaypoints(FILE* file);
    00772
    00774
    00777            void writeGTMWaypoints(FILE* file);
    00778
    00780            double getLatitude(){return latitude_;};
    00781
    00783
    00786            void setLatitude(double latitude){latitude_ = latitude;};
    00787
    00789            double getLongitude(){return longitude_;};
    00790
    00792
    00795            void setLongitude(double longitude){longitude_ = longitude;};
    00796
    00798            char* getName(){return name_;};
    00799
    00801
    00804            void setName(char* name){name_ = name;};
    00805
    00807            char* getWname(){return wname_;};
    00808
    00810
    00813            void setWname(char* wname){wname_ = wname;};
    00814
    00816            short getIco(){return ico_;};
    00817
    00819
    00822            void setIco(short ico){ico_ = ico;};
    00823
    00825            short getWrot(){return wrot_;};
    00826
    00828
    00831            void setWrot(short wrot){wrot_ = wrot;};
    00832
    00834            short getWlayer(){return wlayer_;};
    00835
    00837
    00840            void setWlayer(short wlayer){wlayer_ = wlayer;};
    00841
    00843            long getWdate(){return wdate_;};
    00844
    00846
    00849            void setWdate(long wdate){wdate_ = wdate;};
    00850
    00852            float getWalt(){return walt_;};
    00853
    00855
    00858            void setWalt(float walt){walt_ = walt;};
    00859
    00861            unsigned char getDspl(){return dspl_;};
    00862
    00864
    00867            void setDspl(unsigned char dspl){dspl_ = dspl;};
    00868 };
    00869
    00871
    00888 class TDKEB_DGNIMPORT_API TeGTMWaypointsStyles
    00889 {
    00890 private:
    00891            long height_, color_, weight_, backcolor_;
    00892            char *facename_;
    00893            unsigned char dspl_, border_, italic_, underline_, strikeout_, alignment_;
    00894            float scale1_;
    00895            bool background_;
    00896 public:
    00898            TeGTMWaypointsStyles();
    00899
    00901            ~TeGTMWaypointsStyles();
    00902
    00904
    00907            void readGTMWaypointsStyles(FILE* file);
    00908
    00910
    00913            void writeGTMWaypointsStyles(FILE* file);
    00914
    00916            long getHeight(){return height_;};
    00917
    00919
    00922            void setHeight(long height){height_ = height;};
    00923
    00925            long getColor(){return color_;};
    00926
    00928
    00931            void setColor(long color){color_ = color;};
    00932
    00934            long getWeight(){return weight_;};
    00935
    00937
    00940            void setWeight(long weight){weight_ = weight;};
    00941
    00943            long getBackcolor(){return backcolor_;};
    00944
    00946
    00949            void setBackcolor(long backcolor){backcolor_ = backcolor;};
    00950
    00952            char* getFacename(){return facename_;};
    00953
    00955
    00958            void setFacename(char* facename){facename_ = facename;};
    00959
    00961            unsigned char getDspl(){return dspl_;};
    00962
    00964
    00967            void setDspl(unsigned char dspl){dspl_ = dspl;};
    00968
    00970            unsigned char getBorder(){return border_;};
    00971
    00973
    00976            void setBorder(unsigned char border){border_ = border;};
    00977
    00979            unsigned char getItalic(){return italic_;};
    00980
    00982
    00985            void setItalic(unsigned char italic){italic_ = italic;};
    00986
    00988            unsigned char getunderline(){return underline_;};
    00989
    00991
    00994            void setunderline(unsigned char underline){underline_ = underline;};
    00995
    00997            unsigned char getStrikeout(){return strikeout_;};
    00998
    01000
    01003            void setStrikeout(unsigned char strikeout){strikeout_ = strikeout;};
    01004
    01006            unsigned char getAlignment(){return alignment_;};
    01007
    01009
    01012            void setAlignment(unsigned char alignment){alignment_ = alignment;};
    01013
    01015            float getScale1(){return scale1_;};
    01016
    01018
    01021            void setScale1(float scale1){scale1_ = scale1;};
    01022
    01024            bool getBackground(){return background_;};
    01025
    01027
    01030            void setBackground(bool background){background_ = background;};
    01031 };
    01032
    01034
    01043 class TDKEB_DGNIMPORT_API TeGTMTrackLogs
    01044 {
    01045 private:
    01046            double latitude_, longitude_;
    01047            long tdate_;
    01048            unsigned char tnum_;
    01049            float talt_;
    01050 public:
    01052            TeGTMTrackLogs();
    01053
    01055            ~TeGTMTrackLogs();
    01056
    01058
    01061            void readGTMTrackLogs(FILE* file);
    01062
    01064
    01067            void writeGTMTrackLogs(FILE* file);
    01068
    01070            double getLatitude(){return latitude_;};
    01071
    01073
    01076            void setLatitude(double latitude){latitude_ = latitude;};
    01077
    01079            double getLongitude(){return longitude_;};
    01080
    01082
    01085            void setLongitude(double longitude){longitude_ = longitude;};
    01086
    01088            long getTdate(){return tdate_;};
    01089
    01091
    01094            void setTdate(long tdate){tdate_ = tdate;};
    01095
    01097            unsigned char getTnum(){return tnum_;};
    01098
    01100
    01103            void setTnum(unsigned char tnum){tnum_ = tnum;};
    01104
    01106            float getTalt(){return talt_;};
    01107
    01109
    01112            void setTalt(float talt){talt_ = talt;};
    01113 };
    01114
    01116
    01126 class TDKEB_DGNIMPORT_API TeGTMTrackLogStyles
    01127 {
    01128 private:
    01129            char* tname_;
    01130            long tcolor_;
    01131            unsigned char ttype_, tlabel_;
    01132            float tscale_;
    01133            short tlayer_;
    01134 public:
    01136            TeGTMTrackLogStyles();
    01137
    01139            ~TeGTMTrackLogStyles();
    01140
    01142
    01145            void readGTMTrackLogStyles(FILE* file);
    01146
    01148
    01151            void writeGTMTrackLogStyles(FILE* file);
    01152
    01154            char* getTname(){return tname_;};
    01155
    01157
    01160            void setTname(char* tname){tname_ = tname;};
    01161
    01163            long getTcolor(){return tcolor_;};
    01164
    01166
    01169            void setTcolor(long tcolor){tcolor_ = tcolor;};
    01170
    01172            unsigned char getTtype(){return ttype_;};
    01173
    01175
    01178            void setTtype(unsigned char ttype){ttype_ = ttype;};
    01179
    01181            unsigned char getTlabel(){return tlabel_;};
    01182
    01184
    01187            void setTlabel(unsigned char tlabel){tlabel_ = tlabel;};
    01188
    01190            float getTscale(){return tscale_;};
    01191
    01193
    01196            void setTscale(float tscale){tscale_ = tscale;};
    01197
    01199            short getTlayer(){return tlayer_;};
    01200
    01202
    01205            void setTlayer(short tlayer){tlayer_ = tlayer;};
    01206 };
    01207
    01209
    01225 class TDKEB_DGNIMPORT_API TeGTMRoutes
    01226 {
    01227 private:
    01228            double latitude_, longitude_;
    01229            char* wname_, *wcomment_, *rname_;//wname deve ser char[10]
    01230            short ico_, wrot_, wlayer_;
    01231            unsigned char dspl_, tnum_;
    01232            long tdate_;
    01233            float walt_;
    01234 public:
    01236            TeGTMRoutes();
    01237
    01239            ~TeGTMRoutes();
    01240
    01242
    01245            void readGTMRoutes(FILE* file);
    01246
    01248
    01251            void writeGTMRoutes(FILE* file);
    01252
    01254            double getLatitude(){return latitude_;};
    01255
    01257
    01260            void setLatitude(double latitude){latitude_ = latitude;};
    01261
    01263            double getLongitude(){return longitude_;};
    01264
    01266
    01269            void setLongitude(double longitude){longitude_ = longitude;};
    01270
    01272            char* getWname(){return wname_;};
    01273
    01275
    01278            void setWname(char* wname){wname_ = wname;};
    01279
    01281            char* getWcomment(){return wcomment_;};
    01282
    01284
    01287            void setWcomment(char* wcomment){wcomment_ = wcomment;};
    01288
    01290            char* getRname(){return rname_;};
    01291
    01293
    01296            void setRname(char* rname){rname_ = rname;};
    01297
    01299            short getIco(){return ico_;};
    01300
    01302
    01305            void setIco(short ico){ico_ = ico;};
    01306
    01308            short getWrot(){return wrot_;};
    01309
    01311
    01314            void setWrot(short wrot){wrot_ = wrot;};
    01315
    01317            short getWlayer(){return wlayer_;};
    01318
    01320
    01323            void setWlayer(short wlayer){wlayer_ = wlayer;};
    01324
    01326            unsigned char getDspl(){return dspl_;};
    01327
    01329
    01332            void setDspl(unsigned char dspl){dspl_ = dspl;};
    01333
    01335            unsigned char getTnum(){return tnum_;};
    01336
    01338
    01341            void setTnum(unsigned char tnum){tnum_ = tnum;};
    01342
    01344            long getTdate(){return tdate_;};
    01345
    01347
    01350            void setTdate(long tdate){tdate_ = tdate;};
    01351
    01353            float getWalt(){return walt_;};
    01354
    01356
    01359            void setWalt(float walt){walt_ = walt;};
    01360 };
    01361
    01363
    01375 class TDKEB_DGNIMPORT_API TeGTMLayers
    01376 {
    01377 private:
    01378            short index_, reserva2_;
    01379            char* name_;
    01380            long color_;
    01381            unsigned char lock_, view_, reserva1_;
    01382 public:
    01384            TeGTMLayers();
    01385
    01387            ~TeGTMLayers();
    01388
    01390
    01393            void readGTMLayers(FILE* file);
    01395
    01398            void writerGTMLayers(FILE* file);
    01399
    01401            short getIndex(){return index_;};
    01403
    01406            void setIndex(short index){index_ = index;};
    01407
    01409            short getReserva2(){return reserva2_;};
    01411
    01414            void setReserva2(short reserva2){reserva2_ = reserva2;};
    01415
    01417            char* getName(){return name_;};
    01419
    01422            void setName(char* name){name_ = name;};
    01423
    01425            long getColor(){return color_;};
    01427
    01430            void setColor(long color){color_ = color;};
    01431
    01433            unsigned char getLock(){return lock_;};
    01435
    01438            void setLock(unsigned char lock){lock_ = lock;};
    01439
    01441            unsigned char getView(){return view_;};
    01443
    01446            void setView(unsigned char view){view_ = view;};
    01447
    01449            unsigned char getReserva1(){return reserva1_;};
    01451
    01454            void setReserva1(unsigned char reserva1){reserva1_ = reserva1;};
    01455 };
    01456
    01458
    01466 class TDKEB_DGNIMPORT_API TeGTMUserIcons
    01467 {
    01468 private:
    01469            char* name_;
    01470            unsigned char number_;
    01471            long size_;
    01472 public:
    01474            TeGTMUserIcons();
    01475
    01477            ~TeGTMUserIcons();
    01478
    01480
    01483            void readGTMUserIcons(FILE* file);
    01484
    01486
    01489            void writeGTMUserIcons(FILE* file);
    01490
    01492            char* getName(){return name_;};
    01493
    01495
    01498            void setName(char* name){name_ = name;};
    01499
    01501            unsigned char getNumber(){return number_;};
    01502
    01504
    01507            void setNumber(unsigned char number){number_ = number;};
    01508
    01510            long getSize(){return size_;};
    01511
    01513
    01516            void setSize(long size){size_ = size;};
    01517 };
    01518
    01520
    01525 class TDKEB_DGNIMPORT_API TeGTM
    01526 {
    01527 private:
    01528            TeGTMHeader header_;
    01529            TeGTMGridDatum griddatum_;
    01530            vector<TeGTMInformationImages*> informationimages_;
    01531            vector<TeGTMWaypoints*> waypoints_;
    01532            vector<TeGTMWaypointsStyles*> waypointsstyles_;
    01533            vector<TeGTMTrackLogs*> tracklogs_;
    01534            vector<TeGTMTrackLogStyles*> tracklogstyles_;
    01535            vector<TeGTMRoutes*> routes_;
    01536            vector<TeGTMUserIcons*> usericons_;
    01537            vector<TeGTMLayers*> layers_;
    01538            std::string layersNames_;
    01539
    01540            std::map<std::string, std::vector<TePoint> > waypointsLayer;
    01541            std::map<std::string, std::vector<TePoint> > tracklogsLayer;
    01542            std::map<std::string, std::vector<TePoint> > routesLayer;
    01543            std::map<std::string, std::vector<char*> > imagesLayer;
    01544
    01545            TeTable waypointTable_;
    01546            TeTable tracklogTable_;
    01547            TeTable routeTable_;
    01548
    01549            FILE* file_;
    01550
    01551            std::vector<char*> icon_descr;
    01552
    01553 public:
    01555            TeGTM(FILE* file);
    01556
    01558            ~TeGTM();
    01559
    01561            void readGTM();
    01562
    01564            void writeGTM();
    01565
    01567            TeProjection* getProjection();
    01568
    01570
    01573            TeProjection* setProjection(TeProjection* proj);
    01574
    01576            TeDatum getDatum();
    01577
    01579
    01582            short setDatum(TeDatum datum);
    01583
    01585            std::string getLayerNames(std::string fileName);
    01586
    01588            std::string getDate(long date);
    01589
    01591
    01595            std::vector<TeLayer*> importGTM(TeDatabase *db, std::string fileName);
    01596
    01598
    01601            void exportGTM(TeTheme *theme, std::string fileName, FILE* file);
    01602
    01604
    01607            void waypointAttributeList(TeAttributeList& attList);
    01608
    01610
    01613            void tracklogAttributeList(TeAttributeList& attList);
    01614
    01616
    01619            void routeAttributeList(TeAttributeList& attList);
    01620
    01622
    01628            bool importWaypoints(TeLayer* layer, string attrTableName,string objectIdAtt,int unsigned chunkSize );
    01629
    01631
    01637            bool importTracklogs(TeLayer* layer, string attrTableName,string objectIdAtt,int unsigned chunkSize );
    01638
    01640
    01646            bool importTracklogs2(TeLayer* layer, string attrTableName,string objectIdAtt,int unsigned chunkSize );
    01647
    01649
    01655            bool importRoutes(TeLayer* layer, string attrTableName,string objectIdAtt,int unsigned chunkSize );
    01656
    01658
    01664            bool importRoutes2(TeLayer* layer, string attrTableName,string objectIdAtt,int unsigned chunkSize );
    01665
    01667
    01673            int importImages(TeLayer* layer);
    01674
    01676
    01684            bool createAttributeTable(TeLayer* layer, TeAttributeList attList, std::string attrTableName, std::string objectIdAtt,
    01685                                                                                         double oldPrec, int& linkCol);
    01686 };
    01687
    01688 #endif

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines