ITK  5.4.0
Insight Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | List of all members
itk::TriangleMeshCurvatureCalculator< TInputMesh > Class Template Reference

#include <itkTriangleMeshCurvatureCalculator.h>

Detailed Description

template<typename TInputMesh>
class itk::TriangleMeshCurvatureCalculator< TInputMesh >

Calculator to compute curvature of a triangle mesh. Set the input triangle mesh and the required curvature type first. Default curvature type is Gauss. After computing curvature the result can be obtained using the getter method. It throws exception if the input mesh is not set. The implementation is the same as in VTK.

Definition at line 68 of file itkTriangleMeshCurvatureCalculator.h.

+ Inheritance diagram for itk::TriangleMeshCurvatureCalculator< TInputMesh >:
+ Collaboration diagram for itk::TriangleMeshCurvatureCalculator< TInputMesh >:

Public Types

using CellsContainerConstIterator = typename InputMeshType::CellsContainer::ConstIterator
 
using CellsContainerConstPointer = typename InputMeshType::CellsContainerConstPointer
 
using CellType = typename InputMeshType::CellType
 
using ConstPointer = SmartPointer< const Self >
 
using CurvaturesEnum = TriangleMeshCurvatureCalculatorEnums::Curvatures
 
using DoubleVectorContainer = typename itk::VectorContainer< PointIdentifier, double >
 
using DoubleVectorContainerPointer = typename DoubleVectorContainer::Pointer
 
using InputMeshType = TInputMesh
 
using MeshConstPointer = typename InputMeshType::ConstPointer
 
using MeshPointIdConstIterator = typename InputMeshType::CellTraits::PointIdConstIterator
 
using MeshPointsContainerConstPointer = typename InputMeshType::PointsContainerConstPointer
 
using MeshPointType = typename InputMeshType::PointType
 
using Pointer = SmartPointer< Self >
 
using PointIdentifier = typename InputMeshType::PointIdentifier
 
using Self = TriangleMeshCurvatureCalculator
 
using Superclass = Object
 
using TriangleCellType = itk::TriangleCell< CellType >
 
- Public Types inherited from itk::Object
using ConstPointer = SmartPointer< const Self >
 
using Pointer = SmartPointer< Self >
 
using Self = Object
 
using Superclass = LightObject
 
- Public Types inherited from itk::LightObject
using ConstPointer = SmartPointer< const Self >
 
using Pointer = SmartPointer< Self >
 
using Self = LightObject
 

Public Member Functions

void Compute ()
 
virtual const DoubleVectorContainerGetGaussCurvatureData () const
 
const char * GetNameOfClass () const override
 
void SetCurvatureTypeToGaussian ()
 
virtual void SetTriangleMesh (InputMeshType *_arg)
 
virtual void SetCurvatureType (TriangleMeshCurvatureCalculatorEnums::Curvatures _arg)
 
virtual TriangleMeshCurvatureCalculatorEnums::Curvatures GetCurvatureType () const
 
- Public Member Functions inherited from itk::Object
unsigned long AddObserver (const EventObject &event, Command *)
 
unsigned long AddObserver (const EventObject &event, Command *) const
 
unsigned long AddObserver (const EventObject &event, std::function< void(const EventObject &)> function) const
 
LightObject::Pointer CreateAnother () const override
 
virtual void DebugOff () const
 
virtual void DebugOn () const
 
CommandGetCommand (unsigned long tag)
 
bool GetDebug () const
 
MetaDataDictionaryGetMetaDataDictionary ()
 
const MetaDataDictionaryGetMetaDataDictionary () const
 
virtual ModifiedTimeType GetMTime () const
 
virtual const TimeStampGetTimeStamp () const
 
bool HasObserver (const EventObject &event) const
 
void InvokeEvent (const EventObject &)
 
void InvokeEvent (const EventObject &) const
 
virtual void Modified () const
 
void Register () const override
 
void RemoveAllObservers ()
 
void RemoveObserver (unsigned long tag) const
 
void SetDebug (bool debugFlag) const
 
void SetReferenceCount (int) override
 
void UnRegister () const noexcept override
 
void SetMetaDataDictionary (const MetaDataDictionary &rhs)
 
void SetMetaDataDictionary (MetaDataDictionary &&rrhs)
 
virtual void SetObjectName (std::string _arg)
 
virtual const std::string & GetObjectName () const
 
- Public Member Functions inherited from itk::LightObject
Pointer Clone () const
 
virtual void Delete ()
 
virtual int GetReferenceCount () const
 
void Print (std::ostream &os, Indent indent=0) const
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from itk::Object
static bool GetGlobalWarningDisplay ()
 
static void GlobalWarningDisplayOff ()
 
static void GlobalWarningDisplayOn ()
 
static Pointer New ()
 
static void SetGlobalWarningDisplay (bool val)
 
- Static Public Member Functions inherited from itk::LightObject
static void BreakOnError ()
 
static Pointer New ()
 

Protected Member Functions

void ComputeGaussCurvature (const InputMeshType *input)
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
 TriangleMeshCurvatureCalculator ()=default
 
 ~TriangleMeshCurvatureCalculator () override=default
 
- Protected Member Functions inherited from itk::Object
 Object ()
 
bool PrintObservers (std::ostream &os, Indent indent) const
 
virtual void SetTimeStamp (const TimeStamp &timeStamp)
 
 ~Object () override
 
- Protected Member Functions inherited from itk::LightObject
virtual LightObject::Pointer InternalClone () const
 
 LightObject ()
 
virtual void PrintHeader (std::ostream &os, Indent indent) const
 
virtual void PrintTrailer (std::ostream &os, Indent indent) const
 
virtual ~LightObject ()
 

Private Attributes

CurvaturesEnum m_CurvatureType = CurvaturesEnum::GaussCurvature
 
DoubleVectorContainerPointer m_GaussCurvatureData {}
 
MeshConstPointer m_TriangleMesh {}
 

Additional Inherited Members

- Protected Attributes inherited from itk::LightObject
std::atomic< int > m_ReferenceCount {}
 

Member Typedef Documentation

◆ CellsContainerConstIterator

template<typename TInputMesh >
using itk::TriangleMeshCurvatureCalculator< TInputMesh >::CellsContainerConstIterator = typename InputMeshType::CellsContainer::ConstIterator

Definition at line 97 of file itkTriangleMeshCurvatureCalculator.h.

◆ CellsContainerConstPointer

template<typename TInputMesh >
using itk::TriangleMeshCurvatureCalculator< TInputMesh >::CellsContainerConstPointer = typename InputMeshType::CellsContainerConstPointer

Definition at line 96 of file itkTriangleMeshCurvatureCalculator.h.

◆ CellType

template<typename TInputMesh >
using itk::TriangleMeshCurvatureCalculator< TInputMesh >::CellType = typename InputMeshType::CellType

Definition at line 98 of file itkTriangleMeshCurvatureCalculator.h.

◆ ConstPointer

template<typename TInputMesh >
using itk::TriangleMeshCurvatureCalculator< TInputMesh >::ConstPointer = SmartPointer<const Self>

Definition at line 81 of file itkTriangleMeshCurvatureCalculator.h.

◆ CurvaturesEnum

Definition at line 102 of file itkTriangleMeshCurvatureCalculator.h.

◆ DoubleVectorContainer

template<typename TInputMesh >
using itk::TriangleMeshCurvatureCalculator< TInputMesh >::DoubleVectorContainer = typename itk::VectorContainer<PointIdentifier, double>

Definition at line 100 of file itkTriangleMeshCurvatureCalculator.h.

◆ DoubleVectorContainerPointer

template<typename TInputMesh >
using itk::TriangleMeshCurvatureCalculator< TInputMesh >::DoubleVectorContainerPointer = typename DoubleVectorContainer::Pointer

Definition at line 101 of file itkTriangleMeshCurvatureCalculator.h.

◆ InputMeshType

template<typename TInputMesh >
using itk::TriangleMeshCurvatureCalculator< TInputMesh >::InputMeshType = TInputMesh

Convenient type alias for this Calculator.

Definition at line 90 of file itkTriangleMeshCurvatureCalculator.h.

◆ MeshConstPointer

template<typename TInputMesh >
using itk::TriangleMeshCurvatureCalculator< TInputMesh >::MeshConstPointer = typename InputMeshType::ConstPointer

Definition at line 92 of file itkTriangleMeshCurvatureCalculator.h.

◆ MeshPointIdConstIterator

template<typename TInputMesh >
using itk::TriangleMeshCurvatureCalculator< TInputMesh >::MeshPointIdConstIterator = typename InputMeshType::CellTraits::PointIdConstIterator

Definition at line 94 of file itkTriangleMeshCurvatureCalculator.h.

◆ MeshPointsContainerConstPointer

template<typename TInputMesh >
using itk::TriangleMeshCurvatureCalculator< TInputMesh >::MeshPointsContainerConstPointer = typename InputMeshType::PointsContainerConstPointer

Definition at line 95 of file itkTriangleMeshCurvatureCalculator.h.

◆ MeshPointType

template<typename TInputMesh >
using itk::TriangleMeshCurvatureCalculator< TInputMesh >::MeshPointType = typename InputMeshType::PointType

Definition at line 93 of file itkTriangleMeshCurvatureCalculator.h.

◆ Pointer

template<typename TInputMesh >
using itk::TriangleMeshCurvatureCalculator< TInputMesh >::Pointer = SmartPointer<Self>

Smart pointer type alias support.

Definition at line 80 of file itkTriangleMeshCurvatureCalculator.h.

◆ PointIdentifier

template<typename TInputMesh >
using itk::TriangleMeshCurvatureCalculator< TInputMesh >::PointIdentifier = typename InputMeshType::PointIdentifier

Definition at line 91 of file itkTriangleMeshCurvatureCalculator.h.

◆ Self

template<typename TInputMesh >
using itk::TriangleMeshCurvatureCalculator< TInputMesh >::Self = TriangleMeshCurvatureCalculator

Standard class type aliases.

Definition at line 74 of file itkTriangleMeshCurvatureCalculator.h.

◆ Superclass

template<typename TInputMesh >
using itk::TriangleMeshCurvatureCalculator< TInputMesh >::Superclass = Object

Standard "Superclass" type alias.

Definition at line 77 of file itkTriangleMeshCurvatureCalculator.h.

◆ TriangleCellType

template<typename TInputMesh >
using itk::TriangleMeshCurvatureCalculator< TInputMesh >::TriangleCellType = itk::TriangleCell<CellType>

Definition at line 99 of file itkTriangleMeshCurvatureCalculator.h.

Constructor & Destructor Documentation

◆ TriangleMeshCurvatureCalculator()

template<typename TInputMesh >
itk::TriangleMeshCurvatureCalculator< TInputMesh >::TriangleMeshCurvatureCalculator ( )
protecteddefault

◆ ~TriangleMeshCurvatureCalculator()

template<typename TInputMesh >
itk::TriangleMeshCurvatureCalculator< TInputMesh >::~TriangleMeshCurvatureCalculator ( )
overrideprotecteddefault

Member Function Documentation

◆ Compute()

template<typename TInputMesh >
void itk::TriangleMeshCurvatureCalculator< TInputMesh >::Compute ( )

Compute the selected curvature type.

◆ ComputeGaussCurvature()

template<typename TInputMesh >
void itk::TriangleMeshCurvatureCalculator< TInputMesh >::ComputeGaussCurvature ( const InputMeshType input)
protected

Discrete Gauss curvature (K) computation

◆ GetCurvatureType()

template<typename TInputMesh >
virtual TriangleMeshCurvatureCalculatorEnums::Curvatures itk::TriangleMeshCurvatureCalculator< TInputMesh >::GetCurvatureType ( ) const
virtual

Methods specify mode of operation for the calculator.

◆ GetGaussCurvatureData()

template<typename TInputMesh >
virtual const DoubleVectorContainer* itk::TriangleMeshCurvatureCalculator< TInputMesh >::GetGaussCurvatureData ( ) const
virtual

Get Gauss curvature.

◆ GetNameOfClass()

template<typename TInputMesh >
const char* itk::TriangleMeshCurvatureCalculator< TInputMesh >::GetNameOfClass ( ) const
overridevirtual
See also
LightObject::GetNameOfClass()

Reimplemented from itk::Object.

◆ New()

template<typename TInputMesh >
static Pointer itk::TriangleMeshCurvatureCalculator< TInputMesh >::New ( )
static

Method for creation through the object factory.

◆ PrintSelf()

template<typename TInputMesh >
void itk::TriangleMeshCurvatureCalculator< TInputMesh >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
overrideprotectedvirtual

Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from itk::Object.

◆ SetCurvatureType()

template<typename TInputMesh >
virtual void itk::TriangleMeshCurvatureCalculator< TInputMesh >::SetCurvatureType ( TriangleMeshCurvatureCalculatorEnums::Curvatures  _arg)
virtual

Methods specify mode of operation for the calculator.

◆ SetCurvatureTypeToGaussian()

template<typename TInputMesh >
void itk::TriangleMeshCurvatureCalculator< TInputMesh >::SetCurvatureTypeToGaussian ( )
inline

Set the curvature type to Gauss.

Definition at line 117 of file itkTriangleMeshCurvatureCalculator.h.

References itk::TriangleMeshCurvatureCalculatorEnums::GaussCurvature.

◆ SetTriangleMesh()

template<typename TInputMesh >
virtual void itk::TriangleMeshCurvatureCalculator< TInputMesh >::SetTriangleMesh ( InputMeshType _arg)
virtual

Set the input mesh.

Member Data Documentation

◆ m_CurvatureType

template<typename TInputMesh >
CurvaturesEnum itk::TriangleMeshCurvatureCalculator< TInputMesh >::m_CurvatureType = CurvaturesEnum::GaussCurvature
private

Definition at line 138 of file itkTriangleMeshCurvatureCalculator.h.

◆ m_GaussCurvatureData

template<typename TInputMesh >
DoubleVectorContainerPointer itk::TriangleMeshCurvatureCalculator< TInputMesh >::m_GaussCurvatureData {}
private

Definition at line 139 of file itkTriangleMeshCurvatureCalculator.h.

◆ m_TriangleMesh

template<typename TInputMesh >
MeshConstPointer itk::TriangleMeshCurvatureCalculator< TInputMesh >::m_TriangleMesh {}
private

Definition at line 140 of file itkTriangleMeshCurvatureCalculator.h.


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