OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::sla::Resolution Struct Reference

Type that represents a resolution in pixels. More...

#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/SLA/RasterBase.hpp>

Public Member Functions

 Resolution ()=default
 Resolution (size_t w, size_t h)
size_t pixels () const

Public Attributes

size_t width_px = 0
size_t height_px = 0

Detailed Description

Type that represents a resolution in pixels.

Constructor & Destructor Documentation

◆ Resolution() [1/2]

Slic3r::sla::Resolution::Resolution ( )
default

◆ Resolution() [2/2]

Slic3r::sla::Resolution::Resolution ( size_t w,
size_t h )
inline
44: width_px(w), height_px(h) {}
size_t height_px
Definition RasterBase.hpp:41
size_t width_px
Definition RasterBase.hpp:40

References height_px, and width_px.

Member Function Documentation

◆ pixels()

size_t Slic3r::sla::Resolution::pixels ( ) const
inline
45{ return width_px * height_px; }

References height_px, and width_px.

Member Data Documentation

◆ height_px

◆ width_px


The documentation for this struct was generated from the following file:
  • /home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/SLA/RasterBase.hpp