VTK  9.3.1
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 
72  vtkSetFilePathMacro(FileName);
73  vtkGetFilePathMacro(FileName);
75 
77 
80  vtkSetMacro(Value, double);
81  vtkGetMacro(Value, double);
83 
85 
89  vtkSetFilePathMacro(LimitsFileName);
90  vtkGetFilePathMacro(LimitsFileName);
92 
93 protected:
94  vtkSliceCubes();
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
read image files
abstract base class for most VTK objects
Definition: vtkObject.h:51
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
char * LimitsFileName
a simple class to control print indentation
Definition: vtkIndent.h:28
generate isosurface(s) from volume four slices at a time
Definition: vtkSliceCubes.h:49
vtkVolumeReader * Reader
Definition: vtkSliceCubes.h:99
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...