OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::GUI::Selection::VolumeCache::TransformCache Struct Reference
Collaboration diagram for Slic3r::GUI::Selection::VolumeCache::TransformCache:

Public Member Functions

 TransformCache ()
 TransformCache (const Geometry::Transformation &transform)

Public Attributes

Vec3d position
Transform3d rotation_matrix
Transform3d scale_matrix
Transform3d mirror_matrix
Geometry::Transformation transform

Detailed Description

Constructor & Destructor Documentation

◆ TransformCache() [1/2]

Slic3r::GUI::Selection::VolumeCache::TransformCache::TransformCache ( )
74 : position(Vec3d::Zero())
75 , rotation_matrix(Transform3d::Identity())
76 , scale_matrix(Transform3d::Identity())
77 , mirror_matrix(Transform3d::Identity())
78{
79}
Vec3d position
Definition Selection.hpp:79
Transform3d mirror_matrix
Definition Selection.hpp:82
Transform3d scale_matrix
Definition Selection.hpp:81
Transform3d rotation_matrix
Definition Selection.hpp:80

References mirror_matrix, position, rotation_matrix, and scale_matrix.

◆ TransformCache() [2/2]

Slic3r::GUI::Selection::VolumeCache::TransformCache::TransformCache ( const Geometry::Transformation & transform)
explicit
82 : position(transform.get_offset())
84{
85 rotation_matrix = transform.get_rotation_matrix();
86 scale_matrix = transform.get_scaling_factor_matrix();
87 mirror_matrix = transform.get_mirror_matrix();
88}
Geometry::Transformation transform
Definition Selection.hpp:84

References mirror_matrix, position, rotation_matrix, scale_matrix, and transform.

Member Data Documentation

◆ mirror_matrix

Transform3d Slic3r::GUI::Selection::VolumeCache::TransformCache::mirror_matrix

Referenced by TransformCache(), and TransformCache().

◆ position

Vec3d Slic3r::GUI::Selection::VolumeCache::TransformCache::position

Referenced by TransformCache(), and TransformCache().

◆ rotation_matrix

Transform3d Slic3r::GUI::Selection::VolumeCache::TransformCache::rotation_matrix

Referenced by TransformCache(), and TransformCache().

◆ scale_matrix

Transform3d Slic3r::GUI::Selection::VolumeCache::TransformCache::scale_matrix

Referenced by TransformCache(), and TransformCache().

◆ transform

Geometry::Transformation Slic3r::GUI::Selection::VolumeCache::TransformCache::transform

Referenced by TransformCache().


The documentation for this struct was generated from the following files:
  • /home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/Selection.hpp
  • /home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/Selection.cpp