![]() |
IDS peak genericC++
v1.6.1
|
Represents a GenTL buffer module. More...
#include <peak/buffer/peak_buffer.hpp>
Public Member Functions | |
| Buffer ()=delete | |
| ~Buffer () override=default | |
| Buffer (const Buffer &other)=delete | |
| Buffer & | operator= (const Buffer &other)=delete |
| Buffer (Buffer &&other)=delete | |
| Buffer & | operator= (Buffer &&other)=delete |
| std::vector< std::shared_ptr< BufferChunk > > | Chunks () |
| Returns the buffer's chunks if it contains chunks. More... | |
| std::vector< std::shared_ptr< BufferPart > > | Parts () |
| Returns all buffer parts for multipart buffers. More... | |
| std::shared_ptr< DataStream > | ParentDataStream () const |
| Returns the parent data stream. More... | |
Info Commands | |
| RawInformation | Info (int32_t infoCommand) const |
| Delivers information based on the given GenTL info command. More... | |
| std::string | TLType () const |
| Returns the TL (transport layer) type. More... | |
| void * | BasePtr () const |
| Returns the base pointer. More... | |
| size_t | Size () const |
| Returns the size of the buffer in bytes. More... | |
| void * | UserPtr () const |
| Returns the pointer to custom user data attached to the buffer. More... | |
| BufferPayloadType | PayloadType () const |
| Returns the payload type. More... | |
| uint64_t | PixelFormat () const |
| Returns the pixel format of the data. More... | |
| peak::core::PixelFormatNamespace | PixelFormatNamespace () const |
| Returns the pixel format namespace, to allow interpretation of the PixelFormat(). More... | |
| Endianness | PixelEndianness () const |
| Returns the pixel endianness. More... | |
| size_t | ExpectedDataSize () const |
| Returns the expected data size. More... | |
| size_t | DeliveredDataSize () const |
| Returns the delivered data size. More... | |
| uint64_t | FrameID () const |
| Returns the frame ID. More... | |
| size_t | ImageOffset () const |
| Returns the offset of the image data from the beginning of the delivered buffer in bytes. More... | |
| size_t | DeliveredImageHeight () const |
| Returns the delivered image height. More... | |
| size_t | DeliveredChunkPayloadSize () const |
| Returns the delivered chunk payload size. More... | |
| uint64_t | ChunkLayoutID () const |
| Returns the chunk layout ID. More... | |
| std::string | FileName () const |
| Returns the file name. More... | |
| size_t | Width () const |
| Returns the width. More... | |
| size_t | Height () const |
| Returns the height. More... | |
| size_t | XOffset () const |
| Returns the x offset of the data in the buffer in number of pixels from the image origin to handle areas of interest. More... | |
| size_t | YOffset () const |
| Returns the y offset of the data in the buffer in number of lines from the image origin to handle areas of interest. More... | |
| size_t | XPadding () const |
| Returns the x padding of the data in the buffer in number of bytes. More... | |
| size_t | YPadding () const |
| Returns the y padding of the data in the buffer in number of bytes. More... | |
| uint64_t | Timestamp_ticks () const |
| Returns the timestamp. More... | |
| uint64_t | Timestamp_ns () const |
| Returns the timestamp. More... | |
| bool | IsQueued () const |
| Checks whether the buffer is queued or not. More... | |
| bool | IsAcquiring () const |
| Checks whether the buffer is currently being filled. More... | |
| bool | IsIncomplete () const |
| Checks whether the buffer is incomplete or not. More... | |
| bool | HasNewData () const |
| Checks whether the buffer has new data since the last delivery. More... | |
| bool | HasImage () const |
| Checks whether the buffer contains image data. More... | |
| bool | HasChunks () const |
| Checks whether the buffer contains chunks. More... | |
Public Member Functions inherited from peak::core::EventSupportingModule | |
| EventSupportingModule ()=default | |
| ~EventSupportingModule () override=default | |
| EventSupportingModule (const EventSupportingModule &other)=delete | |
| EventSupportingModule & | operator= (const EventSupportingModule &other)=delete |
| EventSupportingModule (EventSupportingModule &&other)=delete | |
| EventSupportingModule & | operator= (EventSupportingModule &&other)=delete |
| std::unique_ptr< EventController > | EnableEvents (EventType type) |
| Enables events of the given event type. More... | |
Public Member Functions inherited from peak::core::Module | |
| Module ()=default | |
| virtual | ~Module ()=default |
| Module (const Module &other)=delete | |
| Module & | operator= (const Module &other)=delete |
| Module (Module &&other)=delete | |
| Module & | operator= (Module &&other)=delete |
| std::vector< std::shared_ptr< NodeMap > > | NodeMaps () const |
| Returns the module's node maps. More... | |
| std::shared_ptr< class Port > | Port () const |
| Returns the module's port. More... | |
Friends | |
| class | DataStream |
Additional Inherited Members |
Represents a GenTL buffer module.
This class allows to query information about a GenTL buffer module and to enumerate its chunks or parts.
|
delete |
|
overridedefault |
|
delete |
|
delete |
|
inline |
Returns the base pointer.
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the chunk layout ID.
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the buffer's chunks if it contains chunks.
Check if the buffer has chunks with HasChunks().
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the delivered chunk payload size.
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the delivered data size.
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the delivered image height.
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the expected data size.
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the file name.
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the frame ID.
| InternalErrorException | An internal error has occurred. |
|
inline |
Checks whether the buffer contains chunks.
If HasChunks() is true, check the BufferChunks using Chunks().
| InternalErrorException | An internal error has occurred. |
|
inline |
Checks whether the buffer contains image data.
See GenTL BUFFER_INFO_IMAGEPRESENT.
| InternalErrorException | An internal error has occurred. |
|
inline |
Checks whether the buffer has new data since the last delivery.
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the height.
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the offset of the image data from the beginning of the delivered buffer in bytes.
| InternalErrorException | An internal error has occurred. |
|
inline |
Delivers information based on the given GenTL info command.
| [in] | infoCommand | The GenTL info command. |
This function can be used to query information going beyond the predefined info functions, based on the GenTL info commands of the corresponding module.
Example (error handling is omitted):
| InternalErrorException | An internal error has occurred. |
|
inline |
Checks whether the buffer is currently being filled.
| InternalErrorException | An internal error has occurred. |
|
inline |
Checks whether the buffer is incomplete or not.
Incomplete buffers can happen when an error occurred while the buffer was being filled.
| InternalErrorException | An internal error has occurred. |
|
inline |
Checks whether the buffer is queued or not.
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the parent data stream.
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns all buffer parts for multipart buffers.
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the payload type.
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the pixel endianness.
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the pixel format of the data.
The interpretation of the pixel format depends on the namespace the pixel format belongs to. This can be inquired using PixelFormatNamespace().
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the pixel format namespace, to allow interpretation of the PixelFormat().
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the size of the buffer in bytes.
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the timestamp.
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the timestamp.
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the TL (transport layer) type.
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the pointer to custom user data attached to the buffer.
Pointer to user data provided at buffer announcement using DataStream::AnnounceBuffer() / DataStream::AllocAndAnnounceBuffer(). This pointer can be used to identify or to attach custom user data to the buffer.
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the width.
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the x offset of the data in the buffer in number of pixels from the image origin to handle areas of interest.
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the x padding of the data in the buffer in number of bytes.
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the y offset of the data in the buffer in number of lines from the image origin to handle areas of interest.
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the y padding of the data in the buffer in number of bytes.
| InternalErrorException | An internal error has occurred. |
|
friend |