CInstantCameraParams_Params

 CInstantCameraParams_Params相机参数类,是CInstantCamera基类,以接口形式声明了很多成员变量。

  class CInstantCameraParams_Params

    {
    protected:
            CInstantCameraParams_Params(void);
            ~CInstantCameraParams_Params(void);
            void _Initialize(GenApi::INodeMap*);
            const char* _GetVendorName(void);
            const char* _GetModelName(void);
    public:
GenApi::IInteger &MaxNumBuffer;//分配的用于获取图像的最大缓存数
GenApi::IInteger &MaxNumQueuedBuffer;//The maximum number of buffers that are queued in the stream grabber input queue
GenApi::IInteger &MaxNumGrabResults;
GenApi::IBoolean &ChunkNodeMapsEnable;
GenApi::IInteger &StaticChunkNodeMapPoolSize;
GenApi::IBoolean &GrabCameraEvents;
GenApi::IBoolean &MonitorModeActive;
GenApi::IBoolean &InternalGrabEngineThreadPriorityOverride;
GenApi::IInteger &InternalGrabEngineThreadPriority;
GenApi::IBoolean &GrabLoopThreadUseTimeout;
GenApi::IInteger &GrabLoopThreadTimeout;
GenApi::IBoolean &GrabLoopThreadPriorityOverride;
GenApi::IInteger &GrabLoopThreadPriority;
GenApi::IInteger &NumQueuedBuffers;
GenApi::IInteger &NumReadyBuffers;
GenApi::IInteger &NumEmptyBuffers;
GenApi::IInteger &OutputQueueSize;
    private:
            CInstantCameraParams_Params(CInstantCameraParams_Params&);
            CInstantCameraParams_Params& operator=(CInstantCameraParams_Params&);
    };




    //**************************************************************************************************
    // Parameter class implementation
    //**************************************************************************************************


    //! \cond HIDE_CLASS_METHODS


    inline CInstantCameraParams_Params::CInstantCameraParams_Params(void)
        : MaxNumBuffer( *new GenApi::CIntegerRef() )
        , MaxNumQueuedBuffer( *new GenApi::CIntegerRef() )
        , MaxNumGrabResults( *new GenApi::CIntegerRef() )
        , ChunkNodeMapsEnable( *new GenApi::CBooleanRef() )
        , StaticChunkNodeMapPoolSize( *new GenApi::CIntegerRef() )
        , GrabCameraEvents( *new GenApi::CBooleanRef() )
        , MonitorModeActive( *new GenApi::CBooleanRef() )
        , InternalGrabEngineThreadPriorityOverride( *new GenApi::CBooleanRef() )
        , InternalGrabEngineThreadPriority( *new GenApi::CIntegerRef() )
        , GrabLoopThreadUseTimeout( *new GenApi::CBooleanRef() )
        , GrabLoopThreadTimeout( *new GenApi::CIntegerRef() )
        , GrabLoopThreadPriorityOverride( *new GenApi::CBooleanRef() )
        , GrabLoopThreadPriority( *new GenApi::CIntegerRef() )
        , NumQueuedBuffers( *new GenApi::CIntegerRef() )
        , NumReadyBuffers( *new GenApi::CIntegerRef() )
        , NumEmptyBuffers( *new GenApi::CIntegerRef() )
        , OutputQueueSize( *new GenApi::CIntegerRef() )
        
    {
    }


    inline CInstantCameraParams_Params::~CInstantCameraParams_Params(void)
    {
        delete static_cast < GenApi::CIntegerRef*> (&MaxNumBuffer );
        delete static_cast < GenApi::CIntegerRef*> (&MaxNumQueuedBuffer );
        delete static_cast < GenApi::CIntegerRef*> (&MaxNumGrabResults );
        delete static_cast < GenApi::CBooleanRef*> (&ChunkNodeMapsEnable );
        delete static_cast < GenApi::CIntegerRef*> (&StaticChunkNodeMapPoolSize );
        delete static_cast < GenApi::CBooleanRef*> (&GrabCameraEvents );
        delete static_cast < GenApi::CBooleanRef*> (&MonitorModeActive );
        delete static_cast < GenApi::CBooleanRef*> (&InternalGrabEngineThreadPriorityOverride );
        delete static_cast < GenApi::CIntegerRef*> (&InternalGrabEngineThreadPriority );
        delete static_cast < GenApi::CBooleanRef*> (&GrabLoopThreadUseTimeout );
        delete static_cast < GenApi::CIntegerRef*> (&GrabLoopThreadTimeout );
        delete static_cast < GenApi::CBooleanRef*> (&GrabLoopThreadPriorityOverride );
        delete static_cast < GenApi::CIntegerRef*> (&GrabLoopThreadPriority );
        delete static_cast < GenApi::CIntegerRef*> (&NumQueuedBuffers );
        delete static_cast < GenApi::CIntegerRef*> (&NumReadyBuffers );
        delete static_cast < GenApi::CIntegerRef*> (&NumEmptyBuffers );
        delete static_cast < GenApi::CIntegerRef*> (&OutputQueueSize );
        
    }


    inline void CInstantCameraParams_Params::_Initialize(GenApi::INodeMap* _Ptr)
    {
        static_cast<GenApi::CIntegerRef*> (&MaxNumBuffer )->SetReference(_Ptr->GetNode("MaxNumBuffer"));
    static_cast<GenApi::CIntegerRef*> (&MaxNumQueuedBuffer )->SetReference(_Ptr->GetNode("MaxNumQueuedBuffer"));
    static_cast<GenApi::CIntegerRef*> (&MaxNumGrabResults )->SetReference(_Ptr->GetNode("MaxNumGrabResults"));
    static_cast<GenApi::CBooleanRef*> (&ChunkNodeMapsEnable )->SetReference(_Ptr->GetNode("ChunkNodeMapsEnable"));
    static_cast<GenApi::CIntegerRef*> (&StaticChunkNodeMapPoolSize )->SetReference(_Ptr->GetNode("StaticChunkNodeMapPoolSize"));
    static_cast<GenApi::CBooleanRef*> (&GrabCameraEvents )->SetReference(_Ptr->GetNode("GrabCameraEvents"));
    static_cast<GenApi::CBooleanRef*> (&MonitorModeActive )->SetReference(_Ptr->GetNode("MonitorModeActive"));
    static_cast<GenApi::CBooleanRef*> (&InternalGrabEngineThreadPriorityOverride )->SetReference(_Ptr->GetNode("InternalGrabEngineThreadPriorityOverride"));
    static_cast<GenApi::CIntegerRef*> (&InternalGrabEngineThreadPriority )->SetReference(_Ptr->GetNode("InternalGrabEngineThreadPriority"));
    static_cast<GenApi::CBooleanRef*> (&GrabLoopThreadUseTimeout )->SetReference(_Ptr->GetNode("GrabLoopThreadUseTimeout"));
    static_cast<GenApi::CIntegerRef*> (&GrabLoopThreadTimeout )->SetReference(_Ptr->GetNode("GrabLoopThreadTimeout"));
    static_cast<GenApi::CBooleanRef*> (&GrabLoopThreadPriorityOverride )->SetReference(_Ptr->GetNode("GrabLoopThreadPriorityOverride"));
    static_cast<GenApi::CIntegerRef*> (&GrabLoopThreadPriority )->SetReference(_Ptr->GetNode("GrabLoopThreadPriority"));
    static_cast<GenApi::CIntegerRef*> (&NumQueuedBuffers )->SetReference(_Ptr->GetNode("NumQueuedBuffers"));
    static_cast<GenApi::CIntegerRef*> (&NumReadyBuffers )->SetReference(_Ptr->GetNode("NumReadyBuffers"));
    static_cast<GenApi::CIntegerRef*> (&NumEmptyBuffers )->SetReference(_Ptr->GetNode("NumEmptyBuffers"));
    static_cast<GenApi::CIntegerRef*> (&OutputQueueSize )->SetReference(_Ptr->GetNode("OutputQueueSize"));
    
    }


    inline const char* CInstantCameraParams_Params::_GetVendorName(void)
    {
        return "Basler";
    }


    inline const char* CInstantCameraParams_Params::_GetModelName(void)
    {
        return "InstantCameraParams";
    }


    //! \endcond


} // namespace Basler_InstantCameraParams

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

码猿杂谈

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值