OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::GUI::SceneCache::Key Struct Reference

#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/SceneCache.hpp>

Collaboration diagram for Slic3r::GUI::SceneCache::Key:

Public Member Functions

bool operator== (const Key &other) const

Public Attributes

std::array< unsigned int, 2 > size { { 0, 0 } }
Transform3d view_matrix { Transform3d::Identity() }
Transform3d projection_matrix { Transform3d::Identity() }
std::vector< int > sinking_hover_volume_idxs
std::vector< int > hover_plate_icon_idxs
int gizmo_hover_id { -1 }
bool render_preview { true }

Detailed Description

Member Function Documentation

◆ operator==()

bool Slic3r::GUI::SceneCache::Key::operator== ( const Key & other) const
inline
29 {
30 return size == other.size && render_preview == other.render_preview &&
31 gizmo_hover_id == other.gizmo_hover_id &&
32 sinking_hover_volume_idxs == other.sinking_hover_volume_idxs &&
33 hover_plate_icon_idxs == other.hover_plate_icon_idxs &&
34 view_matrix.isApprox(other.view_matrix) &&
35 projection_matrix.isApprox(other.projection_matrix);
36 }
bool render_preview
Definition SceneCache.hpp:27
Transform3d view_matrix
Definition SceneCache.hpp:21
Transform3d projection_matrix
Definition SceneCache.hpp:22
int gizmo_hover_id
Definition SceneCache.hpp:26
std::array< unsigned int, 2 > size
Definition SceneCache.hpp:20
std::vector< int > hover_plate_icon_idxs
Definition SceneCache.hpp:25
std::vector< int > sinking_hover_volume_idxs
Definition SceneCache.hpp:24

References gizmo_hover_id, hover_plate_icon_idxs, projection_matrix, render_preview, sinking_hover_volume_idxs, size, and view_matrix.

Member Data Documentation

◆ gizmo_hover_id

int Slic3r::GUI::SceneCache::Key::gizmo_hover_id { -1 }

◆ hover_plate_icon_idxs

std::vector<int> Slic3r::GUI::SceneCache::Key::hover_plate_icon_idxs

◆ projection_matrix

Transform3d Slic3r::GUI::SceneCache::Key::projection_matrix { Transform3d::Identity() }
22{ Transform3d::Identity() };

Referenced by Slic3r::GUI::GLCanvas3D::_scene_cache_key(), and operator==().

◆ render_preview

bool Slic3r::GUI::SceneCache::Key::render_preview { true }

◆ sinking_hover_volume_idxs

std::vector<int> Slic3r::GUI::SceneCache::Key::sinking_hover_volume_idxs

◆ size

std::array<unsigned int, 2> Slic3r::GUI::SceneCache::Key::size { { 0, 0 } }

◆ view_matrix

Transform3d Slic3r::GUI::SceneCache::Key::view_matrix { Transform3d::Identity() }
21{ Transform3d::Identity() };

Referenced by Slic3r::GUI::GLCanvas3D::_scene_cache_key(), and operator==().


The documentation for this struct was generated from the following file:
  • /home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/SceneCache.hpp