OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::GUI::Mouse3DController::State::QueueItem Struct Reference

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

Public Member Functions

bool is_translation () const
bool is_rotation () const
bool is_buttons () const

Static Public Member Functions

static QueueItem translation (const Vec3d &translation)
static QueueItem rotation (const Vec3d &rotation)
static QueueItem buttons (unsigned int buttons)

Public Attributes

Vec3d vector
unsigned int type_or_buttons

Static Public Attributes

static constexpr unsigned int TranslationType = std::numeric_limits<unsigned int>::max()
static constexpr unsigned int RotationType = TranslationType - 1

Detailed Description

Member Function Documentation

◆ buttons()

QueueItem Slic3r::GUI::Mouse3DController::State::QueueItem::buttons ( unsigned int buttons)
inlinestatic
86{ QueueItem out; out.type_or_buttons = buttons; return out; }
static QueueItem buttons(unsigned int buttons)
Definition Mouse3DController.hpp:86

References buttons(), and type_or_buttons.

Referenced by Slic3r::GUI::Mouse3DController::State::append_button(), and buttons().

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

◆ is_buttons()

bool Slic3r::GUI::Mouse3DController::State::QueueItem::is_buttons ( ) const
inline
90{ return ! this->is_translation() && ! this->is_rotation(); }
bool is_rotation() const
Definition Mouse3DController.hpp:89
bool is_translation() const
Definition Mouse3DController.hpp:88

References is_rotation(), and is_translation().

Here is the call graph for this function:

◆ is_rotation()

bool Slic3r::GUI::Mouse3DController::State::QueueItem::is_rotation ( ) const
inline
89{ return this->type_or_buttons == RotationType; }
static constexpr unsigned int RotationType
Definition Mouse3DController.hpp:96
unsigned int type_or_buttons
Definition Mouse3DController.hpp:93

References RotationType, and type_or_buttons.

Referenced by is_buttons().

Here is the caller graph for this function:

◆ is_translation()

bool Slic3r::GUI::Mouse3DController::State::QueueItem::is_translation ( ) const
inline
88{ return this->type_or_buttons == TranslationType; }
static constexpr unsigned int TranslationType
Definition Mouse3DController.hpp:95

References TranslationType, and type_or_buttons.

Referenced by is_buttons().

Here is the caller graph for this function:

◆ rotation()

QueueItem Slic3r::GUI::Mouse3DController::State::QueueItem::rotation ( const Vec3d & rotation)
inlinestatic
85{ QueueItem out; out.vector = rotation; out.type_or_buttons = RotationType; return out; }
static QueueItem rotation(const Vec3d &rotation)
Definition Mouse3DController.hpp:85

References rotation(), RotationType, type_or_buttons, and vector.

Referenced by Slic3r::GUI::Mouse3DController::State::append_rotation(), and rotation().

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

◆ translation()

QueueItem Slic3r::GUI::Mouse3DController::State::QueueItem::translation ( const Vec3d & translation)
inlinestatic
84{ QueueItem out; out.vector = translation; out.type_or_buttons = TranslationType; return out; }
static QueueItem translation(const Vec3d &translation)
Definition Mouse3DController.hpp:84

References translation(), TranslationType, type_or_buttons, and vector.

Referenced by Slic3r::GUI::Mouse3DController::State::append_translation(), and translation().

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

Member Data Documentation

◆ RotationType

unsigned int Slic3r::GUI::Mouse3DController::State::QueueItem::RotationType = TranslationType - 1
staticconstexpr

◆ TranslationType

unsigned int Slic3r::GUI::Mouse3DController::State::QueueItem::TranslationType = std::numeric_limits<unsigned int>::max()
staticconstexpr

◆ type_or_buttons

unsigned int Slic3r::GUI::Mouse3DController::State::QueueItem::type_or_buttons

◆ vector

Vec3d Slic3r::GUI::Mouse3DController::State::QueueItem::vector

Referenced by rotation(), and translation().


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