Pleora Technologies Inc. eBUS SDK v5.1.10.4642 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 
15 
16 class DisplayWnd;
17 
18 #ifndef WIN32
19 typedef enum
20 {
21  PvRendererModeDefault = 0,
22  PvRendererModeAccelerated = 1,
23  PvRendererModeHardwareAccelerated = 2,
24  PvRendererModeUndefined = 999,
25 
26 } PvRendererMode;
27 #endif // !WIN32
28 
29 
30 class PV_GUI_API PvDisplayWnd : public PvWnd
31 {
32 public:
33 
34 #ifdef WIN32
35  PvDisplayWnd();
36 #else
37  PvDisplayWnd( int32_t aMaxNumberOfThreads = -1 );
38 #endif // WIN32
39  virtual ~PvDisplayWnd();
40 
41  PvResult Display( const PvBuffer &aBuffer, bool aVSync = false );
42  PvResult SetBackgroundColor( uint8_t aR, uint8_t aG, uint8_t aB );
43 
44  PvBufferConverter &GetConverter();
45 
46 #ifndef WIN32
47  PvRendererMode GetRendererMode();
48  PvResult SetRendererMode( PvRendererMode aMode );
49 
50  void Refresh();
51  static PvRendererMode GetHighestRendererMode();
52  static PvString GetRenderer();
53  static PvString GetRendererVersion();
54 #endif // WIN32
55  void Clear();
56 
57 
58  void SetTextOverlay( const PvString &aText );
59  void SetTextOverlayColor( uint8_t aR, uint8_t aG, uint8_t aB );
60  PvResult SetTextOverlaySize( int32_t aSize );
61  void SetTextOverlayOffsetX( uint32_t aX );
62  void SetTextOverlayOffsetY( uint32_t aY );
63 
64  PvString GetTextOverlay() const;
65  void GetTextOverlayColor( uint8_t &aR, uint8_t &aG, uint8_t &aB ) const;
66  int32_t GetTextOverlaySize() const;
67  int32_t GetTextOverlayOffsetX() const;
68  int32_t GetTextOverlayOffsetY() const;
69 
70  PvBuffer &GetInternalBuffer();
71 
72  int GetHScrollPos() const;
73  PvResult SetHScrollPos( int aPos );
74  void GetHScrollRange( int &aMin, int &aMax ) const;
75 #ifdef WIN32
76  PvWindowHandle GetHScrollHandle();
77 #endif
78 
79  int GetVScrollPos() const;
80  PvResult SetVScrollPos( int aPos );
81  void GetVScrollRange( int &aMin, int &aMax ) const;
82 #ifdef WIN32
83  PvWindowHandle GetVScrollHandle();
84 #endif
85 
86  void Zoom1_1();
87  void ZoomIn();
88  void ZoomOut();
89  void ZoomFit();
90 
91 protected:
92 
93 private:
94 
95  // Not implemented
96  PvDisplayWnd( const PvDisplayWnd & );
97  const PvDisplayWnd &operator=( const PvDisplayWnd & );
98 
99 };
100 
101 #endif
Used to convert a PvBuffer to another pixel type.
Definition: PvBufferConverter.h:28
String class.
Definition: PvString.h:21
Result information.
Definition: PvResult.h:13
Base class defining common functionality for all user interface classes.
Definition: PvWnd.h:19
Represents a block of GigE Vision or USB3 Vision data in memory.
Definition: PvBuffer.h:37
A user interface for displaying the contents of an image.
Definition: PvDisplayWnd.h:30

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