OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::GUI::GLGizmoTextureDisplacement::IslandViewFollow Struct Reference

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

Public Member Functions

int step (bool shown_now, int view, bool debug_open)
void picked (int view)

Public Attributes

bool shown = false
bool switched = false
bool keep_normal = false

Detailed Description

Member Function Documentation

◆ picked()

void Slic3r::GUI::GLGizmoTextureDisplacement::IslandViewFollow::picked ( int view)
inline
261 {
262 switched = false;
263 keep_normal = shown && view == 0;
264 }
bool switched
Definition GLGizmoTextureDisplacement.hpp:253
bool keep_normal
Definition GLGizmoTextureDisplacement.hpp:254
bool shown
Definition GLGizmoTextureDisplacement.hpp:252

References keep_normal, shown, and switched.

◆ step()

int Slic3r::GUI::GLGizmoTextureDisplacement::IslandViewFollow::step ( bool shown_now,
int view,
bool debug_open )
2872{
2873 shown = shown_now;
2874 if (!shown) {
2875 // The view is back to Normal already if a debug stage took it, and Normal applied over a stage would
2876 // queue a preview job that replaces the stage being inspected.
2877 const bool restore = switched && view == 1;
2878 switched = keep_normal = false;
2879 return restore ? 0 : -1;
2880 }
2881 if (view != 0 || keep_normal || debug_open)
2882 return -1;
2883 switched = true;
2884 return 1;
2885}

References keep_normal, shown, and switched.

Member Data Documentation

◆ keep_normal

bool Slic3r::GUI::GLGizmoTextureDisplacement::IslandViewFollow::keep_normal = false

Referenced by picked(), and step().

◆ shown

bool Slic3r::GUI::GLGizmoTextureDisplacement::IslandViewFollow::shown = false

Referenced by picked(), and step().

◆ switched

bool Slic3r::GUI::GLGizmoTextureDisplacement::IslandViewFollow::switched = false

Referenced by picked(), and step().


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