VTK  9.2.6
vtkSliceCubes.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkSliceCubes.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
52 #ifndef vtkSliceCubes_h
53 #define vtkSliceCubes_h
54 
55 #include "vtkImagingHybridModule.h" // For export macro
56 #include "vtkObject.h"
57 
58 class vtkVolumeReader;
59 
60 class VTKIMAGINGHYBRID_EXPORT vtkSliceCubes : public vtkObject
61 {
62 public:
63  static vtkSliceCubes* New();
64  vtkTypeMacro(vtkSliceCubes, vtkObject);
65  void PrintSelf(ostream& os, vtkIndent indent) override;
66 
67  // methods to make it look like a filter
68  void Write() { this->Update(); }
69  void Update();
70 
72 
75  virtual void SetReader(vtkVolumeReader*);
76  vtkGetObjectMacro(Reader, vtkVolumeReader);
78 
80 
86 
88 
91  vtkSetMacro(Value, double);
92  vtkGetMacro(Value, double);
94 
96 
100  vtkSetFilePathMacro(LimitsFileName);
101  vtkGetFilePathMacro(LimitsFileName);
103 
104 protected:
106  ~vtkSliceCubes() override;
107 
108  void Execute();
109 
111  char* FileName;
112  double Value;
114 
115 private:
116  vtkSliceCubes(const vtkSliceCubes&) = delete;
117  void operator=(const vtkSliceCubes&) = delete;
118 };
119 
120 #endif
a simple class to control print indentation
Definition: vtkIndent.h:119
abstract base class for most VTK objects
Definition: vtkObject.h:82
generate isosurface(s) from volume four slices at a time
Definition: vtkSliceCubes.h:61
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
read image files