ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itk::WasmMesh< TMesh > Class Template Reference

#include <itkWasmMesh.h>

Detailed Description

template<typename TMesh>
class itk::WasmMesh< TMesh >

JSON representation for an itk::Mesh.

JSON representation for an itk::Mesh for interfacing across programming languages and runtimes.

Point, CellBuffer, PointData, and CellData binary array buffer's are stored as strings with memory addresses or paths on disks or a virtual filesystem.

  • 0: Point buffer
  • 1: Cell buffer
  • 2: Point data buffer
  • 2: Cell data buffer

Definition at line 44 of file itkWasmMesh.h.

+ Inheritance diagram for itk::WasmMesh< TMesh >:
+ Collaboration diagram for itk::WasmMesh< TMesh >:

Public Types

using CellBufferType = typename MeshType::CellsVectorContainer
 
using CellIdentifier = typename MeshType::CellIdentifier
 
using ConstPointer = SmartPointer<const Self>
 
using MeshType = TMesh
 
using Pointer = SmartPointer<Self>
 
using PointIdentifier = typename MeshType::PointIdentifier
 
using Self = WasmMesh
 
using Superclass = WasmDataObject
 
- Public Types inherited from itk::WasmDataObject
using ConstPointer = SmartPointer<const Self>
 
using Pointer = SmartPointer<Self>
 
using Self = WasmDataObject
 
using Superclass = DataObject
 
- Public Types inherited from itk::DataObject
using ConstPointer = SmartPointer<const Self>
 
using DataObjectIdentifierType = std::string
 
using DataObjectPointerArraySizeType = std::vector<Pointer>::size_type
 
using Pointer = SmartPointer<Self>
 
using Self = DataObject
 
using Superclass = Object
 
- 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

virtual::itk::LightObject::Pointer CreateAnother () const
 
const CellBufferType * GetCellBuffer () const
 
const MeshType * GetMesh () const
 
virtual const char * GetNameOfClass () const
 
void SetMesh (const MeshType *mesh)
 
- Public Member Functions inherited from itk::WasmDataObject
virtual const DataObject * GetDataObject () const
 
virtual const std::string & GetJSON () const
 
virtual void SetDataObject (DataObject *_arg)
 
virtual void SetJSON (const char *_arg)
 
- Public Member Functions inherited from itk::DataObject
virtual void CopyInformation (const DataObject *)
 
virtual void DataHasBeenGenerated ()
 
void DisconnectPipeline ()
 
bool GetDataReleased () const
 
virtual const bool & GetReleaseDataFlag () const
 
SmartPointer< ProcessObject > GetSource () const
 
DataObjectPointerArraySizeType GetSourceOutputIndex () const
 
const DataObjectIdentifierType & GetSourceOutputName () const
 
virtual ModifiedTimeType GetUpdateMTime () const
 
virtual void Graft (const DataObject *)
 
virtual void Initialize ()
 
virtual void PrepareForNewData ()
 
virtual void PropagateRequestedRegion ()
 
void ReleaseData ()
 
virtual void ReleaseDataFlagOff ()
 
virtual void ReleaseDataFlagOn ()
 
virtual bool RequestedRegionIsOutsideOfTheBufferedRegion ()
 
virtual void ResetPipeline ()
 
void SetReleaseDataFlag (bool flag)
 
virtual void SetRequestedRegion (const DataObject *)
 
virtual void SetRequestedRegionToLargestPossibleRegion ()
 
bool ShouldIReleaseData () const
 
virtual void Update ()
 
virtual void UpdateOutputData ()
 
virtual void UpdateOutputInformation ()
 
void UpdateSource () const
 
virtual bool VerifyRequestedRegion ()
 
void SetPipelineMTime (ModifiedTimeType time)
 
virtual const ModifiedTimeType & GetPipelineMTime () const
 
virtual void SetRealTimeStamp (RealTimeStamp _arg)
 
virtual const RealTimeStamp & GetRealTimeStamp () const
 
- Public Member Functions inherited from itk::Object
unsigned long AddObserver (const EventObject &event, Command *cmd) const
 
unsigned long AddObserver (const EventObject &event, std::function< void(const EventObject &)> function) const
 
virtual void DebugOff () const
 
virtual void DebugOn () const
 
Command * GetCommand (unsigned long tag)
 
bool GetDebug () const
 
MetaDataDictionary & GetMetaDataDictionary ()
 
const MetaDataDictionary & GetMetaDataDictionary () const
 
virtual ModifiedTimeType GetMTime () const
 
virtual const TimeStamp & GetTimeStamp () 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::WasmDataObject
static Pointer New ()
 
- Static Public Member Functions inherited from itk::DataObject
static bool GetGlobalReleaseDataFlag ()
 
static void GlobalReleaseDataFlagOff ()
 
static void GlobalReleaseDataFlagOn ()
 
static Pointer New ()
 
static void SetGlobalReleaseDataFlag (bool val)
 
- 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

 WasmMesh ()
 
 ~WasmMesh () override=default
 
- Protected Member Functions inherited from itk::WasmDataObject
void PrintSelf (std::ostream &os, Indent indent) const override
 
 WasmDataObject ()=default
 
 ~WasmDataObject () override=default
 
- Protected Member Functions inherited from itk::DataObject
 DataObject ()
 
virtual void PropagateResetPipeline ()
 
 ~DataObject () override
 
- 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 ()
 

Protected Attributes

CellBufferType::Pointer m_CellBuffer
 
- Protected Attributes inherited from itk::WasmDataObject
DataObject::ConstPointer m_DataObject
 
std::string m_JSON
 
- Protected Attributes inherited from itk::LightObject
std::atomic< int > m_ReferenceCount {}
 

Member Typedef Documentation

◆ CellBufferType

template<typename TMesh>
using itk::WasmMesh< TMesh >::CellBufferType = typename MeshType::CellsVectorContainer

Definition at line 63 of file itkWasmMesh.h.

◆ CellIdentifier

template<typename TMesh>
using itk::WasmMesh< TMesh >::CellIdentifier = typename MeshType::CellIdentifier

Definition at line 62 of file itkWasmMesh.h.

◆ ConstPointer

template<typename TMesh>
using itk::WasmMesh< TMesh >::ConstPointer = SmartPointer<const Self>

Definition at line 53 of file itkWasmMesh.h.

◆ MeshType

template<typename TMesh>
using itk::WasmMesh< TMesh >::MeshType = TMesh

Definition at line 59 of file itkWasmMesh.h.

◆ Pointer

template<typename TMesh>
using itk::WasmMesh< TMesh >::Pointer = SmartPointer<Self>

Definition at line 52 of file itkWasmMesh.h.

◆ PointIdentifier

template<typename TMesh>
using itk::WasmMesh< TMesh >::PointIdentifier = typename MeshType::PointIdentifier

Definition at line 61 of file itkWasmMesh.h.

◆ Self

template<typename TMesh>
using itk::WasmMesh< TMesh >::Self = WasmMesh

Standard class type aliases.

Definition at line 50 of file itkWasmMesh.h.

◆ Superclass

template<typename TMesh>
using itk::WasmMesh< TMesh >::Superclass = WasmDataObject

Definition at line 51 of file itkWasmMesh.h.

Constructor & Destructor Documentation

◆ WasmMesh()

template<typename TMesh>
itk::WasmMesh< TMesh >::WasmMesh ( )
inlineprotected

Definition at line 81 of file itkWasmMesh.h.

◆ ~WasmMesh()

template<typename TMesh>
itk::WasmMesh< TMesh >::~WasmMesh ( )
overrideprotecteddefault

Member Function Documentation

◆ CreateAnother()

template<typename TMesh>
virtual::itk::LightObject::Pointer itk::WasmMesh< TMesh >::CreateAnother ( ) const
virtual

Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.

Reimplemented from itk::WasmDataObject.

◆ GetCellBuffer()

template<typename TMesh>
const CellBufferType * itk::WasmMesh< TMesh >::GetCellBuffer ( ) const
inline

Definition at line 75 of file itkWasmMesh.h.

◆ GetMesh()

template<typename TMesh>
const MeshType * itk::WasmMesh< TMesh >::GetMesh ( ) const
inline

Definition at line 69 of file itkWasmMesh.h.

◆ GetNameOfClass()

template<typename TMesh>
virtual const char * itk::WasmMesh< TMesh >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from itk::WasmDataObject.

◆ New()

template<typename TMesh>
static Pointer itk::WasmMesh< TMesh >::New ( )
static

◆ SetMesh()

template<typename TMesh>
void itk::WasmMesh< TMesh >::SetMesh ( const MeshType * mesh)

Member Data Documentation

◆ m_CellBuffer

template<typename TMesh>
CellBufferType::Pointer itk::WasmMesh< TMesh >::m_CellBuffer
protected

Definition at line 84 of file itkWasmMesh.h.


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