Skip to content

Studio/Analysis/ShapeEvaluationJob.h

Namespaces

Name
shapeworks
User usage reporting (telemetry)

Classes

Name
class shapeworks::ShapeEvaluationJob
The ShapeEvaluationJob class is a worker class that computes shape evaluation metrics of compactness, specificity, and generalization. It runs asynchronously using the Job and Worker interfaces.

Functions

Name
Q_DECLARE_METATYPE(Eigen::VectorXd )
Q_DECLARE_METATYPE(shapeworks::ShapeEvaluationJob::JobType )

Functions Documentation

function Q_DECLARE_METATYPE

cpp Q_DECLARE_METATYPE( Eigen::VectorXd )

function Q_DECLARE_METATYPE

cpp Q_DECLARE_METATYPE( shapeworks::ShapeEvaluationJob::JobType )

Source code

```cpp

pragma once

include

include

include

include

namespace shapeworks {

class Session;

class ShapeEvaluationJob : public Job { Q_OBJECT public: enum class JobType { CompactnessType, SpecificityType, GeneralizationType };

ShapeEvaluationJob(JobType job_type, ParticleShapeStatistics stats, QSharedPointer session);

void run() override;

QString name() override;

Q_SIGNALS:

void report_progress(shapeworks::ShapeEvaluationJob::JobType job_type, float progress); void result_ready(shapeworks::ShapeEvaluationJob::JobType job_type, Eigen::VectorXd data);

private: void receive_progress(float progress); void prep_meshes();

JobType job_type_; ParticleShapeStatistics stats_; QSharedPointer session_; }; } // namespace shapeworks

Q_DECLARE_METATYPE(Eigen::VectorXd); Q_DECLARE_METATYPE(shapeworks::ShapeEvaluationJob::JobType); ```


Updated on 2026-03-31 at 16:02:11 +0000