Umasoft
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
Builder Class Reference

#include <Builder.h>

Inheritance diagram for Builder:
MainFrame

Public Member Functions

void ReadDataPath ()
 
void ReadDatapathsFromXML (ifstream &input, const char *path)
 
bool LoadProject (const vtString &fname, vtScaledView *pView=NULL)
 
void DeleteContents ()
 
int NumLayers () const
 
vtLayerGetLayer (int i) const
 
vtLayerLoadLayer (const wxString &fname)
 
void AddLayer (vtLayer *lp)
 
virtual bool AddLayerWithCheck (vtLayer *pLayer, bool bRefresh=true)
 
virtual void RemoveLayer (vtLayer *lp)
 
void DeleteLayer (vtLayer *lp)
 
virtual void SetActiveLayer (vtLayer *lp, bool refresh=false)
 
vtLayerGetActiveLayer ()
 
vtElevLayerGetActiveElevLayer ()
 
vtImageLayerGetActiveImageLayer ()
 
vtRoadLayerGetActiveRoadLayer ()
 
vtRawLayerGetActiveRawLayer ()
 
vtStructureLayerGetActiveStructureLayer ()
 
vtUtilityLayerGetActiveUtilityLayer ()
 
vtVegLayerGetActiveVegLayer ()
 
int LayersOfType (LayerType lt)
 
vtLayerFindLayerOfType (LayerType lt)
 
int NumModifiedLayers ()
 
DRECT GetExtents ()
 
DPoint2 EstimateGeoDataCenter ()
 
LayerType AskLayerType ()
 
int LayerNum (vtLayer *lp)
 
void SwapLayerOrder (int n0, int n1)
 
virtual void RefreshTreeStatus ()
 
virtual void RefreshStatusBar ()
 
virtual void UpdateFeatureDialog (vtRawLayer *raw, vtFeatureSetPoint2D *set, int iEntity)
 
virtual void OnSetMode (LBMode m)
 
virtual void OnSelectionChanged ()
 
virtual void UpdateDistance (const DPoint2 &p1, const DPoint2 &p2)
 
virtual void UpdateDistance (const DLine2 &path)
 
virtual void ZoomAll ()
 
bool DrawDisabled ()
 
void AddToMRU (vtStringArray &arr, const vtString &fname)
 
virtual void SetProjection (const vtProjection &p)
 
void GetProjection (vtProjection &p)
 
vtProjectionGetAtProjection ()
 
bool ConfirmValidCRS (vtProjection *pProj)
 
bool SampleCurrentTerrains (vtElevLayer *pTarget)
 
float GetHeightFromTerrain (const DPoint2 &p)
 
void ExportBitmap (vtElevLayer *pEL, RenderOptions &ropt)
 
uint ElevLayerArray (std::vector< vtElevLayer * > &elevs)
 
bool FillElevGaps (vtElevLayer *el, DRECT *area=NULL, int iMethod=-1)
 
void FlagStickyLayers (const std::vector< vtElevLayer * > &elevs)
 
vtElevLayerComputeDifference (vtElevLayer *pElev)
 
bool SampleCurrentImages (vtImageLayer *pTarget)
 
bool GetRGBUnderCursor (const DPoint2 &p, RGBi &rgb)
 
void LookForContentFiles ()
 
void FreeContentFiles ()
 
void ResolveInstanceItem (vtStructInstance *inst)
 
vtSpeciesListGetPlantList ()
 
bool LoadSpeciesFile (const char *fname)
 
bool LoadBiotypesFile (const char *fname)
 
vtBioRegionGetBioRegion ()
 
void GenerateVegetation (const char *vf_file, DRECT area, VegGenOptions &opt)
 
void GenerateVegetationPhase2 (const char *vf_file, DRECT area, VegGenOptions &opt)
 
void ImportData (LayerType ltype)
 
int ImportDataFromArchive (LayerType ltype, const wxString &fname_org, bool bRefresh)
 
vtLayerImportDataFromFile (LayerType ltype, const wxString &strFileName, bool bRefresh=false, bool bWarn=false)
 
vtLayerImportFromDLG (const wxString &strFileName, LayerType ltype)
 
vtLayerImportFromSHP (const wxString &strFileName, LayerType ltype)
 
vtLayerImportFromDXF (const wxString &strFileName, LayerType ltype)
 
vtLayerImportElevation (const wxString &strFileName, bool bWarn=true)
 
vtLayerImportImage (const wxString &strFileName)
 
vtLayerImportFromLULC (const wxString &strFileName, LayerType ltype)
 
vtLayerImportRawFromOGR (const wxString &strFileName)
 
vtLayerImportVectorsWithOGR (const wxString &strFileName, LayerType ltype)
 
vtStructureLayerImportFromBCF (const wxString &strFileName)
 
void ImportFromMapSource (const char *fname)
 
vtFeatureSetPoint2DImportPointsFromDBF (const char *fname)
 
vtFeatureSetImportPointsFromCSV (const char *fname)
 
vtFeatureSetImportPointsFromXYZ (const char *fname, bool progress_callback(int)=NULL)
 
void ImportDataPointsFromTable (const char *fname, bool progress_callback(int)=NULL)
 
int ImportDataFromTIGER (const wxString &strDirName)
 
void ImportDataFromNTF (const wxString &strFileName)
 
void ImportDataFromS57 (const wxString &strDirName)
 
int ImportDataFromSCC (const char *filename)
 
bool ImportDataFromDXF (const char *filename)
 
LayerType GuessLayerTypeFromDLG (vtDLGFile *pDLG)
 
void ElevCopy ()
 
void ElevPasteNew ()
 
void ExportASC ()
 
void ExportGeoTIFF ()
 
void ExportTerragen ()
 
void ExportBMP ()
 
void ExportSTM ()
 
void ExportTIN ()
 
void ExportPlanet ()
 
void ExportVRML ()
 
void ExportXYZ ()
 
void ExportRAWINF ()
 
void ExportChunkLOD ()
 
void ExportPNG16 ()
 
void Export3TX ()
 
void ElevExportTiles (BuilderView *pView=NULL)
 
void ImageExportTiles (BuilderView *pView=NULL)
 
void ImageExportPPM ()
 
void ExportAreaOptimizedElevTileset (BuilderView *pView=NULL)
 
void ExportAreaOptimizedImageTileset (BuilderView *pView=NULL)
 
void SetArea (const DRECT &r)
 
void GetArea (DRECT &r)
 
DRECTGetAtArea ()
 
void ScanElevationLayers (int &count, int &floating, int &tins, DPoint2 &spacing)
 
void MergeResampleElevation (BuilderView *pView=NULL)
 
bool SampleElevationToTilePyramids (BuilderView *pView, TilingOptions &opts, bool bFloat, bool bShowGridMarks=true)
 
bool DoSampleElevationToTilePyramids (BuilderView *pView, TilingOptions &opts, bool bFloat, bool bShowGridMarks=true)
 
bool SampleImageryToTilePyramids (BuilderView *pView, TilingOptions &opts, bool bShowGridMarks=true)
 
bool DoSampleImageryToTilePyramids (BuilderView *pView, TilingOptions &opts, bool bShowGridMarks=true)
 
void MergeResampleImages (BuilderView *pView=NULL)
 

Public Attributes

vtLinearParams m_LSOptions
 
InstanceDlgm_pInstanceDlg
 
std::vector< vtContentManager * > m_contents
 
vtString m_strSpeciesFilename
 
vtString m_strBiotypesFilename
 
vtSpeciesList m_PlantList
 
vtBioRegion m_BioRegion
 
wxFrame * m_pParentWindow
 
bool m_bDrawDisabled
 

Protected Member Functions

void CheckOptionBounds ()
 

Protected Attributes

DRECT m_area
 
LayerArray m_Layers
 
vtLayerPtr m_pActiveLayer
 
TilingOptions m_tileopts
 
vtStringArray m_ProjectFiles
 
vtStringArray m_LayerFiles
 
vtStringArray m_ImportFiles
 
vtProjection m_proj
 
bool m_bAdoptFirstCRS
 

Detailed Description

The main frame is the central class of the whole terrain builder. Not only does it represent the top window of the application, but it also contains many of the powerful methods for working with data.

Member Function Documentation

bool Builder::FillElevGaps ( vtElevLayer el,
DRECT area = NULL,
int  iMethod = -1 
)

Fill the gaps (NODATA heixels) in an elevation layer, by interpolating from the surrounding values.

Parameters
elThe elevation layer to fill the gaps on.
areaOptionally, restrict the operation to a given area.
void Builder::GenerateVegetation ( const char *  vf_file,
DRECT  area,
VegGenOptions opt 
)

Generate vegetation in a given area, and writes it to a VF file. All options are given in the VegGenOptions object passed in.

int Builder::ImportDataFromArchive ( LayerType  ltype,
const wxString &  fname_in,
bool  bRefresh 
)

Import data of a given type from a file, which can potentially be an archive file. If it's an archive, it will be unarchived to a temporary folder, and the contents will be imported.

Returns
Number of layers created during the import.
vtLayer * Builder::ImportDataFromFile ( LayerType  ltype,
const wxString &  strFileName,
bool  bRefresh = false,
bool  bWarn = false 
)

ImportDataFromFile: the main import method.

Parameters
ltypeThe Layer type suspected.
strFileNameThe filename.
bRefreshTrue if the GUI should be refreshed after import.
bWarnTrue if the GUI should be warned on failure.
Returns
True if a layer was created from the given file, or false if nothing importable was found in the file.
bool Builder::SampleCurrentTerrains ( vtElevLayer pTarget)

Sample all elevation layers into a target layer.


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