VR-Forces 4.0.4 Class Documentation
include/vrvTerrain/DtStealthMtlFileReader.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2008 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile: DtStealthMtlFileReader.h,v $ $Revision: 1.1 $ $State: Exp $
00007 ******************************************************************************/
00008 
00012 
00013 #ifndef DtStealthMtlFileReader_H_
00014 #define DtStealthMtlFileReader_H_
00015 
00016 #include <vrvTerrain/vrvTerrain.h>
00017 
00018 #include <vlutil/vlString.h>
00019 #include <matrix/vlTaitBryan.h>
00020 #include <vlutil/vlList.h>
00021 
00022 struct mgrec;
00023 class DtlObjPtr;
00024 class DtVector;
00025 class DtMtlEnvironment;
00026 
00027 namespace makVrv
00028 {
00032    class DT_DLL_VRVTERRAIN DtStealthMtlFileReader
00033    {
00034    public:
00035 
00036       DtStealthMtlFileReader();
00037       virtual ~DtStealthMtlFileReader();
00038 
00039       virtual bool load(const char* filename);
00040       virtual bool load(DtMtlEnvironment* mtlenv);
00041 
00042       virtual const DtString& type() const;
00043       virtual const DtString& origin() const;
00044       virtual const DtList& filenames() const;
00045       virtual const DtString* mapDatum() const;
00046 
00047       virtual double* startAltitude() const;
00048       virtual DtVector* startPosition() const;
00049       virtual DtTaitBryan* startOrientation() const;
00050       virtual DtString* mapName() const;
00051       virtual bool loadAsynchronous() const;
00052 
00053    protected:
00054 
00055       virtual void clear();
00056 
00057       virtual bool lookupParameters(DtMtlEnvironment* mtlenv);
00058       virtual int lookupType(DtMtlEnvironment* mtlenv);
00059       virtual int lookupOrigin(DtMtlEnvironment* mtlenv);
00060       virtual int lookupFilenames(DtMtlEnvironment* mtlenv);
00061       virtual int getPathPatchLists(const DtlObjPtr& l);
00062       virtual int getPathPatchList(const DtlObjPtr& l);
00063       virtual int addListOfPatches(const char* pathstr, const DtlObjPtr& l);
00064 
00065 
00066    public:
00067 
00068       static void registerMtlParameters(DtMtlEnvironment* mtlenv);
00069 
00070    protected:
00071 
00072       DtString myDatabaseType;
00073       DtString myMapDatumString;
00074       DtString myDatabaseOrigin;
00075       DtList myDatabaseNames;
00076 
00077       double* myStartAltitude;
00078       DtVector* myStartPos;
00079       DtTaitBryan* myStartOri;
00080       DtString* myDatabaseMapName;
00081       DtString myPath;
00082       bool myLoadAsynchronous;
00083       bool mySpacesCanBeDelimiters;
00084    };
00085 }
00086 
00087 #endif
00088 

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)