VR-Forces 4.0.4 Class Documentation
include/dted/dfad_info.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2003 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: dfad_info.h,v $ $Revision: 1.5 $ $State: Exp $
00007 *******************************************************************************/
00008 
00009 // 
00010 //   Define a dfad data Info.
00011 //   It permits access to read it sequentially from a
00012 //   point, asking for:
00013 //   a feature : 2 words
00014 //   a coord   : a word
00015 //   checksum  : a word
00016 //   a zero word.
00017 //
00018 //   - setPointerToWord(int i = 0); i <= 601 : sets the pointer to word i
00019 //   - getFeature(pfeature): gets next feature data size (two words)
00020 //   - getCoord(pCoord): gets next coord data size ( word)
00021 //   - getWords(pWords, howMany): gets howMany words
00022 //
00023 //  For more details, see dfad_main.doc
00024 //
00025 
00026 
00027 #ifndef __DFADInfo
00028 #define __DFADInfo
00029 
00030 #include "dted/dtedDefines.h"
00031 #include <stdio.h>
00032 #include "geometry/point.h"
00033 #include "dted/dfad_record.h"
00034 
00035 class DT_DLL_dted DtDfadInfo
00036 {
00037 public:
00038 
00039    DtDfadInfo();
00040 
00041    virtual bool setFile(FILE* f);
00042    virtual void setOrigin(const DtPoint &origin);
00043    virtual bool getFeatureData(DtU8* pfeature);
00044    virtual bool getCoordData(DtU8* pcoord);
00045    virtual bool getWords(DtU8* pword, int howMany = 1);
00046    
00047    inline const DtPoint &origin() {return myOrigin;}
00048 
00049 protected:
00050 
00051    DtDfadRecord myRecord;
00052    DtPoint myOrigin;
00053 };
00054 
00055 #endif

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)