VR-Forces 4.0.4 Class Documentation
include/terrainDbFactory/vectorDataRec.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 1998 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: vectorDataRec.h,v $ $Revision: 1.15 $ $State: Exp $
00007 *******************************************************************************/
00008 #ifndef vectorDataRec_H_
00009 #define vectorDataRec_H_
00010 
00011 // file vectorDataRec.h
00012 // \brief Contains the DtVectorDataRecord class declaration.
00013 
00014 #include "terrainDbFactory/terrainDbFactoryDefines.h"
00015 #include "terrainDbFactory/mfRec.h"
00016 #include <iosfwd>
00017 #include <vector>
00018 #include "terrainDbFactory/terrainDefines.h"
00019 
00020 class DtVectorDataInitializer;
00021 
00022 //
00023 // Instances of this class are accessors to dfad/dfd data
00024 class DT_DLL_terrainDbFactory DtVectorDataRecord : public DtMetafileRecord
00025 {
00026 
00027 public:
00028 
00029    // default constructor.
00030    DtVectorDataRecord();
00031 
00032    // destructor
00033    virtual ~DtVectorDataRecord();
00034 
00035    // copy constructor
00036    DtVectorDataRecord(const DtVectorDataRecord& orig);
00037 
00038    // assignment operator
00039    DtVectorDataRecord& operator=(const DtVectorDataRecord& rhs);
00040 
00041    // Returns "vector".
00042    virtual DtString recordTypeName() const;
00043 
00044    // Returns DtConfigVectorType
00045    virtual DtConfigCategoryType recordCategory() const;
00046 
00047    // Returns VectorFileTypeUnknown
00048    virtual const unsigned int vecDataType() const;
00049 
00050    // Returns the initializer.
00051    virtual DtVectorDataInitializer* vectorDataInitializer();
00052 
00053    // Clears the vector files from the vector initializer list
00054    virtual void resetFileLists();
00055 
00056    // Read self from stream.
00057    virtual bool get(std::istream& stream);
00058    
00059    // identifies a token or passes it to the parent class.
00060    virtual bool processToken(std::istream& stream, DtString& token);
00061 
00062    static DtMetafileRecord* create();
00063 
00064 protected:
00065 
00066    // Write self to stream.
00067    virtual bool writeAttributes(std::ostream& stream) const;
00068    virtual bool getAttribute(const DtString attrName, DtString& value, unsigned index=0);
00069    virtual bool setToken(const DtString& token, const DtString value);
00070 
00071 protected:
00072 
00073    static const DtString thePlanarizeVectorNetwork;
00074    static const DtString theClipVectorNetworkToExtent;
00075    static const DtString theTolerance;
00076    static const DtString theExcessiveEdgeCount;
00077 
00078    DtVectorDataInitializer* myVectorDataInitializer;
00079    unsigned int             myVectorDataType;
00080 
00081 };
00082 
00083 #endif
00084 

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)