Raytrix Light Field SDK  4.0
Logo
Public Member Functions | Properties | Events | List of all members
Rx::LFR::Net::Camera Class Reference

Detailed Description

A camera.

Inherits Rx::Net::NativeInterfaceWrapper< Rx::LFR::CCamera, Rx::LFR::Net::Interfaces::ECamera >.

Public Member Functions

 Camera ()
 Default constructor. More...
 
 Camera (Rx::LFR::CCamera &xNative)
 Constructor. More...
 
 ~Camera ()
 Destructor. More...
 
void Close ()
 Closes the camera. Does nothing if not open. More...
 
virtual System::ObjectGetInterface (Interfaces::ECamera eInterface) override
 Gets the interface of the CUDA compute class determined by the ECudaComputeInterface enum. More...
 
void GetProperty (InteropNet::Runtime30::Camera::EProperty eProp, RX_OUT int% iValue)
 Gets a property. More...
 
void GetProperty (InteropNet::Runtime30::Camera::EProperty eProp, RX_OUT float% fValue)
 Gets a property. More...
 
void GetProperty (InteropNet::Runtime30::Camera::EProperty eProp, RX_OUT System::String^ %sValue)
 Gets the value of a string property. More...
 
void GetPropertyRange (InteropNet::Runtime30::Camera::EProperty eProp, RX_OUT float% fMin, RX_OUT float% fMax)
 Gets the propertyrange of the given arguments. More...
 
void GetPropertyRange (InteropNet::Runtime30::Camera::EProperty eProp, RX_OUT int% iMin, RX_OUT int% iMax)
 Gets the propertyrange of the given arguments. More...
 
void GetPropertyRange (Interop::Runtime30::Camera::EProperty::ID eProp, RX_OUT array< int >^%aiValues)
 Gets the possible values of an integer property. More...
 
delegate void ImageCapturedHandler (Rx::LFR::Net::ConstImage^ xImage, unsigned uCamIdx)
 Handler of image captured events. More...
 
bool IsPropertyAvailable (InteropNet::Runtime30::Camera::EProperty eProp)
 Queries if a property is available. More...
 
void Open ()
 Opens the camera. More...
 
void SetProperty (InteropNet::Runtime30::Camera::EProperty eProp, int iValue)
 Sets a property. More...
 
void SetProperty (InteropNet::Runtime30::Camera::EProperty eProp, float fValue)
 Sets a property. More...
 
void SetProperty (InteropNet::Runtime30::Camera::EProperty eProp, System::String^ sValue)
 Sets the value of a string property. More...
 
void Start ()
 Starts a capture. More...
 
void Start (InteropNet::Runtime30::Camera::ETriggerMode eTriggerMode)
 Starts the camera. The given trigger mode determines when the camera captures images. More...
 
void Stop ()
 Stops a capture. More...
 
void Suspend (bool bSuspend)
 Suspend capture. More...
 
void Trigger ()
 Triggers this object. More...
 

Properties

System::String^  DriverName [get]
 Gets the name of the driver. More...
 
Rx::Net::ImageFormat^  ImageFormat [get]
 Gets the format of the images captured by this camera. More...
 
unsigned Index [get]
 Gets the camera index. This is the index in the list of cameras in the camera server. More...
 
System::String^  InternalSerial [get]
 Gets the internal serial of the camera More...
 
bool IsOpen [get]
 Query if this camera is open. More...
 

Events

ImageCapturedHandler^  ImageCaptured [add, remove]
 Event queue for all listeners interested in ImageCaptured events. More...
 

Constructor & Destructor Documentation

Rx::LFR::Net::Camera::Camera ( )
inline

Default constructor.

Rx::LFR::Net::Camera::Camera ( Rx::LFR::CCamera xNative)
inline

Constructor.

Wraps the given native instance instead of creating an own instance. The given native instance must be valid for the lifetime of this instance.

Parameters
xNative[in] The native instance to be wrapped by this class.
Rx::LFR::Net::Camera::~Camera ( )
inline

Destructor.

Member Function Documentation

void Rx::LFR::Net::Camera::Close ( )
inline

Closes the camera. Does nothing if not open.

virtual System::Object ^ Rx::LFR::Net::Camera::GetInterface ( Interfaces::ECamera  eInterface)
inlineoverridevirtual

Gets the interface of the CUDA compute class determined by the ECudaComputeInterface enum.

Parameters
eInterfaceThe interface enum.
Returns
Null if no interface is implemented yet, else the interface object.

Reimplemented from Rx::Net::NativeInterfaceWrapper< Rx::LFR::CCamera, Rx::LFR::Net::Interfaces::ECamera >.

void Rx::LFR::Net::Camera::GetProperty ( InteropNet::Runtime30::Camera::EProperty  eProp,
RX_OUT int%  iValue 
)
inline

Gets a property.

Parameters
ePropThe property.
iValue[in,out] Zero-based index of the value.
void Rx::LFR::Net::Camera::GetProperty ( InteropNet::Runtime30::Camera::EProperty  eProp,
RX_OUT float%  fValue 
)
inline

Gets a property.

Parameters
ePropThe property.
fValue[in,out] The value.
void Rx::LFR::Net::Camera::GetProperty ( InteropNet::Runtime30::Camera::EProperty  eProp,
RX_OUT System::String^ %  sValue 
)
inline

Gets the value of a string property.

Parameters
ePropThe property.
sValue[out] The string value.
void Rx::LFR::Net::Camera::GetPropertyRange ( InteropNet::Runtime30::Camera::EProperty  eProp,
RX_OUT float%  fMin,
RX_OUT float%  fMax 
)
inline

Gets the propertyrange of the given arguments.

Parameters
ePropThe property.
fMin[in,out] The minimum.
fMax[in,out] The maximum.
void Rx::LFR::Net::Camera::GetPropertyRange ( InteropNet::Runtime30::Camera::EProperty  eProp,
RX_OUT int%  iMin,
RX_OUT int%  iMax 
)
inline

Gets the propertyrange of the given arguments.

Parameters
ePropThe property.
iMin[in,out] Zero-based index of the minimum.
iMax[in,out] Zero-based index of the maximum.
void Rx::LFR::Net::Camera::GetPropertyRange ( Interop::Runtime30::Camera::EProperty::ID  eProp,
RX_OUT array< int >^%  aiValues 
)
inline

Gets the possible values of an integer property.

Parameters
ePropThe property.
aiValues[out] The values.
delegate void Rx::LFR::Net::Camera::ImageCapturedHandler ( Rx::LFR::Net::ConstImage xImage,
unsigned  uCamIdx 
)

Handler of image captured events.

Parameters
xImageThe captured image.
uCamIdxThe index of the camera in the camera server.
bool Rx::LFR::Net::Camera::IsPropertyAvailable ( InteropNet::Runtime30::Camera::EProperty  eProp)
inline

Queries if a property is available.

Parameters
ePropThe property.
Returns
True if a property is available, false if not.
void Rx::LFR::Net::Camera::Open ( )
inline

Opens the camera.

void Rx::LFR::Net::Camera::SetProperty ( InteropNet::Runtime30::Camera::EProperty  eProp,
int  iValue 
)
inline

Sets a property.

Parameters
ePropThe property.
iValueZero-based index of the value.
void Rx::LFR::Net::Camera::SetProperty ( InteropNet::Runtime30::Camera::EProperty  eProp,
float  fValue 
)
inline

Sets a property.

Parameters
ePropThe property.
fValueThe value.
void Rx::LFR::Net::Camera::SetProperty ( InteropNet::Runtime30::Camera::EProperty  eProp,
System::String^  sValue 
)
inline

Sets the value of a string property.

Parameters
ePropThe property.
sValue[in,out] The string value.
void Rx::LFR::Net::Camera::Start ( )
inline

Starts a capture.

void Rx::LFR::Net::Camera::Start ( InteropNet::Runtime30::Camera::ETriggerMode  eTriggerMode)
inline

Starts the camera. The given trigger mode determines when the camera captures images.

Parameters
eTriggerModeThe trigger mode.
void Rx::LFR::Net::Camera::Stop ( )
inline

Stops a capture.

void Rx::LFR::Net::Camera::Suspend ( bool  bSuspend)
inline

Suspend capture.

Parameters
bSuspendtrue to suspend.
void Rx::LFR::Net::Camera::Trigger ( )
inline

Triggers this object.

Property Documentation

System:: String^ Rx::LFR::Net::Camera::DriverName
get

Gets the name of the driver.

Rx:: Net:: ImageFormat^ Rx::LFR::Net::Camera::ImageFormat
get

Gets the format of the images captured by this camera.

unsigned Rx::LFR::Net::Camera::Index
get

Gets the camera index. This is the index in the list of cameras in the camera server.

System:: String^ Rx::LFR::Net::Camera::InternalSerial
get

Gets the internal serial of the camera

bool Rx::LFR::Net::Camera::IsOpen
get

Query if this camera is open.

Event Documentation

ImageCapturedHandler^ Rx::LFR::Net::Camera::ImageCaptured
addremove

Event queue for all listeners interested in ImageCaptured events.