Pleora Technologies Inc. eBUS SDK v7.0.1.7536 API



Loading...
Searching...
No Matches
PvDisplayWnd.h
1// *****************************************************************************
2//
3// Copyright (c) 2007, Pleora Technologies Inc., All rights reserved.
4//
5// *****************************************************************************
6
7#ifndef __PVDISPLAYWND_H__
8#define __PVDISPLAYWND_H__
9
10#include <PvGUILib.h>
11#include <PvWnd.h>
12#include <PvBuffer.h>
13#include <PvBufferConverter.h>
14#include <PvGenDCInterfaces.h>
15
16class DisplayWnd;
17
18typedef enum
19{
20 PvRendererModeDefault = 0,
21 PvRendererModeAccelerated = 1,
22 PvRendererModeHardwareAccelerated = 2,
23 PvRendererModeUndefined = 999
24
25} PvRendererMode;
26
27
28class PV_GUI_API PvDisplayWnd : public PvWnd
29{
30public:
31
32
33 PvDisplayWnd( int32_t aMaxNumberOfThreads = -1 );
34
35 virtual ~PvDisplayWnd();
36
37 PvResult Display( const PvBuffer &aBuffer, bool aVSync = false );
38 PvResult Display( const IPvImage *aImage, bool aVSync = false );
39 PvResult Display( const IPvGenDCImage *aImage, bool aVSync = false );
40 PvResult SetBackgroundColor( uint8_t aR, uint8_t aG, uint8_t aB );
41
42 PvBufferConverter &GetConverter();
43
44 PvRendererMode GetRendererMode();
45 PvResult SetRendererMode( PvRendererMode aMode );
46
47 void Refresh();
48 static PvRendererMode GetHighestRendererMode();
49 static PvString GetRenderer();
50 static PvString GetRendererVersion();
51
52 void Clear();
53
54 void SetTextOverlay( const PvString &aText );
55 void SetTextOverlayColor( uint8_t aR, uint8_t aG, uint8_t aB );
56 PvResult SetTextOverlaySize( int32_t aSize );
57 void SetTextOverlayOffsetX( uint32_t aX );
58 void SetTextOverlayOffsetY( uint32_t aY );
59
60 PvString GetTextOverlay() const;
61 void GetTextOverlayColor( uint8_t &aR, uint8_t &aG, uint8_t &aB ) const;
62 int32_t GetTextOverlaySize() const;
63 int32_t GetTextOverlayOffsetX() const;
64 int32_t GetTextOverlayOffsetY() const;
65
66 PvBuffer &GetInternalBuffer();
67
68protected:
69
70private:
71
72 // Not implemented
73 PvDisplayWnd( const PvDisplayWnd & );
74 const PvDisplayWnd &operator=( const PvDisplayWnd & );
75
76};
77
78#endif
Interface definitions for GenDC parts that decouple from PvBuffer library.
Generic image interface for GenDC parts.
Definition PvGenDCInterfaces.h:33
Generic image interface.
Definition PvImage.h:21
Used to convert a PvBuffer to another pixel type.
Definition PvBufferConverter.h:67
Represents a block of GigE Vision or USB3 Vision data in memory.
Definition PvBuffer.h:111
Display controller.
Definition PvDisplayWnd.h:29
Result information.
Definition PvResult.h:30
String class.
Definition PvString.h:26
Window controller superclass.
Definition PvWnd.h:18

Copyright (c) 2002-2026 Pleora Technologies Inc.
www.pleora.com