OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::GUI::GLGizmoBrimEars::CacheEntry Class Reference
Collaboration diagram for Slic3r::GUI::GLGizmoBrimEars::CacheEntry:

Public Member Functions

 CacheEntry ()
 CacheEntry (const BrimPoint &point, bool sel=false, const Vec3f &norm=Vec3f(0, 0, 1), bool hover=false, bool error=false)
bool operator== (const CacheEntry &rhs) const
bool operator!= (const CacheEntry &rhs) const
bool pos_is_zero ()
void set_empty ()
template<class Archive>
void serialize (Archive &ar)

Public Attributes

BrimPoint brim_point
bool selected
bool is_hover
bool is_error
Vec3f normal

Detailed Description

Constructor & Destructor Documentation

◆ CacheEntry() [1/2]

Slic3r::GUI::GLGizmoBrimEars::CacheEntry::CacheEntry ( )
inline
47 :
48 brim_point(BrimPoint()),
49 selected(false),
50 normal(Vec3f(0, 0, 1)),
51 is_hover(false),
52 is_error(false)
53 {}
bool selected
Definition GLGizmoBrimEars.hpp:80
bool is_error
Definition GLGizmoBrimEars.hpp:82
BrimPoint brim_point
Definition GLGizmoBrimEars.hpp:79
Vec3f normal
Definition GLGizmoBrimEars.hpp:83
bool is_hover
Definition GLGizmoBrimEars.hpp:81
Eigen::Matrix< float, 3, 1, Eigen::DontAlign > Vec3f
Definition Point.hpp:65

References brim_point, is_error, is_hover, normal, and selected.

Referenced by operator!=(), and operator==().

Here is the caller graph for this function:

◆ CacheEntry() [2/2]

Slic3r::GUI::GLGizmoBrimEars::CacheEntry::CacheEntry ( const BrimPoint & point,
bool sel = false,
const Vec3f & norm = Vec3f(0, 0, 1),
bool hover = false,
bool error = false )
inline
56 : brim_point(point), selected(sel), normal(norm), is_hover(hover), is_error(error)
57 {}

References brim_point, is_error, is_hover, normal, and selected.

Member Function Documentation

◆ operator!=()

bool Slic3r::GUI::GLGizmoBrimEars::CacheEntry::operator!= ( const CacheEntry & rhs) const
inline
63 {
64 return ! ((*this) == rhs);
65 }

References CacheEntry().

Here is the call graph for this function:

◆ operator==()

bool Slic3r::GUI::GLGizmoBrimEars::CacheEntry::operator== ( const CacheEntry & rhs) const
inline
59 {
60 return (brim_point == rhs.brim_point);
61 }

References CacheEntry(), and brim_point.

Here is the call graph for this function:

◆ pos_is_zero()

bool Slic3r::GUI::GLGizmoBrimEars::CacheEntry::pos_is_zero ( )
inline
67 {
68 return brim_point.pos.isZero();
69 }

References brim_point.

◆ serialize()

template<class Archive>
void Slic3r::GUI::GLGizmoBrimEars::CacheEntry::serialize ( Archive & ar)
inline
87 {
89 }

References brim_point, normal, and selected.

◆ set_empty()

void Slic3r::GUI::GLGizmoBrimEars::CacheEntry::set_empty ( )
inline
71 {
72 brim_point = BrimPoint();
73 selected = false;
74 normal.setZero();
75 is_hover = false;
76 is_error = false;
77 }

References brim_point, is_error, is_hover, normal, and selected.

Member Data Documentation

◆ brim_point

BrimPoint Slic3r::GUI::GLGizmoBrimEars::CacheEntry::brim_point

◆ is_error

bool Slic3r::GUI::GLGizmoBrimEars::CacheEntry::is_error

Referenced by CacheEntry(), CacheEntry(), and set_empty().

◆ is_hover

bool Slic3r::GUI::GLGizmoBrimEars::CacheEntry::is_hover

Referenced by CacheEntry(), CacheEntry(), and set_empty().

◆ normal

Vec3f Slic3r::GUI::GLGizmoBrimEars::CacheEntry::normal

◆ selected

bool Slic3r::GUI::GLGizmoBrimEars::CacheEntry::selected

The documentation for this class was generated from the following file: