iMSTK
Interactive Medical Simulation Toolkit
imstkSurfaceMeshFlyingEdges.h
1 /*
2 ** This file is part of the Interactive Medical Simulation Toolkit (iMSTK)
3 ** iMSTK is distributed under the Apache License, Version 2.0.
4 ** See accompanying NOTICE for details.
5 */
6 
7 #pragma once
8 
9 #include "imstkGeometryAlgorithm.h"
10 
11 namespace imstk
12 {
13 class ImageData;
14 class SurfaceMesh;
15 
22 {
23 public:
25  ~SurfaceMeshFlyingEdges() override = default;
26 
27 public:
31  void setInputImage(std::shared_ptr<ImageData> inputImage);
32 
33  std::shared_ptr<SurfaceMesh> getOutputMesh() const;
34 
38  imstkSetMacro(IsoValue, double);
39  imstkGetMacro(IsoValue, double);
41 
42 protected:
43  void requestUpdate() override;
44 
45 private:
46  double m_IsoValue = 0.0;
47 };
48 } // namespace imstk
imstkSetMacro(IsoValue, double)
Get the value at which the surface should be produced.
Compound Geometry.
This filter extracts a single isocontour from an imstkImageData.
Abstract base class for geometry algorithms. GeometryAlgorithms take N input geometries and produce N...
void setInputImage(std::shared_ptr< ImageData > inputImage)
Required input, port 0.
void requestUpdate() override
Users can implement this for the logic to be run.