VTK  9.3.20240423
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
46VTK_ABI_NAMESPACE_BEGIN
47class vtkVolumeReader;
48
49class VTKIMAGINGHYBRID_EXPORT vtkSliceCubes : public vtkObject
50{
51public:
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
93protected:
95 ~vtkSliceCubes() override;
96
97 void Execute();
98
100 char* FileName;
101 double Value;
103
104private:
105 vtkSliceCubes(const vtkSliceCubes&) = delete;
106 void operator=(const vtkSliceCubes&) = delete;
107};
108
109VTK_ABI_NAMESPACE_END
110#endif
a simple class to control print indentation
Definition vtkIndent.h:108
abstract base class for most VTK objects
Definition vtkObject.h:162
generate isosurface(s) from volume four slices at a time
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
static vtkSliceCubes * New()
~vtkSliceCubes() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkVolumeReader * Reader
read image files