File FloatNode.h¶
File List > include > SpinGenApi > FloatNode.h
Go to the documentation of this file
//=============================================================================
// Copyright (c) 2026 FLIR Integrated Imaging Solutions, Inc. All Rights Reserved.
//
// This software is the confidential and proprietary information of FLIR
// Integrated Imaging Solutions, Inc. ("Confidential Information"). You
// shall not disclose such Confidential Information and shall use it only in
// accordance with the terms of the license agreement you entered into
// with FLIR Integrated Imaging Solutions, Inc. (FLIR).
//
// FLIR MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
// SOFTWARE, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE, OR NON-INFRINGEMENT. FLIR SHALL NOT BE LIABLE FOR ANY DAMAGES
// SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
// THIS SOFTWARE OR ITS DERIVATIVES.
//=============================================================================
#ifndef SPINNAKER_GENAPI_FLOATNODE_H
#define SPINNAKER_GENAPI_FLOATNODE_H
#include "SpinnakerPlatform.h"
#include "Types.h"
#include "Base.h"
#include "GCString.h"
#include "ISelector.h"
#include "INode.h"
#include "ValueNode.h"
#include "IFloat.h"
#include "IInteger.h"
#include "IEnumeration.h"
#ifdef _WIN32
#pragma warning(push)
#pragma warning(disable : 4250) // C4250 - 'class1' : inherits 'class2::member' via dominance
#pragma warning(disable : 4251) // XXX needs to have dll-interface to be used by clients of class YYY
#pragma warning(disable : 4275) // non dll-interface structXXX used as base
#endif
namespace Spinnaker
{
namespace GenApi
{
class SPINNAKER_API FloatNode : virtual public IFloat, virtual public ValueNode
{
public:
struct NodeImpl;
FloatNode();
FloatNode(std::shared_ptr<Node::NodeImpl> pFloat);
virtual ~FloatNode();
virtual void SetValue(double Value, bool Verify = true);
virtual IFloat& operator=(double Value);
virtual double GetValue(bool Verify = false, bool IgnoreCache = false);
virtual bool IsValueUpdated();
virtual double operator()();
virtual double operator*();
virtual double GetMin();
virtual double GetMax();
virtual bool HasInc();
virtual EIncMode GetIncMode();
virtual double GetInc();
virtual double_autovector_t GetListOfValidValues(bool bounded = true);
virtual ERepresentation GetRepresentation();
virtual GenICam::gcstring GetUnit() const;
virtual EDisplayNotation GetDisplayNotation() const;
virtual int64_t GetDisplayPrecision() const;
IInteger* GetIntAlias();
IEnumeration* GetEnumAlias();
virtual void ImposeMin(double Value);
virtual void ImposeMax(double Value);
virtual void SetReference(INode* pBase);
private:
std::shared_ptr<Node::NodeImpl> m_pFloat;
double m_lastValue;
bool m_isValueInitialized;
bool m_isValueUpdated;
};
typedef FloatNode CFloatRef;
} // namespace GenApi
} // namespace Spinnaker
#ifdef _WIN32
#pragma warning(pop)
#endif
#endif // SPINNAKER_GENAPI_FLOATNODE_H