Skip to content

shapeworks::Groom

High level groom API. More...

#include <Groom.h>

Inherited by shapeworks::QGroom

Public Functions

Name
Groom(ProjectHandle project)
virtual bool run()
Run the grooming.
void set_skip_grooming(bool skip)
Set if grooming steps should be skipped.
void abort()
Set abort as soon as possible.
bool get_aborted()
Return if grooming was aborted.
double compute_landmark_distance(vtkSmartPointer< vtkPoints > one, vtkSmartPointer< vtkPoints > two)
Util to compute square distance between paired landmarks.
vtkSmartPointer< vtkMatrix4x4 > compute_landmark_transform(vtkSmartPointer< vtkPoints > source, vtkSmartPointer< vtkPoints > target)
Util to compute landmark transform.

Protected Functions

Name
virtual void update_progress()
call to be overridden by subclasses

Protected Attributes

Name
tbb::atomic< float > progress_
tbb::atomic< int > total_ops_
tbb::atomic< int > progress_counter_

Detailed Description

class shapeworks::Groom;

High level groom API.

The Groom class operates on a Project. It is used by Studio and other tools to perform Grooming operations.

Public Functions Documentation

function Groom

Groom(
    ProjectHandle project
)

function run

virtual bool run()

Run the grooming.

function set_skip_grooming

void set_skip_grooming(
    bool skip
)

Set if grooming steps should be skipped.

function abort

void abort()

Set abort as soon as possible.

function get_aborted

bool get_aborted()

Return if grooming was aborted.

function compute_landmark_distance

static double compute_landmark_distance(
    vtkSmartPointer< vtkPoints > one,
    vtkSmartPointer< vtkPoints > two
)

Util to compute square distance between paired landmarks.

function compute_landmark_transform

static vtkSmartPointer< vtkMatrix4x4 > compute_landmark_transform(
    vtkSmartPointer< vtkPoints > source,
    vtkSmartPointer< vtkPoints > target
)

Util to compute landmark transform.

Protected Functions Documentation

function update_progress

inline virtual void update_progress()

call to be overridden by subclasses

Reimplemented by: shapeworks::QGroom::update_progress

Protected Attributes Documentation

variable progress_

tbb::atomic< float > progress_ = 0;

variable total_ops_

tbb::atomic< int > total_ops_ = 0;

variable progress_counter_

tbb::atomic< int > progress_counter_ = 0;

Updated on 2022-07-23 at 17:50:03 -0600