Skip to content

Class GLWidget

ClassList > GLWidget

Inherits the following classes: QOpenGLWidget, QOpenGLFunctions

Public Types

Type Name
enum AnimType
enum PickAction
typedef std::function< void(const std::optional< PointPickResult > &)> PointPickCallback

Public Functions

Type Name
GLWidget (QWidget * parent=nullptr)
void add_layer (std::shared_ptr< Layer > layer, bool auto_zoom=true)
float ambient_light () const
int anim_type () const
float camera_light_azimuth_deg () const
float camera_light_elevation_deg () const
float diffuse_light () const
bool is_anim_active () const
std::vector< std::shared_ptr< Layer > > layers () const
double orbit_period () const
float point_ambient_light () const
const std::string & reference_crs_wkt () const
void refresh_point_cloud_style ()
void remove_layer (Layer * layer)
void restart_render ()
void set_anim_type (int t)
void set_camera_light_angles (float azimuth_deg, float elevation_deg)
void set_layer_visible (Layer * layer, bool visible)
void set_lighting_strength (float ambient_light, float diffuse_light)
void set_load_only_mode (bool load_only)
void set_orbit_period (double secs)
void set_point_ambient_light (float point_ambient_light)
void set_point_pick_callback (PointPickCallback callback)
void set_selected_point (const std::optional< PointPickResult > & pick, bool repaint=true)
void set_wobble_amplitude (double deg)
void set_wobble_period (double secs)
void start_animation (AnimType type)
void start_bench_orbit (double duration_seconds=10.0)
void stop_animation ()
double wobble_amplitude () const
double wobble_period () const
void zoom_to_all_layers ()
void zoom_to_layer (const Layer * layer)
~GLWidget ()

Protected Functions

Type Name
void begin_camera_interaction ()
void initializeGL () override
void keyPressEvent (QKeyEvent * event) override
void leaveEvent (QEvent * event) override
QSize minimumSizeHint () override const
void mouseMoveEvent (QMouseEvent * event) override
void mousePressEvent (QMouseEvent * event) override
void mouseReleaseEvent (QMouseEvent * event) override
void note_camera_motion ()
void paintGL () override
void resizeGL (int w, int h) override
void schedule_camera_idle ()
void showEvent (QShowEvent * event) override
QSize sizeHint () override const
void wheelEvent (QWheelEvent * event) override

Public Types Documentation

enum AnimType

enum GLWidget::AnimType {
    None,
    Orbit,
    Wobble
};

enum PickAction

enum GLWidget::PickAction {
    None,
    PanToPoint,
    LookAtPoint
};

typedef PointPickCallback

using GLWidget::PointPickCallback =  std::function<void(const std::optional<PointPickResult>&)>;

Public Functions Documentation

function GLWidget

GLWidget::GLWidget (
    QWidget * parent=nullptr
) 

function add_layer

inline void GLWidget::add_layer (
    std::shared_ptr< Layer > layer,
    bool auto_zoom=true
) 

function ambient_light

inline float GLWidget::ambient_light () const

function anim_type

inline int GLWidget::anim_type () const

function camera_light_azimuth_deg

inline float GLWidget::camera_light_azimuth_deg () const

function camera_light_elevation_deg

inline float GLWidget::camera_light_elevation_deg () const

function diffuse_light

inline float GLWidget::diffuse_light () const

function is_anim_active

inline bool GLWidget::is_anim_active () const

function layers

inline std::vector< std::shared_ptr< Layer > > GLWidget::layers () const

function orbit_period

inline double GLWidget::orbit_period () const

function point_ambient_light

inline float GLWidget::point_ambient_light () const

function reference_crs_wkt

inline const std::string & GLWidget::reference_crs_wkt () const

function refresh_point_cloud_style

void GLWidget::refresh_point_cloud_style () 

function remove_layer

void GLWidget::remove_layer (
    Layer * layer
) 

function restart_render

void GLWidget::restart_render () 

function set_anim_type

void GLWidget::set_anim_type (
    int t
) 

function set_camera_light_angles

void GLWidget::set_camera_light_angles (
    float azimuth_deg,
    float elevation_deg
) 

function set_layer_visible

inline void GLWidget::set_layer_visible (
    Layer * layer,
    bool visible
) 

function set_lighting_strength

void GLWidget::set_lighting_strength (
    float ambient_light,
    float diffuse_light
) 

function set_load_only_mode

inline void GLWidget::set_load_only_mode (
    bool load_only
) 

function set_orbit_period

inline void GLWidget::set_orbit_period (
    double secs
) 

function set_point_ambient_light

void GLWidget::set_point_ambient_light (
    float point_ambient_light
) 

function set_point_pick_callback

inline void GLWidget::set_point_pick_callback (
    PointPickCallback callback
) 

function set_selected_point

void GLWidget::set_selected_point (
    const std::optional< PointPickResult > & pick,
    bool repaint=true
) 

function set_wobble_amplitude

inline void GLWidget::set_wobble_amplitude (
    double deg
) 

function set_wobble_period

inline void GLWidget::set_wobble_period (
    double secs
) 

function start_animation

void GLWidget::start_animation (
    AnimType type
) 

function start_bench_orbit

void GLWidget::start_bench_orbit (
    double duration_seconds=10.0
) 

function stop_animation

void GLWidget::stop_animation () 

function wobble_amplitude

inline double GLWidget::wobble_amplitude () const

function wobble_period

inline double GLWidget::wobble_period () const

function zoom_to_all_layers

inline void GLWidget::zoom_to_all_layers () 

function zoom_to_layer

inline void GLWidget::zoom_to_layer (
    const Layer * layer
) 

function ~GLWidget

GLWidget::~GLWidget () 

Protected Functions Documentation

function begin_camera_interaction

void GLWidget::begin_camera_interaction () 

function initializeGL

void GLWidget::initializeGL () override

function keyPressEvent

void GLWidget::keyPressEvent (
    QKeyEvent * event
) override

function leaveEvent

void GLWidget::leaveEvent (
    QEvent * event
) override

function minimumSizeHint

QSize GLWidget::minimumSizeHint () override const

function mouseMoveEvent

void GLWidget::mouseMoveEvent (
    QMouseEvent * event
) override

function mousePressEvent

void GLWidget::mousePressEvent (
    QMouseEvent * event
) override

function mouseReleaseEvent

void GLWidget::mouseReleaseEvent (
    QMouseEvent * event
) override

function note_camera_motion

void GLWidget::note_camera_motion () 

function paintGL

void GLWidget::paintGL () override

function resizeGL

void GLWidget::resizeGL (
    int w,
    int h
) override

function schedule_camera_idle

void GLWidget::schedule_camera_idle () 

function showEvent

void GLWidget::showEvent (
    QShowEvent * event
) override

function sizeHint

QSize GLWidget::sizeHint () override const

function wheelEvent

void GLWidget::wheelEvent (
    QWheelEvent * event
) override


The documentation for this class was generated from the following file /home/runner/work/Blaze/Blaze/src/gui/gl_widget.hpp