Pleora Technologies Inc. eBUS SDK v7.0.1.7536 API



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 
16 class DisplayWnd;
17 
18 typedef enum
19 {
20  PvRendererModeDefault = 0,
21  PvRendererModeAccelerated = 1,
22  PvRendererModeHardwareAccelerated = 2,
23  PvRendererModeUndefined = 999
24 
25 } PvRendererMode;
26 
27 
28 class PV_GUI_API PvDisplayWnd : public PvWnd
29 {
30 public:
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 
68 protected:
69 
70 private:
71 
72  // Not implemented
73  PvDisplayWnd( const PvDisplayWnd & );
74  const PvDisplayWnd &operator=( const PvDisplayWnd & );
75 
76 };
77 
78 #endif
PvResult
Result information.
Definition: PvResult.h:29
IPvImage
Generic image interface.
Definition: PvImage.h:20
PvString
String class.
Definition: PvString.h:25
PvBufferConverter
Used to convert a PvBuffer to another pixel type.
Definition: PvBufferConverter.h:66
IPvGenDCImage
Generic image interface for GenDC parts.
Definition: PvGenDCInterfaces.h:32
PvWnd
Window controller superclass.
Definition: PvWnd.h:17
PvDisplayWnd
Display controller.
Definition: PvDisplayWnd.h:28
PvGenDCInterfaces.h
Interface definitions for GenDC parts that decouple from PvBuffer library.
PvBuffer
Represents a block of GigE Vision or USB3 Vision data in memory.
Definition: PvBuffer.h:110
PvBufferConverter.h

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