iMSTK
Interactive Medical Simulation Toolkit
Public Member Functions | Protected Member Functions | List of all members
imstk::ExtractEdges Class Reference

This filter extracts the edges of a SurfaceMesh producing a LineMesh. More...

#include <imstkExtractEdges.h>

Inheritance diagram for imstk::ExtractEdges:
Inheritance graph
[legend]
Collaboration diagram for imstk::ExtractEdges:
Collaboration graph
[legend]

Public Member Functions

std::shared_ptr< LineMeshgetOutputMesh () const
 
void setInputMesh (std::shared_ptr< SurfaceMesh > inputMesh)
 
- Public Member Functions inherited from imstk::GeometryAlgorithm
std::shared_ptr< GeometrygetInput (size_t port=0) const
 Returns input geometry given port, returns nullptr if doesn't exist.
 
std::shared_ptr< GeometrygetOutput (size_t port=0) const
 Returns output geometry given port, returns nullptr if doesn't exist.
 
void setInput (std::shared_ptr< Geometry > inputGeometry, size_t port=0)
 Set the input at the port.
 
void update ()
 Do the actual algorithm.
 

Protected Member Functions

void requestUpdate () override
 Users can implement this for the logic to be run.
 
- Protected Member Functions inherited from imstk::GeometryAlgorithm
void setOutput (std::shared_ptr< Geometry > inputGeometry, size_t port=0)
 Set the output at the port.
 
 imstkGetMacro (NumberOfInputPorts, size_t)
 
 imstkGetMacro (NumberOfOutputPorts, size_t)
 
void setNumberOfInputPorts (size_t numPorts)
 Sets the amount of input ports.
 
void setNumberOfOutputPorts (size_t numPorts)
 Sets the amount of output ports.
 
template<typename T >
void setRequiredInputType (size_t port)
 Declares the type for the port with the given number, also defines that the give port is required for the filter to run correctly.
 
template<typename T >
void setOptionalInputType (size_t port)
 Declares the type for the port with the given number, the data for this port is optional and may be omitted.
 
virtual bool areInputsValid ()
 Check inputs are correct. More...
 

Additional Inherited Members

- Protected Types inherited from imstk::GeometryAlgorithm
using GeometryCheck = std::function< bool(Geometry *)>
 
using TypeCheckContainer = std::unordered_map< size_t, GeometryCheck >
 
- Protected Attributes inherited from imstk::GeometryAlgorithm
std::unordered_map< size_t, GeometryCheck > m_requiredTypeChecks
 
std::unordered_map< size_t, GeometryCheck > m_optionalTypeChecks
 

Detailed Description

This filter extracts the edges of a SurfaceMesh producing a LineMesh.

Definition at line 35 of file imstkExtractEdges.h.


The documentation for this class was generated from the following files: