|
24.08
|
#include <RangeTracker.hpp>
Public Types | |
| using | MinMaxRange = std::pair< float, float > |
Public Member Functions | |
| MinMaxRange | GetRange (LayerGuid guid, unsigned int idx) const |
| Retrieve the Range for a particular output slot on a particular layer. More... | |
| void | SetRange (const IConnectableLayer *layer, unsigned int outputIdx, float min, float max) |
| Set the range for an output slot on a layer. More... | |
| bool | IsEmpty () const |
| Query function to check that the RangeTracker is empty. More... | |
| bool | HasRanges (LayerGuid guid) const |
| Query that there is an entry for a layer. More... | |
| void | RefineMin (LayerGuid guid, unsigned int slotIndex, float newMin) |
| Update min in RangeTracker with new_min if it is lower than current value. More... | |
| void | RefineMax (LayerGuid guid, unsigned int slotIndex, float newMax) |
| Update max in RangeTracker with new_max if it is greater than current value. More... | |
| void | ResetMinMax (LayerGuid guid, unsigned int idx, float newMin, float newMax) |
| Overwrite min and max in RangeTracker with newMin and newMax. More... | |
| void | Reset () |
| void | SetDynamicMode (bool flag) |
| bool | IsInDynamicMode () const |
Definition at line 19 of file RangeTracker.hpp.
| using MinMaxRange = std::pair<float, float> |
Definition at line 22 of file RangeTracker.hpp.
| RangeTracker::MinMaxRange GetRange | ( | LayerGuid | guid, |
| unsigned int | idx | ||
| ) | const |
Retrieve the Range for a particular output slot on a particular layer.
Definition at line 29 of file RangeTracker.cpp.
References RangeTracker::IsInDynamicMode().
|
inline |
Query that there is an entry for a layer.
Definition at line 34 of file RangeTracker.hpp.
|
inline |
Query function to check that the RangeTracker is empty.
Definition at line 31 of file RangeTracker.hpp.
|
inline |
Definition at line 49 of file RangeTracker.hpp.
Referenced by RangeTracker::GetRange().
| void RefineMax | ( | LayerGuid | guid, |
| unsigned int | slotIndex, | ||
| float | newMax | ||
| ) |
Update max in RangeTracker with new_max if it is greater than current value.
Definition at line 55 of file RangeTracker.cpp.
| void RefineMin | ( | LayerGuid | guid, |
| unsigned int | slotIndex, | ||
| float | newMin | ||
| ) |
Update min in RangeTracker with new_min if it is lower than current value.
Definition at line 46 of file RangeTracker.cpp.
| void Reset | ( | ) |
Definition at line 74 of file RangeTracker.cpp.
| void ResetMinMax | ( | LayerGuid | guid, |
| unsigned int | idx, | ||
| float | newMin, | ||
| float | newMax | ||
| ) |
Overwrite min and max in RangeTracker with newMin and newMax.
Definition at line 64 of file RangeTracker.cpp.
|
inline |
Definition at line 47 of file RangeTracker.hpp.
| void SetRange | ( | const IConnectableLayer * | layer, |
| unsigned int | outputIdx, | ||
| float | min, | ||
| float | max | ||
| ) |
Set the range for an output slot on a layer.
Definition at line 12 of file RangeTracker.cpp.
References IConnectableLayer::GetGuid(), and IConnectableLayer::GetNumOutputSlots().