16 #ifndef SURGSIM_DEVICES_DEVICEFILTERS_BOOLTOSCALAR_H 17 #define SURGSIM_DEVICES_DEVICEFILTERS_BOOLTOSCALAR_H 19 #include "SurgSim/Devices/DeviceFilters/DeviceFilter.h" 20 #include "SurgSim/Framework/Timer.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;
110 std::pair<double, double> m_range;
112 std::string m_increaseField;
113 std::string m_decreaseField;
114 std::string m_targetField;
118 std::shared_ptr<DataStructures::DataGroupCopier> m_copier;
Wraps glewInit() to separate the glew opengl definitions from the osg opengl definitions only imgui n...
Definition: AddRandomSphereBehavior.cpp:36
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
Timer class, measures execution times.
Definition: Timer.h:31
A collection of NamedData objects.
Definition: DataGroup.h:68
Maps the on and off state of two boolean values to the increase and decrease of a scalar field...
Definition: BoolToScalar.h:37