VTK
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 
83  vtkSetStringMacro(FileName);
84  vtkGetStringMacro(FileName);
86 
88 
91  vtkSetMacro(Value,double);
92  vtkGetMacro(Value,double);
94 
96 
100  vtkSetStringMacro(LimitsFileName);
101  vtkGetStringMacro(LimitsFileName);
103 
104 protected:
105  vtkSliceCubes();
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
read image files
abstract base class for most VTK objects
Definition: vtkObject.h:59
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:39
generate isosurface(s) from volume four slices at a time
Definition: vtkSliceCubes.h:60
vtkVolumeReader * Reader
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...