• Introduction
  • Programmer's Guide
  • Technical Articles
  • API Documentation
Search Results for

    Show / Hide Table of Contents
    • ic4
      • BufferPool
      • DeviceEnum
      • DeviceInfo
      • Display
      • DisplayNotation
      • DisplayRenderPosition
      • DisplayStatistics
      • DisplayType
      • EmbeddedDisplay
      • ErrorCode
      • ExternalOpenGLDisplay
      • FloatRepresentation
      • FloatingDisplay
      • FrameMetaData
      • Grabber
      • HandleObject
      • IBufferAllocator
      • IC4Exception
      • IDisplay
      • ImageBuffer
      • ImageBuffer.CopyOptions
      • ImageBufferExtensions
      • ImageBufferExtensionsOpenCvSharp
      • ImageType
      • IntRepresentation
      • Interface
      • Library
      • LogLevel
      • LogTarget
      • PixelFormat
      • PixelFormatExtensions
      • PngCompressionLevel
      • PropBoolean
      • PropCategory
      • PropCommand
      • PropEnumEntry
      • PropEnumeration
      • PropFloat
      • PropId
      • PropIdBoolean
      • PropIdCommand
      • PropIdEnumeration
      • PropIdFloat
      • PropIdInteger
      • PropIdRegister
      • PropIdString
      • PropInteger
      • PropRegister
      • PropString
      • Property
      • PropertyIncrementMode
      • PropertyMap
      • PropertyType
      • PropertyVisibility
      • QueueSink
      • QueueSinkConnectedEventArgs
      • QueueSinkEventArgs
      • QueueSinkQueueSizes
      • Sink
      • SinkMode
      • SinkType
      • SnapSink
      • SnapSinkAllocationStrategy
      • StreamSetupOption
      • StreamStatistics
      • TransportLayerType
      • VersionInfoFlags
      • VideoWriter
      • VideoWriterType

    Class ExternalOpenGLDisplay

    A specialized type of display able to render into an externally created OpenGL window

    Inheritance
    object
    HandleObject
    Display
    ExternalOpenGLDisplay
    Implements
    IDisposable
    IDisplay
    Inherited Members
    Display.DisplayBuffer(ImageBuffer)
    Display.WindowClosed
    Display.Statistics
    Display.RenderPosition
    Display.RenderLeft
    Display.RenderTop
    Display.RenderWidth
    Display.RenderHeight
    HandleObject.Dispose(bool)
    HandleObject.Dispose()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: ic4
    Assembly: ic4dotnet.dll
    Syntax
    public class ExternalOpenGLDisplay : Display, IDisposable, IDisplay

    Constructors

    ExternalOpenGLDisplay()

    Creates a new external OpenGL display

    Declaration
    public ExternalOpenGLDisplay()
    Exceptions
    Type Condition
    IC4Exception

    Check ErrorCode and ToString() for details.

    Methods

    Initialize()

    Initialize the external OpenGL display.

    Declaration
    public void Initialize()
    Remarks

    This function must be called with the OpenGL context activated for the executing thread (e.g. makeCurrent).

    Exceptions
    Type Condition
    IC4Exception

    Check ErrorCode and ToString() for details.

    NotifyWindowClosed()

    Notifies the display component that the window was closed.

    Declaration
    public void NotifyWindowClosed()
    Exceptions
    Type Condition
    IC4Exception

    Check ErrorCode and ToString() for details.

    Render(int, int)

    Updates the external OpenGL display with the newest image available.

    Declaration
    public void Render(int windowWidth, int windowHeight)
    Parameters
    Type Name Description
    int windowWidth

    Width of the display window in physical pixels

    int windowHeight

    Height of the display window in physical pixels

    Remarks

    This function must be called with the OpenGL context activated for the executing thread (e.g. makeCurrent).

    Exceptions
    Type Condition
    IC4Exception

    Check ErrorCode and ToString() for details.

    Implements

    IDisposable
    IDisplay
    In this article
    Copyright ©️ 2024 The Imaging Source Europe GmbH www.theimagingsource.com