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