vtkbone
vtkboneImageToMesh.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Copyright 2010-2016, Numerics88 Solutions Ltd.
4  http://www.numerics88.com/
5 
6  Copyright (c) Eric Nodwell and Steven K. Boyd
7  See Copyright.txt for details.
8 
9  This software is distributed WITHOUT ANY WARRANTY; without even
10  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11  PURPOSE. See the above copyright notice for more information.
12 =========================================================================*/
13 
54 #ifndef __vtkboneImageToMesh_h
55 #define __vtkboneImageToMesh_h
56 
58 #include "vtkboneWin32Header.h"
59 
60 // forward declarations
61 class vtkImageData;
62 
64 {
65 public:
66  static vtkboneImageToMesh* New();
68  void PrintSelf(ostream& os, vtkIndent indent);
69  void Report(ostream& s);
70 
71 protected:
74 
76 
78 
80 
83  int GetInputAsCellScalars(vtkImageData* input,
84  vtkImageData* inputAsPointScalars);
86 
87  int GenerateHexahedrons(vtkImageData* input,
88  vtkUnstructuredGrid* output);
89 
90 private:
91  // Prevent compiler from making default versions of these.
93  void operator=(const vtkboneImageToMesh&);
94 };
95 
96 
97 //-----------------------------------------------------------------------
98 // Namespace for printing more concise reports for classes.
99 // This is consistent with the calling format in vtkbonePrettyReports.h
100 //
102 {
103  //-----------------------------------------------------------------------
104  inline void Print(std::ostream& s, vtkboneImageToMesh* obj)
105  {
106  obj->Report(s);
107  }
108 } // namespace vtkbonePrettyReports
109 
110 #endif
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTKBONE_EXPORT
void Report(ostream &s)
static vtkUnstructuredGridAlgorithm * New()
info
virtual int FillInputPortInformation(int port, vtkInformation *info)
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
takes a vtkImageData as input and outputs a vtkUnstructuredGrid of hexahedron cells.
port
void Print(std::ostream &s, vtkboneImageToMesh *obj)
void operator=(const vtkObjectBase &)