class Window[source]

OpenGL Rendering Window.

This class represents an OpenGL rendering window with interactive controls for visualizing meshes and point clouds. The window provides methods for rendering various types of data and handling user interactions.

Parameters:
width : int

The width of the window in pixels.

height : int

The height of the window in pixels.

gl_objects

List of GlObject instances to be rendered in the window.

Type:

list[GlObject]

gui

An instance of the GUI for interacting with the rendering.

Type:

Gui

guip

GUI parameters common for the entire window.

Type:

GuiParameters

width

The width of the window in pixels.

Type:

int

height

The height of the window in pixels.

Type:

int

interaction

An Interaction object managing user input interactions.

Type:

Interaction

impl

GlfwRenderer instance for rendering ImGui GUI.

Type:

GlfwRenderer

fps

Frames per second for the rendering loop.

Type:

int

time

Current time in seconds.

Type:

float

time_acum

Accumulated time for FPS calculation.

Type:

float

Public members

Window(width: int, height: int)[source]

Initialize the OpenGL rendering window and setting up default parameters.

render(scene: Scene)[source]

Render single or multiple objects.

gl_objects : list[GlObject]
model : GlModel
gl_grid : GlGrid
gl_axes : GlAxes
gui : Gui
guip : GuiParametersGlobal
win_width : int
win_height : int
action : Action
impl : GlfwRenderer
fps : int
time : float
time_acum : float