OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::FourOptCosts Class Reference
Collaboration diagram for Slic3r::FourOptCosts:

Public Member Functions

 FourOptCosts (const ConnectionCost &c1, const ConnectionCost &c2, const ConnectionCost &c3, const ConnectionCost &c4)
double operator() (size_t piece_idx, bool flipped) const

Private Attributes

const ConnectionCost * costs [4]

Detailed Description

Constructor & Destructor Documentation

◆ FourOptCosts()

Slic3r::FourOptCosts::FourOptCosts ( const ConnectionCost & c1,
const ConnectionCost & c2,
const ConnectionCost & c3,
const ConnectionCost & c4 )
inline
2282: costs { &c1, &c2, &c3, &c4 } {}
const ConnectionCost * costs[4]
Definition ShortestPath.cpp:2287

References costs.

Member Function Documentation

◆ operator()()

double Slic3r::FourOptCosts::operator() ( size_t piece_idx,
bool flipped ) const
inline
2284{ return flipped ? costs[piece_idx]->cost_flipped : costs[piece_idx]->cost; }

References costs.

Member Data Documentation

◆ costs

const ConnectionCost* Slic3r::FourOptCosts::costs[4]
private

Referenced by FourOptCosts(), and operator()().


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