SIVIC API  0.9.26
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
svkExtractVOI.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkExtractVOI.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 =========================================================================*/
15 // .NAME vtkExtractVOI - select piece (e.g., volume of interest) and/or subsample structured points dataset
16 
17 // .SECTION Description
18 // vtkExtractVOI is a filter that selects a portion of an input structured
19 // points dataset, or subsamples an input dataset. (The selected portion of
20 // interested is referred to as the Volume Of Interest, or VOI.) The output of
21 // this filter is a structured points dataset. The filter treats input data
22 // of any topological dimension (i.e., point, line, image, or volume) and can
23 // generate output data of any topological dimension.
24 //
25 // To use this filter set the VOI ivar which are i-j-k min/max indices that
26 // specify a rectangular region in the data. (Note that these are 0-offset.)
27 // You can also specify a sampling rate to subsample the data.
28 //
29 // Typical applications of this filter are to extract a slice from a volume
30 // for image processing, subsampling large volumes to reduce data size, or
31 // extracting regions of a volume with interesting data.
32 
33 // .SECTION See Also
34 // vtkGeometryFilter vtkExtractGeometry vtkExtractGrid
35 /*
36  * Copyright © 2009-2014 The Regents of the University of California.
37  * All Rights Reserved.
38  *
39  * Redistribution and use in source and binary forms, with or without
40  * modification, are permitted provided that the following conditions are met:
41  * • Redistributions of source code must retain the above copyright notice,
42  * this list of conditions and the following disclaimer.
43  * • Redistributions in binary form must reproduce the above copyright notice,
44  * this list of conditions and the following disclaimer in the documentation
45  * and/or other materials provided with the distribution.
46  * • None of the names of any campus of the University of California, the name
47  * "The Regents of the University of California," or the names of any of its
48  * contributors may be used to endorse or promote products derived from this
49  * software without specific prior written permission.
50  *
51  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
52  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
53  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
54  * IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
55  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
56  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
57  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
58  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
59  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
60  * OF SUCH DAMAGE.
61  */
62 
63 
64 
65 /*
66  * $URL$
67  * $Rev$
68  * $Author$
69  * $Date$
70  *
71  * Authors:
72  * Jason C. Crane, Ph.D.
73  * Beck Olson
74  */
75 
76 #ifndef SVK_EXTRACT_VOI
77 #define SVK_EXTRACT_VOI
78 
79 
80 #include <vtkObjectFactory.h>
81 #include <vtkObject.h>
82 #include <vtkExtractVOI.h>
83 #include <svkImageData.h>
84 
85 
86 namespace svk {
87 
88 
89 using namespace std;
90 
91 
92 class svkExtractVOI : public vtkExtractVOI
93 {
94 
95 public:
96 
97  static svkExtractVOI* New();
98  vtkTypeMacro(svkExtractVOI,vtkExtractVOI);
99 
100 
101 protected:
102 
103  svkExtractVOI();
104  ~svkExtractVOI();
105 
106  virtual int RequestInformation (vtkInformation*,
107  vtkInformationVector**,
108  vtkInformationVector*);
109 
110  int FillOutputPortInformation( int vtkNotUsed(port), vtkInformation* info);
111 
112 private:
113 };
114 }
115 #endif //SVK_EXTRACT_VOI
116 
Definition: svkExtractVOI.h:92