VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Typedefs | Functions
terrainSelection.h File Reference

Go to the source code of this file.

Typedefs

typedef DtAllTypesPolygon DtTerrainElement
 
typedef std::set
< DtTerrainElement * > 
DtTerrainSelection
 
typedef
DtTerrainSelection::iterator 
DtTerrainElementIter
 
typedef
DtTerrainSelection::const_iterator 
DtTerrainElementConstIter
 

Functions

DT_DLL_gdb void DtRemoveFromSelection (DtTerrainSelection &primarySelection, const DtTerrainSelection &selectionToRemove)
 
DT_DLL_gdb void DtToggleSelection (DtTerrainSelection &primarySelection, const DtTerrainSelection &selectionToToggle)
 
DT_DLL_gdb void DtAddToSelection (DtTerrainSelection &primarySelection, const DtTerrainSelection &selectionToAdd)
 
DT_DLL_gdb bool xyPointInPolygon (const DtAllTypesPolygon &polygon, const DtPoint &point)
 

Detailed Description

Contains the typedefs and related functions that comprise the DtTerrainSelection interface.

Typedef Documentation

The DtTerrainElement typedef is meant as an abstraction for future development. The DtTerrainElement will eventually represent any element, whether it's a polygon, a vector network element, a tile, or some other primitive of some type, that is used to represent the physical terrain.

A DtTerrainSelection is a collection of DtTerrainElements, which have been selected, presumably by the user in order to perform an operation on them. Used most commonly by the terrain selection tool in order to allow the user to set soil types in the Terrain Database Tool application.

typedef DtTerrainSelection::iterator DtTerrainElementIter
typedef DtTerrainSelection::const_iterator DtTerrainElementConstIter

Function Documentation

DT_DLL_gdb void DtRemoveFromSelection ( DtTerrainSelection primarySelection,
const DtTerrainSelection selectionToRemove 
)
DT_DLL_gdb void DtToggleSelection ( DtTerrainSelection primarySelection,
const DtTerrainSelection selectionToToggle 
)
DT_DLL_gdb void DtAddToSelection ( DtTerrainSelection primarySelection,
const DtTerrainSelection selectionToAdd 
)
DT_DLL_gdb bool xyPointInPolygon ( const DtAllTypesPolygon polygon,
const DtPoint point 
)
Returns
A boolean indicating whether or not the specified point is inside the polygon when the point and polygon are projected onto the xy plane.

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)