16 #ifndef SURGSIM_DEVICES_DEVICEFILTERS_BOOLTOSCALAR_H 17 #define SURGSIM_DEVICES_DEVICEFILTERS_BOOLTOSCALAR_H 24 namespace DataStructures
26 class DataGroupCopier;
32 SURGSIM_STATIC_REGISTRATION(BoolToScalar);
55 void setScale(
double val);
58 double getScale()
const;
62 void setRange(
const std::pair<double, double>& val);
65 std::pair<double, double> getRange()
const;
69 void setClamping(
bool val);
76 void setIncreaseField(
const std::string& val);
79 std::string getIncreaseField()
const;
83 void setDecreaseField(
const std::string& val);
86 std::string getDecreaseField()
const;
90 void setScalar(
double val);
93 double getScalar()
const;
98 void setTargetField(
const std::string& val);
101 std::string getTargetField()
const;
118 std::shared_ptr<DataStructures::DataGroupCopier>
m_copier;
Definition: CompoundShapeToGraphics.cpp:29
Framework::Timer m_timer
Definition: BoolToScalar.h:116
A device filter can be connected between a device and the InputConsumerInterface (e.g., InputComponent) and/or the OutputProducerInterface (e.g., OutputComponent), and can alter the data being passed from/to the device.
Definition: DeviceFilter.h:37
double m_scale
Definition: BoolToScalar.h:108
bool m_isClamping
Definition: BoolToScalar.h:104
std::string m_targetField
Definition: BoolToScalar.h:114
Timer class, measures execution times.
Definition: Timer.h:30
std::shared_ptr< DataStructures::DataGroupCopier > m_copier
Definition: BoolToScalar.h:118
#define SURGSIM_CLASSNAME(ClassName)
Declare the class name of a class with the appropriate function header, do not use quotes...
Definition: Macros.h:21
std::string m_increaseField
Definition: BoolToScalar.h:112
std::string m_decreaseField
Definition: BoolToScalar.h:113
A collection of NamedData objects.
Definition: DataGroup.h:68
std::pair< double, double > m_range
Definition: BoolToScalar.h:110
Maps the on and off state of two boolean values to the increase and decrease of a scalar field...
Definition: BoolToScalar.h:37
double m_value
Definition: BoolToScalar.h:106