Pleora Technologies Inc. eBUS SDK v6.2.8.5877 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 Display( const IPvImage *aImage, bool aVSync = false );
43  PvResult SetBackgroundColor( uint8_t aR, uint8_t aG, uint8_t aB );
44 
45  PvBufferConverter &GetConverter();
46 
47 #ifndef WIN32
48  PvRendererMode GetRendererMode();
49  PvResult SetRendererMode( PvRendererMode aMode );
50 
51  void Refresh();
52  static PvRendererMode GetHighestRendererMode();
53  static PvString GetRenderer();
54  static PvString GetRendererVersion();
55 #endif // WIN32
56  void Clear();
57 
58 
59  void SetTextOverlay( const PvString &aText );
60  void SetTextOverlayColor( uint8_t aR, uint8_t aG, uint8_t aB );
61  PvResult SetTextOverlaySize( int32_t aSize );
62  void SetTextOverlayOffsetX( uint32_t aX );
63  void SetTextOverlayOffsetY( uint32_t aY );
64 
65  PvString GetTextOverlay() const;
66  void GetTextOverlayColor( uint8_t &aR, uint8_t &aG, uint8_t &aB ) const;
67  int32_t GetTextOverlaySize() const;
68  int32_t GetTextOverlayOffsetX() const;
69  int32_t GetTextOverlayOffsetY() const;
70 
71  PvBuffer &GetInternalBuffer();
72 
73  int GetHScrollPos() const;
74  PvResult SetHScrollPos( int aPos );
75  void GetHScrollRange( int &aMin, int &aMax ) const;
76 #ifdef WIN32
77  PvWindowHandle GetHScrollHandle();
78 #endif
79 
80  int GetVScrollPos() const;
81  PvResult SetVScrollPos( int aPos );
82  void GetVScrollRange( int &aMin, int &aMax ) const;
83 #ifdef WIN32
84  PvWindowHandle GetVScrollHandle();
85 #endif
86 
87  void Zoom1_1();
88  void ZoomIn();
89  void ZoomOut();
90  void ZoomFit();
91 
92 protected:
93 
94 private:
95 
96  // Not implemented
97  PvDisplayWnd( const PvDisplayWnd & );
98  const PvDisplayWnd &operator=( const PvDisplayWnd & );
99 
100 };
101 
102 #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
Generic image interface.
Definition: PvImage.h:17
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:47
A user interface for displaying the contents of an image.
Definition: PvDisplayWnd.h:30

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