![]() |
VR-Forces Developer's Guide
|
A container for a single piece of terrain, containing settings needed to recreate it.

Public Types | |
| enum | GdbSurface { AsphaltOrOtherHardSurface =0, Boulder =1, Building =2, CultivatedFields =3, DeepBrook =4, DeepLake =5, DeepPond =6, DeepRiver =7, DeepStream =8, DirtRoad =9, DryGround =10, EuroRailRoad =11, Flimsy =12, Forest =13, Grass =14, GravelRoad =15, Icy =16, IcyGround =17, Moon =18, Mud =19, MuddyRoad =20, Ocean =21, Orchards =22, PavedRoad =23, Rock =24, Sand =25, ShallowBrook =26, ShallowLake =27, ShallowPond =28, ShallowRiver =29, ShallowStream =30, SnowGround =31, SoftSoil =32, Swamp =33, Tree =34, USRailRoad =35, UndefinedSoilType =36, Unspecified =37, UnspecifiedBodyOfWater =38, UnspecifiedCulturalFeature =39, UnspecifiedEnvStateGround =40, WetGround =41 } |
| using | DtPageableTerrainPatchRecord = makArchives::DtTerrainPatchRecord::DtPageableTerrainPatchRecord |
Public Types inherited from makVrv::DtTerrainLayer | |
| typedef std::map< DtUniqueID, DtProp * > | PropMap |
| typedef std::unordered_set < std::string > | PropNameSet |
Public Member Functions | |
| virtual | ~DtTerrainPatch () |
| DtDe & | de () |
| const DtDe & | de () const |
| virtual void | setIsMinimapOnly (bool onlyForMinimap) |
| virtual bool | isMinimapOnly () const |
| virtual DtOverlaySettings & | overlaySettings () |
| virtual const DtOverlaySettings & | overlaySettings () const |
| virtual DtTerrainTreeSettings & | terrainTreeSettings () |
| virtual const DtTerrainTreeSettings & | terrainTreeSettings () const |
| virtual const makArchives::DtTerrainPatchRecord::ExtractionOperations & | extractionOperations () const |
| virtual const makArchives::DtTerrainPatchRecord::OceanExtractionOperations & | oceanExtractionOperations () const |
| void | extractNodesToTrees (std::string const &searchExp, bool isRegEx, std::string const &treeSpecies) |
DtTerrainPatchRecord methods | |
| virtual void | getRecord (makArchives::DtTerrainPatchRecord &rec) const |
| virtual void | setFromRecord (const makArchives::DtTerrainPatchRecord &rec) |
Accessors | |
| virtual const std::string & | definition () const |
| virtual DtUniqueID | uniqueID () const |
| virtual DtTerrainPatchObjectAgent * | findObjectAgent () |
| virtual const DtTerrainPatchObjectAgent * | findObjectAgent () const |
| virtual void | setIsPageable (bool isPageable) |
| virtual bool | isPageable () const |
| virtual void | setPageOutDistance (double pageOutDistance) |
| virtual double | pageOutDistance () const |
Surface visibility settings | |
| virtual void | setSurfaceVisible (int surfaceId, bool state) |
| virtual bool | surfaceVisible (int surfaceId) |
| virtual const DtSurfacesSettings::SurfaceIdList & | surfaceIds () |
| virtual void | loadSurfacesSettings () |
Prop management | |
| virtual void | setExtractedNodeAsPropModel (DtProp *prop, bool setObjectPosition=false) |
| virtual int | countNodes (const std::string &rules) const |
| virtual void | extractNodes (const std::string &rule, bool isRegEx) |
| virtual void | moveNode (DtSceneObjectAgent *objectDriver, DtModelAgent *model, const std::string &rule, unsigned int index) |
| virtual void | addExtractNodeOperation (std::string const &searchExp, bool isRegEx, std::string const &propType, unsigned int count) |
| virtual void | extractNodesToProps (const std::string &exp, bool isRegEx, const std::string &type, const std::string &modelDefinition) |
| virtual void | extractNodesToSpeedTrees (const std::string &exp, bool isRegEx, const std::string &modelDefinition) |
| virtual void | executeExtractionOperation (const makArchives::DtExtractionOperationRecord &extractionRec) |
Static Ocean management | |
| virtual void | requestOceanExtraction (const std::string &rule, bool isRegEx) |
| virtual void | extractOceanNodes (const std::string &rule, bool isRegEx) |
| virtual void | addOceanExtractNodeOperation (std::string const &searchExp, bool isRegEx) |
| virtual void | addOceanExtractNodeOperationIfExtracted (std::string const &searchExp, bool isRegEx) |
| virtual void | executeOceanExtractionOperation (const makArchives::DtOceanExtractionOperationRecord &extractionRec) |
| virtual void | extractSpeedTreeNodes (const std::string &rule, const bool isRegEx, const std::string &stModelDefinition) |
| void | executeSpeedTreeExtractionOperation (const makArchives::DtSpeedTreeExtractionOperationRecord &extractionRec) |
| virtual void | addSpeedTreeExtractOperation (std::string const &searchExp, bool isRegEx, const std::string &modelDefinition) |
Public Member Functions inherited from makVrv::DtTerrainLayer | |
| DtTerrainLayer (DtDe &de, DtAgentManagerInterface &sceneInterface) | |
| virtual | ~DtTerrainLayer () |
| virtual void | addProp (DtProp *prop) |
| virtual bool | addPropFromRecord (const makArchives::DtPropRecord &record) |
| virtual DtProp * | findProp (DtUniqueID id) |
| virtual bool | destroyProp (DtUniqueID id) |
| const PropMap & | props () const |
| const PropNameSet & | propNames () const |
| void | selectionChanged (const DtSelectionManager::IdSet &selected, const DtSelectionManager::IdSet &de) |
Private Member Functions | |
| DtTerrainPatch (const DtTerrainPatch ©) | |
| DtTerrainPatch & | operator= (const DtTerrainPatch ©) |
Friends | |
| class | DtTerrainPatchCreator |
Additional Inherited Members | |
Public Attributes inherited from makVrv::DtTerrainLayer | |
| boost::signalslib::signal < void(const DtSelectionManager::IdSet &selected, const DtSelectionManager::IdSet &deselected)> | signal_currentSelectionChanged |
| using makVrv::DtTerrainPatch::DtPageableTerrainPatchRecord = makArchives::DtTerrainPatchRecord::DtPageableTerrainPatchRecord |
GDB Surface IDs.
|
virtual |
DTOR.
|
private |
|
protected |
Protected CTOR, use DtTerrainPatchCreator to create an instance of this class.
|
private |
|
virtual |
Fill out a DtTerrainRecord with the current terrain info.
|
virtual |
Populate a DtTerrainPatch from a DtTerrainPatchRecord.
|
virtual |
Get the definition.
|
virtual |
Get the unique id of the terrain patch object (from the agent).
|
virtual |
Get the terrain patch object agent; note that this may return NULL if the patch did not create a patch object (which can happen if the patch is designated for the minimap modelset and that modelset isn't realized.
|
virtual |
Get the definition.
|
inline |
Get the de.
|
inline |
Get the de.
|
virtual |
set the flag that indicates that this patch should only appear in the minimap modelset
|
virtual |
Is this patch only used by the minimap?
|
virtual |
Should this patch be pageable or not?
|
virtual |
Should this patch be pageable or not?
|
virtual |
The page out distance to use when setting up the Paged LOD for this terrain patch. This is only used if setIsPageable(true).
|
virtual |
The page out distance to use when setting up the Paged LOD for this terrain patch. This is only used if setIsPageable(true).
|
virtual |
Get the overlay settings.
|
virtual |
Get the overlay settings.
|
virtual |
Get the terrain tree settings.
|
virtual |
Get the terrain tree settings.
|
virtual |
ExtractionOperations accessor.
|
virtual |
OceanExtractionOperations accessor.
Set a surface's visibility.
Check a surface's visibility.
|
virtual |
Get a list of all surface IDs for this terrain patch.
|
virtual |
Load the surfaces settings from a file.
|
virtual |
Make the prop's model be the extracted nodes via the prop's search expression and index.
| setObjectPosition | sets the position of the prop to the location of extracted nodes |
|
virtual |
Count the number of nodes matching the rules.
|
virtual |
Extract nodes from the terrain patch using a given rule.
|
virtual |
Move a node located by the rule + index into a model and sets the location of the object to the location of the node.
|
virtual |
Add a prop extraction rule.
|
virtual |
Wrapper around extractProps for the benefit of executeExtractionOperation.
|
virtual |
Wrapper around extract external references as speed trees.
|
virtual |
Execute a single extraction operation.
|
virtual |
requestOceanExtraction() is called from the GUI. If any extraction actually happens, and extraction operation will be registered for saving out to file
|
virtual |
Extract ocean nodes from the terrain patch using a given rule.
|
virtual |
Add a ocean extraction rule. This is used when loading a .mtf file to track existing extraction operations.
|
virtual |
Conditionally add an ocean extraction rule. This is used by requestOceanExtraction(). It prevents operations that won't do anything from being added to the ocean extraction operation list.
|
virtual |
Execute a single extraction operation.
|
virtual |
Extract osg nodes from the terrain patch using a given rule and replace them by speed trees models.
| void makVrv::DtTerrainPatch::executeSpeedTreeExtractionOperation | ( | const makArchives::DtSpeedTreeExtractionOperationRecord & | extractionRec | ) |
Execute a single speed tree extraction operation.
|
virtual |
Add a speed tree extraction operation to the historic records.
| void makVrv::DtTerrainPatch::extractNodesToTrees | ( | std::string const & | searchExp, |
| bool | isRegEx, | ||
| std::string const & | treeSpecies | ||
| ) |
Extract all trees fitting searchExp on this terrain patch and replace them with treeSpecies (not currently used) this is use when trees models are extracted by props.
|
protectedvirtual |
Slot for signaling when a patch has an object.
|
protectedvirtual |
Slot for signaling when a terrain patch object has been created.
|
protectedvirtual |
Execute all extraction operations.
|
protectedvirtual |
Execute all ocean extraction operations.
|
protectedvirtual |
Execute all speed tree extraction operations.
|
protectedvirtual |
Restore settings for extracted props.
|
protectedvirtual |
Create a prop settings record from all props owned by this patch.
|
protectedvirtual |
Create props from an extraction. Expects the terrain patch object the props came from, a prototype prop record, the search expression, whether the search expression was a regexp, and the list of search expression matches.
|
protectedvirtual |
This slot is connected to the terrain patch signaler's signal_oceanNodesExtracted when a request for ocean extraction is initiated. If the signal raised is true, an ocean extraction operation will be added to the extraction list.
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |