CVB++ 14.0
FloatNode Class Reference

Represents a floating point number. More...

#include <cvb/genapi/float_node.hpp>

Inherits ValueNode.

Inherited by FloatRegNode.

Public Member Functions

double Value () const
 Gets the value of this floating point node. More...
 
void SetValue (double value)
 Sets the value of this floating point node. More...
 
double Min () const
 Gets the minimal allowed number for this value. More...
 
double Max () const
 Gets the maximal allowed number for this value. More...
 
double Increment () const
 Gets the increment of this value. More...
 
NumberRepresentation Representation () const
 Gets how the value is to be represented. More...
 
String Unit () const
 Gets the unit of this node's value. More...
 
- Public Member Functions inherited from ValueNode
void Invalidate ()
 Invalidates the values of this node. More...
 
bool IsStreamable () const
 Returns whether this node should be used when saving camera settings. More...
 
virtual String ToString () const
 Returns this node's value as a string representation. More...
 
virtual void FromString (const String &value)
 Sets the value of this node from the string value. More...
 
ReadWriteVerify VerifyMode () const
 Returns how the values in this node are verified. More...
 
void SetVerifyMode (ReadWriteVerify readWriteVerify)
 Sets how values are verified in this node. More...
 
std::chrono::milliseconds PollingTime () const
 Gets the polling time of this value. More...
 
- Public Member Functions inherited from Node
void * Handle () const noexcept
 Classic API node handle. More...
 
String Name () const
 Gets the full name of this node. More...
 
String DisplayName () const
 Gets the display name of this node. More...
 
String ToolTip () const
 Gets the short descriptive text of this node. More...
 
String Description () const
 Gets the long descriptive text of this node. More...
 
Cvb::GenApi::AccessMode AccessMode () const
 Gets the access mode of this node. More...
 
bool IsImplemented () const
 Helper to check whether this node is implemented. More...
 
bool IsAvailable () const
 Helper to check whether this node is available. More...
 
bool IsReadable () const
 Helper to check whether this node is readable. More...
 
bool IsWriteable () const
 Helper to check whether this node is writable. More...
 
Cvb::GenApi::CacheMode CacheMode () const
 Gets the cache mode of this node. More...
 
String EventID () const
 Nodes with an event identifier may become invalidated, if an event / message is delivered from the device. More...
 
bool IsFeature () const
 Returns whether this node is considered a feature node. More...
 
bool IsDeprecated () const
 Gets whether this node is considered deprecated. More...
 
Cvb::GenApi::Visibility Visibility () const
 Gets the complexity level of this node. More...
 
NodePtr AliasNode () const
 Gets the node, that is an alias value for this node. More...
 
EventCookie RegisterEventUpdated (std::function< void(Node &)> handler)
 Register a listener to node updated event. More...
 
void UnregisterEventUpdated (EventCookie eventCookie) noexcept
 Manually unregister a listener to the node updated event. More...
 
NodeMapPtr NodeMap () const noexcept
 Gets the node map this node resides in. More...
 

Detailed Description

Represents a floating point number.

Member Function Documentation

◆ Increment()

double Increment ( ) const
inline

Gets the increment of this value.

Returns
Step width.
Exceptions
Anyexception derived from std::exception including CvbException.

The node can take values that are multiples of this one. Except when "nan" is returned which indicates that no increment is available.

◆ Max()

double Max ( ) const
inline

Gets the maximal allowed number for this value.

Returns
Maximal value.
Exceptions
Anyexception derived from std::exception including CvbException.

◆ Min()

double Min ( ) const
inline

Gets the minimal allowed number for this value.

Returns
Minimal value.
Exceptions
Anyexception derived from std::exception including CvbException.

◆ Representation()

NumberRepresentation Representation ( ) const
inline

Gets how the value is to be represented.

Returns
Number representation.
Exceptions
Anyexception derived from std::exception including CvbException.

◆ SetValue()

void SetValue ( double  value)
inline

Sets the value of this floating point node.

Parameters
[in]valueThe new value.
Exceptions
Anyexception derived from std::exception including CvbException.

◆ Unit()

String Unit ( ) const
inline

Gets the unit of this node's value.

Returns
Unit of this node as text.
Exceptions
Anyexception derived from std::exception including CvbException.

◆ Value()

double Value ( ) const
inline

Gets the value of this floating point node.

Returns
The current value.
Exceptions
Anyexception derived from std::exception including CvbException.