Skip to content

Applications/shapeworks/SharedCommandData.h

Namespaces

Name
shapeworks
User usage reporting (telemetry)

Classes

Name
struct shapeworks::SharedCommandData

Source code

#pragma once

#include <string>

#include "Image.h"
#include "Mesh.h"
#include "ParticleSystemEvaluation.h"
#include "Shapeworks.h"

namespace shapeworks {

struct SharedCommandData
{
  Image image;
  std::unique_ptr<Mesh> mesh;
  PhysicalRegion region;
  ParticleSystemEvaluation particleSystem;
  Field field;

  bool validImage() const { return image.itk_image_ != nullptr; }
  bool validMesh() const { return mesh != nullptr; }
  bool validParticleSystem() const {return particleSystem.num_samples() >= 1 && particleSystem.num_dims() >= 1; }
};


} // shapeworks

Updated on 2024-07-14 at 17:07:25 +0000