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

#include <TerrainLayers.h>

Inheritance diagram for vtStructureLayer:
vtStructureArray3d vtLayer vtLayer vtStructureArray vtStructureArray vtEnabledBase vtArray< vtStructure * > vtArray< vtStructure * >

Public Member Functions

bool GetExtent (DRECT &rect)
 Get the extents.
 
void DrawLayer (wxDC *pDC, vtScaledView *pView)
 
bool TransformCoords (vtProjection &proj)
 Transform the coordinates into another CRS.
 
bool OnSave (bool progress_callback(int)=NULL)
 
bool OnLoad ()
 
void GetProjection (vtProjection &proj)
 Get the CRS.
 
void SetProjection (const vtProjection &proj)
 Set the CRS, which does not reproject.
 
bool AppendDataFrom (vtLayer *pL)
 Merge the contents of another layer (of the same type)
 
void Offset (const DPoint2 &p)
 Shift all the coordinates by a horizontal offset.
 
void GetPropertyText (wxString &str)
 
bool AskForSaveFilename ()
 
wxString GetLayerFilename ()
 
void SetLayerFilename (const wxString &fname)
 
void OnLeftDown (BuilderView *pView, UIContext &ui)
 
void OnLeftUp (BuilderView *pView, UIContext &ui)
 
void OnRightDown (BuilderView *pView, UIContext &ui)
 
void OnMouseMove (BuilderView *pView, UIContext &ui)
 
void OnLeftDownEditBuilding (BuilderView *pView, UIContext &ui)
 
void OnLeftDownBldAddPoints (BuilderView *pView, UIContext &ui)
 
void OnLeftDownBldDeletePoints (BuilderView *pView, UIContext &ui)
 
void OnLeftDownEditLinear (BuilderView *pView, UIContext &ui)
 
void OnLeftDownAddInstance (BuilderView *pView, UIContext &ui, vtTagArray *tags)
 
void UpdateMove (UIContext &ui)
 
void UpdateRotate (UIContext &ui)
 
void UpdateResizeScale (BuilderView *pView, UIContext &ui)
 
void DrawBuildingHighlight (wxDC *pDC, vtScaledView *pView)
 
bool AddElementsFromSHP (const wxString &filename, const vtProjection &proj, DRECT rect)
 
void AddElementsFromDLG (vtDLGFile *pDlg)
 
bool EditBuildingProperties ()
 
void AddFoundations (vtElevLayer *pEL)
 
void DrawBuilding (wxDC *pDC, vtScaledView *pView, vtBuilding *bld)
 
void DrawLinear (wxDC *pDC, vtScaledView *pView, vtFence *fen)
 
void InvertSelection ()
 
void DeselectAll ()
 
int DoBoxSelect (const DRECT &rect, SelectionType st)
 
virtual void SetEditedEdge (vtBuilding *bld, int lev, int edge)
 
void ResolveInstancesOfItems ()
 
void CleanFootprints (double epsilon, int &degenerate, int &overlapping)
 
void SetLayerName (const vtString &fname)
 
vtString GetLayerName ()
 
void SetVisible (bool vis)
 
bool GetVisible ()
 
- Public Member Functions inherited from vtStructureArray3d
virtual vtBuildingNewBuilding ()
 
virtual vtFenceNewFence ()
 
virtual vtStructInstanceNewInstance ()
 
vtStructure3dGetStructure3d (int i)
 
vtBuilding3dGetBuilding (int i)
 
vtFence3dGetFence (int i)
 
vtStructInstance3dGetInstance (int i)
 
void SetTerrain (vtTerrain *pTerr)
 Indicate the heightfield which will be used for the structures in this array.
 
bool ConstructStructure (vtStructure3d *str)
 Construct an individual structure, return true if successful.
 
bool ConstructStructure (int index)
 
void OffsetSelectedStructures (const DPoint2 &offset)
 
void OffsetSelectedStructuresVertical (float offset)
 
void VisualDeselectAll ()
 Deselect all structures including turning off their visual highlights.
 
void SetEnabled (bool bTrue)
 Enable (set visibility of) the structures.
 
void SetShadows (bool bTrue)
 Set shadows on/off for all structures.
 
virtual void DestroyStructure (int i)
 
- Public Member Functions inherited from vtStructureArray
virtual void DestructItems (uint first, uint last)
 
void SetFilename (const vtString &str)
 
vtString GetFilename ()
 
int GetFirstSelected ()
 
int GetNextSelected ()
 
int DeleteSelected ()
 
bool ReadSHP (const char *pathname, StructImportOptions &opt, bool progress_callback(int)=NULL)
 
void AddElementsFromOGR (class OGRDataSource *datasource, StructImportOptions &opt, bool progress_callback(int)=NULL)
 
void AddElementsFromOGR_SDTS (class OGRDataSource *datasource, bool progress_callback(int)=NULL)
 
void AddElementsFromOGR_RAW (class OGRDataSource *datasource, StructImportOptions &opt, bool progress_callback(int)=NULL)
 
void AddBuildingsFromOGR (class OGRLayer *pLayer, StructImportOptions &opt, bool progress_callback(int)=NULL)
 
void AddLinearsFromOGR (class OGRLayer *pLayer, StructImportOptions &opt, bool progress_callback(int)=NULL)
 
void AddInstancesFromOGR (class OGRLayer *pLayer, StructImportOptions &opt, bool progress_callback(int)=NULL)
 
bool ReadBCF (const char *pathname)
 
bool ReadBCF_Old (FILE *fp)
 
bool ReadXML (const char *pathname, bool progress_callback(int)=NULL)
 
bool WriteXML (const char *pathname, bool bGZip=false) const
 
bool WriteFootprintsToSHP (const char *pathname)
 
bool WriteFootprintsToCanoma3DV (const char *pathname, const DRECT *area, const vtHeightField *pHF)
 
bool FindClosestBuildingCorner (const DPoint2 &point, double epsilon, int &building, int &corner, double &distance)
 
bool FindClosestBuildingCenter (const DPoint2 &point, double epsilon, int &building, double &distance)
 
bool FindClosestLinearCorner (const DPoint2 &point, double epsilon, int &structure, int &corner, double &distance)
 
bool FindClosestStructure (const DPoint2 &point, double epsilon, int &structure, double &distance, float fMaxInstRadius=1E9f, float fLinearWidthBuffer=0.0f)
 
bool FindClosestBuilding (const DPoint2 &point, double epsilon, int &structure, double &closest)
 
bool IsEmpty ()
 
void GetExtents (DRECT &ext) const
 
void Offset (const DPoint2 &delta)
 
int AddFoundations (vtHeightField *pHF, bool progress_callback(int)=NULL)
 
void RemoveFoundations ()
 
int NumSelected ()
 
void DeselectAll ()
 
vtBuildingAddNewBuilding ()
 
vtFenceAddNewFence ()
 
vtStructInstanceAddNewInstance ()
 
vtBuildingAddBuildingFromLineString (class OGRLineString *pLineString)
 
- Public Member Functions inherited from vtArray< vtStructure * >
 vtArray (uint size=0)
 
 vtArray (const vtArray< vtStructure * > &)
 
uint GetSize () const
 
uint GetMaxSize () const
 
bool SetSize (uint)
 
bool SetMaxSize (uint)
 
uint GetElemSize () const
 
vtStructure ** GetData () const
 
void FreeData ()
 
bool IsEmpty () const
 
vtStructure *& GetAt (uint i) const
 
bool SetAt (uint i, vtStructure *)
 
vtArray< vtStructure * > & operator= (const vtArray< vtStructure * > &)
 
vtStructure *& operator[] (uint i)
 
const vtStructure *& operator[] (uint i) const
 
void Empty ()
 
bool RemoveAt (uint i, int n=1)
 
int Append (const vtStructure *&)
 
int Append (const vtArray< vtStructure * > &)
 
int Find (const vtStructure *&) const
 
- Public Member Functions inherited from vtEnabledBase
bool GetEnabled ()
 
- Public Member Functions inherited from vtLayer
 vtLayer (LayerType type)
 
LayerType GetType ()
 
bool SetVisible (bool bVisible)
 
bool GetVisible ()
 
void SetModified (bool bModified)
 
bool GetModified ()
 
void SetSticky (bool bSticky)
 
bool GetSticky ()
 
bool IsNative ()
 
wxString GetImportedFrom ()
 
void SetImportedFrom (const wxString &fname)
 
bool Save (bool progress_callback(int)=NULL)
 
bool SaveAs (const wxString &filename=_T(""), bool progress_callback(int)=NULL)
 
bool Load (const wxString &filename=_T(""))
 
virtual bool SetExtent (const DRECT &rect)
 
virtual wxString GetFileExtension ()
 
virtual bool CanBeSaved ()
 
vtString GetExportFilename (const wxString &format_filter)
 
bool GetAreaExtent (DRECT &rect)
 
virtual void OnRightUp (BuilderView *pView, UIContext &ui)
 
virtual void OnLeftDoubleClick (BuilderView *pView, UIContext &ui)
 

Protected Member Functions

void DrawStructures (wxDC *pDC, vtScaledView *pView, bool bOnlySelected)
 
- Protected Member Functions inherited from vtLayer
wxString GetSaveFileDialogFilter ()
 
void SetMessageText (const wxString &msg)
 

Protected Attributes

int m_size
 
bool m_bPreferGZip
 
vtScaledViewm_pLastView
 
- Protected Attributes inherited from vtStructureArray3d
vtTerrainm_pTerrain
 
- Protected Attributes inherited from vtStructureArray
vtString m_strFilename
 
vtBuildingm_pEditBuilding
 
int m_iEditLevel
 
int m_iEditEdge
 
int m_iLastSelected
 
- Protected Attributes inherited from vtArray< vtStructure * >
uint m_Size
 
uint m_MaxSize
 
vtStructure ** m_Data
 
- Protected Attributes inherited from vtEnabledBase
bool m_bEnabled
 
- Protected Attributes inherited from vtLayer
wxString m_wsFilename
 
wxString m_wsImportedFrom
 
LayerType m_type
 
bool m_bVisible
 
bool m_bModified
 
bool m_bNative
 
bool m_bSticky
 

Additional Inherited Members

- Static Public Member Functions inherited from vtLayer
static vtLayerCreateNewLayer (LayerType ltype)
 
- Public Attributes inherited from vtStructureArray
vtProjection m_proj
 
- Static Public Attributes inherited from vtLayer
static wxArrayString LayerTypeNames
 
static const wxChar * LayerFileExtension []
 

Detailed Description

This class encapsulates vtStructureArray3d as a terrain layer.


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