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

#include <Structure3d.h>

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

Public Member Functions

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 SetEditedEdge (vtBuilding *bld, int lev, int edge)
 
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 ()
 

Protected Attributes

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
 

Additional Inherited Members

- Public Attributes inherited from vtStructureArray
vtProjection m_proj
 
- Protected Member Functions inherited from vtArray< vtStructure * >
virtual bool Grow (uint)
 

Detailed Description

This class extends vtStructureArray with the ability to construct and manage 3D representations of the structures.


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