OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::GUI::GLCanvas3D::Slope Class Reference
Collaboration diagram for Slic3r::GUI::GLCanvas3D::Slope:

Public Member Functions

 Slope (GLVolumeCollection &volumes)
void enable (bool enable)
bool is_enabled () const
void use (bool use)
bool is_used () const
void globalUse (bool use)
bool is_GlobalUsed () const
void set_normal_angle (float angle_in_deg) const

Private Attributes

bool m_enabled { false }
GLVolumeCollection & m_volumes

Detailed Description

Constructor & Destructor Documentation

◆ Slope()

Slic3r::GUI::GLCanvas3D::Slope::Slope ( GLVolumeCollection & volumes)
inline
568: m_volumes(volumes) {}
GLVolumeCollection & m_volumes
Definition GLCanvas3D.hpp:566

References m_volumes.

Member Function Documentation

◆ enable()

void Slic3r::GUI::GLCanvas3D::Slope::enable ( bool enable)
inline
570{ m_enabled = enable; }
void enable(bool enable)
Definition GLCanvas3D.hpp:570
bool m_enabled
Definition GLCanvas3D.hpp:565

References enable(), and m_enabled.

Referenced by enable().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ globalUse()

void Slic3r::GUI::GLCanvas3D::Slope::globalUse ( bool use)
inline
574{ m_volumes.set_slope_GlobalActive(m_enabled ? use : false); }
void use(bool use)
Definition GLCanvas3D.hpp:572

References m_enabled, m_volumes, and use().

Here is the call graph for this function:

◆ is_enabled()

bool Slic3r::GUI::GLCanvas3D::Slope::is_enabled ( ) const
inline
571{ return m_enabled; }

References m_enabled.

◆ is_GlobalUsed()

bool Slic3r::GUI::GLCanvas3D::Slope::is_GlobalUsed ( ) const
inline
575{ return m_volumes.is_slope_GlobalActive(); }

References m_volumes.

◆ is_used()

bool Slic3r::GUI::GLCanvas3D::Slope::is_used ( ) const
inline
573{ return m_volumes.is_slope_active(); }

References m_volumes.

◆ set_normal_angle()

void Slic3r::GUI::GLCanvas3D::Slope::set_normal_angle ( float angle_in_deg) const
inline
576 {
577 m_volumes.set_slope_normal_z(-::cos(Geometry::deg2rad(90.0f - angle_in_deg)));
578 }
constexpr T deg2rad(const T angle)
Definition Geometry.hpp:312

References Slic3r::Geometry::deg2rad(), and m_volumes.

Here is the call graph for this function:

◆ use()

void Slic3r::GUI::GLCanvas3D::Slope::use ( bool use)
inline
572{ m_volumes.set_slope_active(m_enabled ? use : false); }

References m_enabled, m_volumes, and use().

Referenced by globalUse(), and use().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_enabled

bool Slic3r::GUI::GLCanvas3D::Slope::m_enabled { false }
private
565{ false };

Referenced by enable(), globalUse(), is_enabled(), and use().

◆ m_volumes

GLVolumeCollection& Slic3r::GUI::GLCanvas3D::Slope::m_volumes
private

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