OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::WipeTower::box_coordinates Struct Reference

#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/GCode/WipeTower.hpp>

Public Member Functions

 box_coordinates (float left, float bottom, float width, float height)
 box_coordinates (const Vec2f &pos, float width, float height)
void translate (const Vec2f &shift)
void translate (const float dx, const float dy)
void expand (const float offset)
void expand (const float offset_x, const float offset_y)

Public Attributes

Vec2f ld
Vec2f lu
Vec2f rd
Vec2f ru

Detailed Description

Constructor & Destructor Documentation

◆ box_coordinates() [1/2]

Slic3r::WipeTower::box_coordinates::box_coordinates ( float left,
float bottom,
float width,
float height )
inline
185 :
186 ld(left , bottom ),
187 lu(left , bottom + height),
188 rd(left + width, bottom ),
189 ru(left + width, bottom + height) {}
float width() const
Definition WipeTower.hpp:315
Vec2f ru
Definition WipeTower.hpp:211
Vec2f ld
Definition WipeTower.hpp:208
Vec2f lu
Definition WipeTower.hpp:209
Vec2f rd
Definition WipeTower.hpp:210

References ld, lu, rd, ru, and Slic3r::WipeTower::width().

Referenced by box_coordinates().

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

◆ box_coordinates() [2/2]

Slic3r::WipeTower::box_coordinates::box_coordinates ( const Vec2f & pos,
float width,
float height )
inline
190: box_coordinates(pos(0), pos(1), width, height) {}
Vec3d pos(const Pt &p)
Definition ReprojectPointsOnMesh.hpp:16
box_coordinates(float left, float bottom, float width, float height)
Definition WipeTower.hpp:185

References box_coordinates(), and Slic3r::WipeTower::width().

Here is the call graph for this function:

Member Function Documentation

◆ expand() [1/2]

void Slic3r::WipeTower::box_coordinates::expand ( const float offset)
inline
196 {
197 ld += Vec2f(- offset, - offset);
198 lu += Vec2f(- offset, offset);
199 rd += Vec2f( offset, - offset);
200 ru += Vec2f( offset, offset);
201 }
Slic3r::Polygons offset(const Slic3r::Polygon &polygon, const float delta, JoinType joinType, double miterLimit)
Definition ClipperUtils.cpp:582
Eigen::Matrix< float, 2, 1, Eigen::DontAlign > Vec2f
Definition Point.hpp:64

References ld, lu, Slic3r::offset(), rd, and ru.

Here is the call graph for this function:

◆ expand() [2/2]

void Slic3r::WipeTower::box_coordinates::expand ( const float offset_x,
const float offset_y )
inline
202 {
203 ld += Vec2f(- offset_x, - offset_y);
204 lu += Vec2f(- offset_x, offset_y);
205 rd += Vec2f( offset_x, - offset_y);
206 ru += Vec2f( offset_x, offset_y);
207 }

References ld, lu, rd, and ru.

◆ translate() [1/2]

void Slic3r::WipeTower::box_coordinates::translate ( const float dx,
const float dy )
inline
195{ translate(Vec2f(dx, dy)); }
void translate(const Vec2f &shift)
Definition WipeTower.hpp:191

References translate().

Referenced by translate().

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

◆ translate() [2/2]

void Slic3r::WipeTower::box_coordinates::translate ( const Vec2f & shift)
inline
191 {
192 ld += shift; lu += shift;
193 rd += shift; ru += shift;
194 }

References ld, lu, rd, and ru.

Referenced by Slic3r::WipeTower2::prime().

Here is the caller graph for this function:

Member Data Documentation

◆ ld

◆ lu

◆ rd

◆ ru


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