Low Level API: The camera class for generic camera devices. More...
#include <pylon/PylonDeviceProxy.h>
Public Member Functions | |
Construction | |
CPylonDeviceProxyT () | |
Creates a camera object that is not attached to an pylon device. Use the Attach() method to attach the device. | |
CPylonDeviceProxyT (IPylonDevice *, bool takeOwnership=true) | |
Creates a camera object and attaches a camera object to a pylon device that takes the ownership over an pylon device. More... | |
virtual | ~CPylonDeviceProxyT () |
Destructor. | |
Some smart pointer functionality | |
virtual void | Attach (IPylonDevice *, bool takeOwnership=true) |
Attach the camera object to a pylon device. More... | |
virtual bool | IsAttached () const |
Checks if a pylon device is attached to the camera object. | |
virtual bool | HasOwnership () const |
Checks if the camera object has the ownership of the pylon device. | |
virtual IPylonDevice * | GetDevice () const |
Returns the pylon device interface pointer. | |
Implementation of the IPylonDevice interface. | |
See Pylon::IPylonDevice for more details. | |
void | Open (AccessModeSet mode=(Stream|Control|Event)) |
Opens a device. More... | |
void | Close (void) |
Closes a device. More... | |
bool | IsOpen (void) const |
Checks if a device already is opened. More... | |
AccessModeSet | AccessMode (void) const |
Returns the access mode used to open the device. More... | |
const CDeviceInfo & | GetDeviceInfo (void) const |
Returns the device info object storing information like the device's name. More... | |
uint32_t | GetNumStreamGrabberChannels (void) const |
Returns the number of stream grabbers the camera object provides. More... | |
IStreamGrabber * | GetStreamGrabber (uint32_t index) |
Returns a pointer to a stream grabber. More... | |
IEventGrabber * | GetEventGrabber (void) |
Returns a pointer to an event grabber. More... | |
GenApi::INodeMap * | GetNodeMap (void) |
Returns the set of camera parameters. More... | |
GenApi::INodeMap * | GetTLNodeMap (void) |
Returns the set of camera related transport layer parameters. More... | |
Pylon::IChunkParser * | CreateChunkParser (void) |
Creates a chunk parser used to update those camera object members reflecting the content of additional data chunks appended to the image data. More... | |
void | DestroyChunkParser (Pylon::IChunkParser *pChunkParser) |
Deletes a chunk parser. More... | |
IEventAdapter * | CreateEventAdapter (void) |
Creates an Event adapter. More... | |
void | DestroyEventAdapter (IEventAdapter *pAdapter) |
Deletes an Event adapter. More... | |
virtual ISelfReliantChunkParser * | CreateSelfReliantChunkParser () |
Creates a a self-reliant chunk parser, returns NULL if not supported. More... | |
virtual void | DestroySelfReliantChunkParser (ISelfReliantChunkParser *pChunkParser) |
Deletes a self-reliant chunk parser. More... | |
DeviceCallbackHandle | RegisterRemovalCallback (DeviceCallback &d) |
Registers a surprise removal callback object. More... | |
bool | DeregisterRemovalCallback (DeviceCallbackHandle h) |
Deregisters a surprise removal callback object. More... | |
Low Level API: The camera class for generic camera devices.
This is the base class for pylon camera classes providing access to camera parameters.
TCameraParams | The camera specific parameter class (auto generated from camera xml file) |
|
inline |
Creates a camera object and attaches a camera object to a pylon device that takes the ownership over an pylon device.
When having the ownership, the destructor of this camera object destroys the pylon device the camera object is attached to. Otherwise, the pylon device object remains valid when the camera object has been destroyed.
|
inline |
Returns the access mode used to open the device.
|
inlinevirtual |
Attach the camera object to a pylon device.
It is not allowed to call Attach when the camera object is already attached!
When having the ownership, the destructor of this camera object destroys the pylon device the camera object is attached to. Otherwise, the pylon device object remains valid when the camera object has been destroyed.
Reimplemented in Pylon::CPylonGigEDeviceProxyT< TCameraParams >, and Pylon::CPylonGigEDeviceProxyT< Basler_GigECamera::CGigECamera_Params >.
|
inline |
Closes a device.
The close method closes all involved drivers and an existing connection to the device will be released. Other applications now can access the device.
|
inline |
Creates a chunk parser used to update those camera object members reflecting the content of additional data chunks appended to the image data.
|
inline |
Creates an Event adapter.
|
inlinevirtual |
Creates a a self-reliant chunk parser, returns NULL if not supported.
|
inline |
Deregisters a surprise removal callback object.
h | Handle of the callback to be removed |
|
inline |
Deletes a chunk parser.
pChunkParser | Pointer to the chunk parser to be deleted |
|
inline |
Deletes an Event adapter.
|
inlinevirtual |
Deletes a self-reliant chunk parser.
|
inline |
Returns the device info object storing information like the device's name.
|
inline |
Returns a pointer to an event grabber.
Event grabbers are used to handle events sent from a camera device.
|
inline |
Returns the set of camera parameters.
|
inline |
Returns the number of stream grabbers the camera object provides.
|
inline |
Returns a pointer to a stream grabber.
Stream grabbers (IStreamGrabber) are the objects used to grab images from a camera device. A camera device might be able to send image data over more than one logical channel called stream. A stream grabber grabs data from one single stream.
index | The number of the grabber to return |
|
inline |
Returns the set of camera related transport layer parameters.
|
inline |
Checks if a device already is opened.
|
inline |
Opens a device.
The open method initializes all involved drivers and establishes a connection to the device.
A device may support different access modes, e.g. EDeviceAccessMode::Exclusive providing an exclusive access to the device.
mode | The desired device access mode |
|
inline |
Registers a surprise removal callback object.
d | reference to a device callback object |
Example how to register a C function
Example how to register a class member function