OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
libvgcode::ViewRange Class Reference

#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/libvgcode/src/ViewRange.hpp>

Collaboration diagram for libvgcode::ViewRange:

Public Member Functions

const Interval & get_full () const
void set_full (const Range &other)
void set_full (const Interval &range)
void set_full (Interval::value_type min, Interval::value_type max)
const Interval & get_enabled () const
void set_enabled (const Range &other)
void set_enabled (const Interval &range)
void set_enabled (Interval::value_type min, Interval::value_type max)
const Interval & get_visible () const
void set_visible (const Range &other)
void set_visible (const Interval &range)
void set_visible (Interval::value_type min, Interval::value_type max)
void reset ()

Private Attributes

Range m_full
Range m_enabled
Range m_visible

Detailed Description

Member Function Documentation

◆ get_enabled()

const Interval & libvgcode::ViewRange::get_enabled ( ) const
inline
21{ return m_enabled.get(); }
Range m_enabled
Definition ViewRange.hpp:46

References m_enabled.

◆ get_full()

const Interval & libvgcode::ViewRange::get_full ( ) const
inline
16{ return m_full.get(); }
Range m_full
Definition ViewRange.hpp:39

References m_full.

◆ get_visible()

const Interval & libvgcode::ViewRange::get_visible ( ) const
inline
26{ return m_visible.get(); }
Range m_visible
Definition ViewRange.hpp:52

References m_visible.

◆ reset()

void libvgcode::ViewRange::reset ( )
34{
35 m_full.reset();
36 m_enabled.reset();
37 m_visible.reset();
38}

References m_enabled, m_full, and m_visible.

◆ set_enabled() [1/3]

void libvgcode::ViewRange::set_enabled ( const Interval & range)
inline
23{ set_enabled(range[0], range[1]); }
void set_enabled(const Range &other)
Definition ViewRange.hpp:22

References set_enabled().

Referenced by set_enabled().

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

◆ set_enabled() [2/3]

void libvgcode::ViewRange::set_enabled ( const Range & other)
inline
22{ set_enabled(other.get()); }

References libvgcode::Range::get(), and set_enabled().

Referenced by set_enabled().

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

◆ set_enabled() [3/3]

void libvgcode::ViewRange::set_enabled ( Interval::value_type min,
Interval::value_type max )
20{
21 m_enabled.set(min, max);
22 // force the visible range to stay inside the modified enabled range
23 m_enabled.clamp(m_visible);
24}

References m_enabled, and m_visible.

◆ set_full() [1/3]

void libvgcode::ViewRange::set_full ( const Interval & range)
inline
18{ set_full(range[0], range[1]); }
void set_full(const Range &other)
Definition ViewRange.hpp:17

References set_full().

Referenced by set_full().

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

◆ set_full() [2/3]

void libvgcode::ViewRange::set_full ( const Range & other)
inline
17{ set_full(other.get()); }

References libvgcode::Range::get(), and set_full().

Referenced by set_full().

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

◆ set_full() [3/3]

void libvgcode::ViewRange::set_full ( Interval::value_type min,
Interval::value_type max )
11{
12 m_full.set(min, max);
13 // force the enabled range to stay inside the modified full range
14 m_full.clamp(m_enabled);
15 // force the visible range to stay inside the modified enabled range
16 m_enabled.clamp(m_visible);
17}

References m_enabled, m_full, and m_visible.

◆ set_visible() [1/3]

void libvgcode::ViewRange::set_visible ( const Interval & range)
inline
28{ set_visible(range[0], range[1]); }
void set_visible(const Range &other)
Definition ViewRange.hpp:27

References set_visible().

Referenced by set_visible().

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

◆ set_visible() [2/3]

void libvgcode::ViewRange::set_visible ( const Range & other)
inline
27{ set_visible(other.get()); }

References libvgcode::Range::get(), and set_visible().

Referenced by set_visible().

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

◆ set_visible() [3/3]

void libvgcode::ViewRange::set_visible ( Interval::value_type min,
Interval::value_type max )
27{
28 m_visible.set(min, max);
29 // force the visible range to stay inside the enabled range
30 m_enabled.clamp(m_visible);
31}

References m_enabled, and m_visible.

Member Data Documentation

◆ m_enabled

Range libvgcode::ViewRange::m_enabled
private

◆ m_full

Range libvgcode::ViewRange::m_full
private

Referenced by get_full(), reset(), and set_full().

◆ m_visible

Range libvgcode::ViewRange::m_visible
private

The documentation for this class was generated from the following files:
  • /home/runner/work/OrcaSlicer/OrcaSlicer/src/libvgcode/src/ViewRange.hpp
  • /home/runner/work/OrcaSlicer/OrcaSlicer/src/libvgcode/src/ViewRange.cpp