ClassList > GLWidget
Inherits the following classes: QOpenGLWidget, QOpenGLFunctions
Public Types
Public Functions
Protected Functions
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
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
)
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