VTK  9.3.0
vtkSliceCubes.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
40 #ifndef vtkSliceCubes_h
41 #define vtkSliceCubes_h
42 
43 #include "vtkImagingHybridModule.h" // For export macro
44 #include "vtkObject.h"
45 
46 VTK_ABI_NAMESPACE_BEGIN
47 class vtkVolumeReader;
48 
49 class VTKIMAGINGHYBRID_EXPORT vtkSliceCubes : public vtkObject
50 {
51 public:
52  static vtkSliceCubes* New();
53  vtkTypeMacro(vtkSliceCubes, vtkObject);
54  void PrintSelf(ostream& os, vtkIndent indent) override;
55 
56  // methods to make it look like a filter
57  void Write() { this->Update(); }
58  void Update();
59 
61 
64  virtual void SetReader(vtkVolumeReader*);
65  vtkGetObjectMacro(Reader, vtkVolumeReader);
67 
69 
75 
77 
80  vtkSetMacro(Value, double);
81  vtkGetMacro(Value, double);
83 
85 
89  vtkSetFilePathMacro(LimitsFileName);
90  vtkGetFilePathMacro(LimitsFileName);
92 
93 protected:
95  ~vtkSliceCubes() override;
96 
97  void Execute();
98 
100  char* FileName;
101  double Value;
103 
104 private:
105  vtkSliceCubes(const vtkSliceCubes&) = delete;
106  void operator=(const vtkSliceCubes&) = delete;
107 };
108 
109 VTK_ABI_NAMESPACE_END
110 #endif
a simple class to control print indentation
Definition: vtkIndent.h:38
abstract base class for most VTK objects
Definition: vtkObject.h:61
generate isosurface(s) from volume four slices at a time
Definition: vtkSliceCubes.h:50
vtkSetFilePathMacro(LimitsFileName)
Specify file name of marching cubes limits file.
vtkSetFilePathMacro(FileName)
Specify file name of marching cubes output file.
vtkGetFilePathMacro(LimitsFileName)
Specify file name of marching cubes limits file.
vtkGetFilePathMacro(FileName)
Specify file name of marching cubes output file.
virtual void SetReader(vtkVolumeReader *)
Set/get object to read slices.
char * LimitsFileName
~vtkSliceCubes() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkSliceCubes * New()
vtkVolumeReader * Reader
Definition: vtkSliceCubes.h:99
read image files