VTK  9.1.0
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=========================================================================*/
49#ifndef vtkSliceCubes_h
50#define vtkSliceCubes_h
51
52#include "vtkImagingHybridModule.h" // For export macro
53#include "vtkObject.h"
54
55class vtkVolumeReader;
56
57class VTKIMAGINGHYBRID_EXPORT vtkSliceCubes : public vtkObject
58{
59public:
60 static vtkSliceCubes* New();
61 vtkTypeMacro(vtkSliceCubes, vtkObject);
62 void PrintSelf(ostream& os, vtkIndent indent) override;
63
64 // methods to make it look like a filter
65 void Write() { this->Update(); }
66 void Update();
67
69
72 virtual void SetReader(vtkVolumeReader*);
73 vtkGetObjectMacro(Reader, vtkVolumeReader);
75
77
83
85
88 vtkSetMacro(Value, double);
89 vtkGetMacro(Value, double);
91
93
97 vtkSetFilePathMacro(LimitsFileName);
98 vtkGetFilePathMacro(LimitsFileName);
100
101protected:
103 ~vtkSliceCubes() override;
104
105 void Execute();
106
108 char* FileName;
109 double Value;
111
112private:
113 vtkSliceCubes(const vtkSliceCubes&) = delete;
114 void operator=(const vtkSliceCubes&) = delete;
115};
116
117#endif
a simple class to control print indentation
Definition: vtkIndent.h:113
abstract base class for most VTK objects
Definition: vtkObject.h:73
generate isosurface(s) from volume four slices at a time
Definition: vtkSliceCubes.h:58
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