3#include "../global.hpp"
5#include "value_node.hpp"
18 class FloatNode :
public ValueNode
21 explicit FloatNode(HandleGuard<Node> &&guard) noexcept
33 return NativeCall<double>([&](
double &value) {
return CExports::NGetAsFloat(
Handle(), value); });
43 NativeCall([&]() {
return CExports::NSetAsFloat(
Handle(), value); });
53 return GetInfoAsFloat(NodeInfo::Min);
63 return GetInfoAsFloat(NodeInfo::Max);
78 auto result = CExports::NInfoAsFloat(
Handle(),
static_cast<CExports::TNodeInfo
>(NodeInfo::Increment), value);
106 return GetInfoAsString(NodeInfo::Unit);
110 double GetInfoAsFloat(NodeInfo command)
const
112 return NativeCall<double>([&](
double &value) {
113 return CExports::NInfoAsFloat(
Handle(),
static_cast<CExports::TNodeInfo
>(command), value);
18 class FloatNode :
public ValueNode {
…};
Represents a floating point number.
Definition float_node.hpp:19
NumberRepresentation Representation() const
Gets how the value is to be represented.
Definition float_node.hpp:94
double Increment() const
Gets the increment of this value.
Definition float_node.hpp:75
void SetValue(double value)
Sets the value of this floating point node.
Definition float_node.hpp:41
String Unit() const
Gets the unit of this node's value.
Definition float_node.hpp:104
double Value() const
Gets the value of this floating point node.
Definition float_node.hpp:31
double Min() const
Gets the minimal allowed number for this value.
Definition float_node.hpp:51
double Max() const
Gets the maximal allowed number for this value.
Definition float_node.hpp:61
void * Handle() const noexcept
Classic API node handle.
Definition decl_node.hpp:71
const int CVB_NOTSUPPORTED
A certain feature is not supported.
Definition exception.hpp:59
Namespace for GenApi based device configuration.
Definition decl_fw_updater.hpp:29
NumberRepresentation
Defines how a number is to be interpreted/displayed in a graphical user interface.
Definition genapi.hpp:143
Root namespace for the Image Manager interface.
Definition c_bayer_to_rgb.h:17
std::string String
String for wide characters or unicode characters.
Definition string.hpp:49
T rethrow_exception(T... args)