![]()  | 
  
    Imaging Control 4 C++ Library 1.4.0
    
   | 
 
A specialized type of display able to render into an externally created OpenGL window. More...
  
Public Member Functions | |
| bool | initialize (Error &err=Error::Default()) | 
| Initialize the external OpenGL display.   | |
| bool | render (int width, int height, Error &err=Error::Default()) | 
| Updates the external OpenGL display with the newest image available.   | |
| bool | notifyWindowClosed (Error &err=Error::Default()) | 
| Notifies the display component that the window was closed.   | |
  Public Member Functions inherited from Display | |
| bool | canRender (const ic4::ImageType &imageType, Error &err=Error::Ignore()) | 
| Checks whether the display can render images of a specified image type.   | |
| bool | displayBuffer (const std::shared_ptr< ic4::ImageBuffer > &buffer, Error &err=Error::Default()) | 
| Displays a specific image buffer.   | |
| bool | setRenderPosition (DisplayRenderPosition pos, int left=-1, int top=-1, int width=-1, int height=-1, Error &err=Error::Default()) | 
| Configure the image scaling and alignment options for a display.   | |
| DisplayStatistics | statistics (Error &err=Error::Default()) | 
| Queries display statistics.   | |
| NotificationToken | eventAddWindowClosed (WindowClosedHandler cb, Error &err=Error::Default()) | 
| Registers a new window-closed event handler.   | |
| bool | eventRemoveWindowClosed (NotificationToken token, Error &err=Error::Default()) | 
| Unregisters a window-closed event handler.   | |
Static Public Member Functions | |
| static std::shared_ptr< ExternalOpenGLDisplay > | create (Error &err=Error::Default()) | 
| Creates a new external OpenGL display.   | |
  Static Public Member Functions inherited from Display | |
| static std::shared_ptr< Display > | create (DisplayType type, WindowHandle hParent, Error &err=Error::Default()) | 
| Creates a new display.   | |
Additional Inherited Members | |
  Public Types inherited from Display | |
| using | WindowClosedHandler = std::function< void(Display &display)> | 
| Function prototype for window-closed event handlers.   | |
| using | NotificationToken = void * | 
| Represents a registered callback.   | |
A specialized type of display able to render into an externally created OpenGL window.
      
  | 
  inlinestatic | 
Creates a new external OpenGL display.
| err | Reference to an error handler. See Error Handling for details. | 
nullptr if an error occurs. 
      
  | 
  inline | 
Initialize the external OpenGL display.
| [out] | err | Reference to an error handler. See Error Handling for details. | 
true on success, otherwise false.makeCurrent). 
      
  | 
  inline | 
Notifies the display component that the window was closed.
| [out] | err | Reference to an error handler. See Error Handling for details. | 
true on success, otherwise false. 
      
  | 
  inline | 
Updates the external OpenGL display with the newest image available.
| [in] | width | Width of the display window in physical pixels | 
| [in] | height | Height of the display window in physical pixels | 
| [out] | err | Reference to an error handler. See Error Handling for details. | 
true on success, otherwise false.makeCurrent).