shapeworks::QMeshWarper
Wraps MeshWarper as a QObject.
#include <QMeshWarper.h>
Inherits from QObject, shapeworks::MeshWarper
Public Signals
Name | |
---|---|
void | progress() |
Public Functions
Name | |
---|---|
QMeshWarper(QObject * parent =nullptr) | |
float | get_progress() |
Protected Functions
Name | |
---|---|
virtual void | update_progress(float p) override For overriding to handle progress updates. |
Additional inherited members
Public Functions inherited from shapeworks::MeshWarper
Name | |
---|---|
void | set_reference_mesh(vtkSmartPointer< vtkPolyData > reference_mesh, const Eigen::MatrixXd & reference_particles, const Eigen::MatrixXd & landmarks ={}) Set the reference mesh and particles. |
bool | generate_warp() Generate warp, return true on success. |
bool | get_warp_available() Return if the warp is available. |
bool | is_contour() const |
vtkSmartPointer< vtkPolyData > | build_mesh(const Eigen::MatrixXd & particles) Build a mesh for a given set of particles. |
Eigen::MatrixXd | extract_landmarks(vtkSmartPointer< vtkPolyData > warped_mesh) Return the landmarks (matrix [Nx3]) from the warped builded mesh. |
bool | is_contour() Return if set as a contour. |
std::map< int, int > | get_landmarks_map() const Return the map of landmarks id (Key) to vertice index (Value) |
std::vector< int > | get_good_particle_indices() const Return the indexes of good particles (those that really control the warping) |
const Eigen::MatrixXd & | get_warp_matrix() const Return the warp matrix. |
bool | has_bad_particles() const Return true if warping has removed any bad particle(s) |
vtkSmartPointer< vtkPolyData > | get_reference_mesh() Return the reference mesh which has been cleaned and vertices added. |
const Eigen::MatrixXd & | get_reference_particles() const Return the reference particles. |
vtkSmartPointer< vtkPolyData > | prep_mesh(vtkSmartPointer< vtkPolyData > mesh) Prep incoming mesh. |
Public Signals Documentation
signal progress
void progress()
Public Functions Documentation
function QMeshWarper
QMeshWarper(
QObject * parent =nullptr
)
function get_progress
float get_progress()
Protected Functions Documentation
function update_progress
virtual void update_progress(
float p
) override
For overriding to handle progress updates.
Reimplements: shapeworks::MeshWarper::update_progress
Updated on 2024-11-11 at 19:51:46 +0000