@@ -137,8 +137,7 @@ MeshToWasmMeshFilter<TMesh>::PrintSelf(std::ostream & os, Indent indent) const
137137}
138138
139139template <typename TPixel, unsigned int VDimension>
140- MeshToWasmMeshFilter<QuadEdgeMesh<TPixel, VDimension>>
141- ::MeshToWasmMeshFilter ()
140+ MeshToWasmMeshFilter<QuadEdgeMesh<TPixel, VDimension>>::MeshToWasmMeshFilter()
142141{
143142 this ->SetNumberOfRequiredInputs (1 );
144143
@@ -149,42 +148,37 @@ MeshToWasmMeshFilter<QuadEdgeMesh<TPixel, VDimension>>
149148
150149template <typename TPixel, unsigned int VDimension>
151150ProcessObject::DataObjectPointer
152- MeshToWasmMeshFilter<QuadEdgeMesh<TPixel, VDimension>>
153- ::MakeOutput (ProcessObject::DataObjectPointerArraySizeType)
151+ MeshToWasmMeshFilter<QuadEdgeMesh<TPixel, VDimension>>::MakeOutput(ProcessObject::DataObjectPointerArraySizeType)
154152{
155153 return WasmMeshType::New ().GetPointer ();
156154}
157155
158156template <typename TPixel, unsigned int VDimension>
159157ProcessObject::DataObjectPointer
160- MeshToWasmMeshFilter<QuadEdgeMesh<TPixel, VDimension>>
161- ::MakeOutput (const ProcessObject::DataObjectIdentifierType &)
158+ MeshToWasmMeshFilter<QuadEdgeMesh<TPixel, VDimension>>::MakeOutput(const ProcessObject::DataObjectIdentifierType &)
162159{
163160 return WasmMeshType::New ().GetPointer ();
164161}
165162
166163template <typename TPixel, unsigned int VDimension>
167164auto
168- MeshToWasmMeshFilter<QuadEdgeMesh<TPixel, VDimension>>
169- ::GetOutput () -> WasmMeshType *
165+ MeshToWasmMeshFilter<QuadEdgeMesh<TPixel, VDimension>>::GetOutput() -> WasmMeshType *
170166{
171167 // we assume that the first output is of the templated type
172168 return itkDynamicCastInDebugMode<WasmMeshType *>(this ->GetPrimaryOutput ());
173169}
174170
175171template <typename TPixel, unsigned int VDimension>
176172auto
177- MeshToWasmMeshFilter<QuadEdgeMesh<TPixel, VDimension>>
178- ::GetOutput () const -> const WasmMeshType *
173+ MeshToWasmMeshFilter<QuadEdgeMesh<TPixel, VDimension>>::GetOutput() const -> const WasmMeshType *
179174{
180175 // we assume that the first output is of the templated type
181176 return itkDynamicCastInDebugMode<const WasmMeshType *>(this ->GetPrimaryOutput ());
182177}
183178
184179template <typename TPixel, unsigned int VDimension>
185180auto
186- MeshToWasmMeshFilter<QuadEdgeMesh<TPixel, VDimension>>
187- ::GetOutput (unsigned int idx) -> WasmMeshType *
181+ MeshToWasmMeshFilter<QuadEdgeMesh<TPixel, VDimension>>::GetOutput(unsigned int idx) -> WasmMeshType *
188182{
189183 auto * out = dynamic_cast <WasmMeshType *>(this ->ProcessObject ::GetOutput (idx));
190184
@@ -197,52 +191,47 @@ MeshToWasmMeshFilter<QuadEdgeMesh<TPixel, VDimension>>
197191
198192template <typename TPixel, unsigned int VDimension>
199193void
200- MeshToWasmMeshFilter<QuadEdgeMesh<TPixel, VDimension>>
201- ::SetInput (const MeshType * input)
194+ MeshToWasmMeshFilter<QuadEdgeMesh<TPixel, VDimension>>::SetInput(const MeshType * input)
202195{
203196 // Process object is not const-correct so the const_cast is required here
204197 this ->ProcessObject ::SetNthInput (0 , const_cast <MeshType *>(input));
205198}
206199
207200template <typename TPixel, unsigned int VDimension>
208201void
209- MeshToWasmMeshFilter<QuadEdgeMesh<TPixel, VDimension>>
210- ::SetInput (unsigned int index, const MeshType * mesh)
202+ MeshToWasmMeshFilter<QuadEdgeMesh<TPixel, VDimension>>::SetInput(unsigned int index, const MeshType * mesh)
211203{
212204 // Process object is not const-correct so the const_cast is required here
213205 this ->ProcessObject ::SetNthInput (index, const_cast <MeshType *>(mesh));
214206}
215207
216208template <typename TPixel, unsigned int VDimension>
217209const typename MeshToWasmMeshFilter<QuadEdgeMesh<TPixel, VDimension>>::MeshType *
218- MeshToWasmMeshFilter<QuadEdgeMesh<TPixel, VDimension>>
219- ::GetInput ()
210+ MeshToWasmMeshFilter<QuadEdgeMesh<TPixel, VDimension>>::GetInput()
220211{
221212 return itkDynamicCastInDebugMode<const MeshType *>(this ->GetPrimaryInput ());
222213}
223214
224215template <typename TPixel, unsigned int VDimension>
225216const typename MeshToWasmMeshFilter<QuadEdgeMesh<TPixel, VDimension>>::MeshType *
226- MeshToWasmMeshFilter<QuadEdgeMesh<TPixel, VDimension>>
227- ::GetInput (unsigned int idx)
217+ MeshToWasmMeshFilter<QuadEdgeMesh<TPixel, VDimension>>::GetInput(unsigned int idx)
228218{
229219 return itkDynamicCastInDebugMode<const MeshType *>(this ->ProcessObject ::GetInput (idx));
230220}
231221
232222template <typename TPixel, unsigned int VDimension>
233223void
234- MeshToWasmMeshFilter<QuadEdgeMesh<TPixel, VDimension>>
235- ::GenerateData ()
224+ MeshToWasmMeshFilter<QuadEdgeMesh<TPixel, VDimension>>::GenerateData()
236225{
237226 // Get the input and output pointers
238227 const MeshType * mesh = this ->GetInput ();
239- WasmMeshType * wasmMesh = this ->GetOutput ();
228+ WasmMeshType * wasmMesh = this ->GetOutput ();
240229
241230 wasmMesh->SetMesh (mesh);
242231 constexpr bool inMemory = true ;
243- const auto meshJSON = meshToMeshJSON<TPixel, VDimension>(mesh, wasmMesh, inMemory);
244- std::string serialized{};
245- auto ec = glz::write<glz::opts{ .prettify = true }>(meshJSON, serialized);
232+ const auto meshJSON = meshToMeshJSON<TPixel, VDimension>(mesh, wasmMesh, inMemory);
233+ std::string serialized{};
234+ auto ec = glz::write<glz::opts{ .prettify = true }>(meshJSON, serialized);
246235 if (ec)
247236 {
248237 itkExceptionMacro (" Failed to serialize MeshJSON" );
@@ -253,8 +242,7 @@ MeshToWasmMeshFilter<QuadEdgeMesh<TPixel, VDimension>>
253242
254243template <typename TPixel, unsigned int VDimension>
255244void
256- MeshToWasmMeshFilter<QuadEdgeMesh<TPixel, VDimension>>
257- ::PrintSelf (std::ostream & os, Indent indent) const
245+ MeshToWasmMeshFilter<QuadEdgeMesh<TPixel, VDimension>>::PrintSelf(std::ostream & os, Indent indent) const
258246{
259247 Superclass::PrintSelf (os, indent);
260248}
0 commit comments