VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rotorWashControllerDescriptor.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
13 #include "readerWriter/rwInt.h"
14 #include "readerWriter/rwReal.h"
15 #include "vrfutil/rwIntegerList.h"
17 #include "geometry/surface.h"
18 
20 
23 {
24 public:
26  DtRotorWashControllerDescriptor(const DtString& name, DtReaderWriterRegistry* parentRegistry = 0);
27 
30  DtReaderWriterRegistry * parentRegistry = 0);
31 
35 
38 
41  virtual DtString type() const;
42 
43  virtual DtComponentDescriptor * clone(DtReaderWriterRegistry * parentRegistry = 0) const;
44 
46  static DtComponentDescriptor * creator();
47 
48  virtual void setMaxEffectDistance(int maxEffectDistance);
49  virtual int maxEffectDistance() const;
50 
52  virtual void setSnowRange(double minSnowRange);
53  virtual double snowRange() const;
54 
58  virtual void setSnowCutout(double SnowCutout);
59  virtual double snowCutout() const;
60 
63  virtual void setMinSnowEffectDepth(double minSnowDepth);
64  virtual double minSnowEffectDepth() const;
65 
66 
68  virtual int findRotorWashTypeForSoilRoughness(const DtString& soilRoughness) const;
69 
71  virtual void setRotorWashTypesThatAccumulateSnow(const std::set<int>& t);
72  virtual const std::set<int>& rotorWashTypesThatAccumulateSnow() const;
73 
75  virtual bool rotorWashTypeAccumulatesSnow(int rotorWashType) const;
76 
79  virtual void postGetSelf();
80 
81 protected:
82 
85 
86 protected:
89 
98 
103 
104  std::set<int> mySnowAccumulationSet;
105 };
106 
107 
Description: DtNLengthIntegerVector is a named, readable/writable vector of integers of arbitrary len...
Definition: nLengthIntegerVector.h:28
#define DT_DLL_vrfobjparam
This file is used to determine how to build.
Definition: vrfobjparamDefines.h:28
DtRwIntegerList mySoilTypeToRotorWashList
Definition: rotorWashControllerDescriptor.h:101
virtual void postGetSelf()
Called after either version of getSelf (mtl or environment). Default is no-op.
DtRwInt myMaxEffectDistance
Definition: rotorWashControllerDescriptor.h:87
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:42
Definition: readerWriterRegistry.h:39
DtComponentDescriptor & operator=(const DtComponentDescriptor &orig)
assignment
Instances of DtRwIntegerList are lists of readable, writeable integers (DtRwInts).
Definition: rwIntegerList.h:19
A descriptor for the DtRotorWashController. This indicates the max effect distance.
Definition: rotorWashControllerDescriptor.h:22
std::set< int > mySnowAccumulationSet
Definition: rotorWashControllerDescriptor.h:104
Description: Readable, Writable int.
Definition: rwInt.h:25
virtual DtComponentDescriptor * clone(DtReaderWriterRegistry *parentRegistry=NULL) const
DtRwReal mySnowCutout
mySnowCutout is the value we want to start showing the snow (ex 0.6)
Definition: rotorWashControllerDescriptor.h:100
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
virtual DtString type() const
Returns the type of component this descriptor describes.
DtRwReal mySnowRange
We don&#39;t receive the snow range from the GUI and we want to have the same sort of calculus to know if...
Definition: rotorWashControllerDescriptor.h:97
static DtComponentDescriptor * creator()
DtNLengthIntegerVector myRotorWashTypesThatAccumulateSnow
Definition: rotorWashControllerDescriptor.h:102
DtRwReal myMinSnowEffectDepth
Definition: rotorWashControllerDescriptor.h:88

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)