[]
Updates the pointer's Value with the number nearest 'newValue' that is the multiple of the snapping interval ('snapInterval').
public void UpdateValue(double newValue, double snapInterval)
Type | Name | Description |
---|---|---|
double | newValue | |
double | snapInterval |
If the Gauge uses logarithmic scale the snapping interval is expected to be in logarithmic coordinates. If not, the 'snapInterval' parameter must be in the same scale as the pointer's Value.
Updates the pointer's Value with the number nearest 'newValue' that is the multiple of the snapping interval ('snapInterval') counting from the given origin ('snapOrigin').
public void UpdateValue(double newValue, double snapInterval, double snapOrigin)
Type | Name | Description |
---|---|---|
double | newValue | |
double | snapInterval | |
double | snapOrigin |
If the Gauge uses logarithmic scale the snapInterval and snapOrigin values are expected to be in logarithmic coordinates. If not, these values must be in the same scale as the pointer's Value.