VR-Vantage
Loading...
Searching...
No Matches
DtFeature.h
Go to the documentation of this file.
1/******************************************************************************
2** Copyright (c) 2010 MAK Technologies, Inc.
3** All rights reserved.
4******************************************************************************/
5
9
10#pragma once
11#include <vrvCore/vrvCore.h>
12#include <vrvCore/DtUniqueID.h>
13#include <vrvUtil/DtFaccCode.h>
14
15namespace makVrv
16{
18
19 namespace DFAD
20 {
21 typedef unsigned int FeatureID;
22 typedef unsigned int SurfaceMaterialCode;
23 };
24
33 {
34 public:
35 friend class DtFeatureSet;
36 friend class DtFaccManager;
37
39 virtual ~DtFeature();
40
44
46 virtual std::string generateDisplayName() const = 0;
47
50
52 const DtFaccCode& faccCode() const;
53
55 unsigned int sourceID() const;
56
59
62
65
66 protected:
70 const DtFaccCode& feautureCode, unsigned int sourceId = 0 );
71
72 protected:
73
76 unsigned int mySourceId;
79 float myWidth;
80 float myLength;
81 float myHeight;
84 };
85}
Contains makVrv::DtFaccCode class.
Contains makVrv::DtUniqueID type.
Definition DtFaccCode.h:20
void setFeatureVisualizer(DtFeatureVisualizer *vis)
Sets the feature visualizer for the feature.
friend class DtFeatureSet
Definition DtFeature.h:35
const DtFaccCode & faccCode() const
Get the feature code of the feature.
float myOrientation
Definition DtFeature.h:82
DtElementID elementId() const
float myWidth
Definition DtFeature.h:79
const DtElementID myElementId
Definition DtFeature.h:74
DtFaccCode myFeatureCode
Definition DtFeature.h:77
DFAD::SurfaceMaterialCode mySoilType
Definition DtFeature.h:78
virtual ~DtFeature()
DTOR.
float myHeight
Definition DtFeature.h:81
unsigned int mySourceId
Definition DtFeature.h:76
DFAD::FeatureID featureID() const
Get the feature id of the feature.
float myLength
Definition DtFeature.h:80
DtFeatureVisualizer * myFeatureVisualizer
Definition DtFeature.h:83
DFAD::SurfaceMaterialCode soilType()
Get the soil type of the feature.
friend class DtFaccManager
Definition DtFeature.h:36
virtual std::string generateDisplayName() const =0
Generate a display name for this feature.
DFAD::FeatureID myFeatureID
Definition DtFeature.h:75
DtFeatureVisualizer * findFeatureVisualizer()
Attempt to get the feature visualizer for the feature.
DtFeature(DtElementID id, DFAD::FeatureID featureID, const DtFaccCode &feautureCode, unsigned int sourceId=0)
unsigned int sourceID() const
Get the feature source id.
Definition DtFeatureVisualizer.h:22
Definition DtFeature.h:20
unsigned int SurfaceMaterialCode
Definition DtFeature.h:22
unsigned int FeatureID
Definition DtFeature.h:21
Contains DtCreateSensorFieldOfViewCommand and DtCreateSensorFieldOfViewCommandCreator class declarati...
Definition DtGridLinesSettingsRecord.h:16
DtUniqueID DtElementID
Definition DtUniqueID.h:23
Contains DLL export macros.
#define DT_DLL_VRVCORE
Definition vrvCore.h:20