SIVIC API  0.9.26
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
svkImageReaderFactory.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2009-2014 The Regents of the University of California.
3  * All Rights Reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions are met:
7  * • Redistributions of source code must retain the above copyright notice,
8  * this list of conditions and the following disclaimer.
9  * • Redistributions in binary form must reproduce the above copyright notice,
10  * this list of conditions and the following disclaimer in the documentation
11  * and/or other materials provided with the distribution.
12  * • None of the names of any campus of the University of California, the name
13  * "The Regents of the University of California," or the names of any of its
14  * contributors may be used to endorse or promote products derived from this
15  * software without specific prior written permission.
16  *
17  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
18  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20  * IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
21  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
23  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
26  * OF SUCH DAMAGE.
27  */
28 
29 
30 
31 /*
32  * $URL$
33  * $Rev$
34  * $Author$
35  * $Date$
36  *
37  * Authors:
38  * Jason C. Crane, Ph.D.
39  * Beck Olson
40  */
41 
42 
43 #ifndef SVK_IMAGE_READER_FACTORY_H
44 #define SVK_IMAGE_READER_FACTORY_H
45 
46 
47 #include <vtkObjectFactory.h>
48 #include <vtkImageReader2Factory.h>
49 
50 #include <svkIdfVolumeReader.h>
51 #include <svkDcmMriVolumeReader.h>
52 #include <svkDcmMrsVolumeReader.h>
54 #include <svkDdfVolumeReader.h>
55 #include <svkFdfVolumeReader.h>
56 #include <svkVarianFidReader.h>
57 #include <svkPhilipsSReader.h>
58 #include <svkSdbmVolumeReader.h>
59 #include <svkSiemensRdaReader.h>
60 #include <svkGEPFileReader.h>
61 #include <svkGESigna5XReader.h>
62 #include <svkGESignaLX2Reader.h>
64 #include <svkBrukerDCMMRSReader.h>
65 #include <svkDcmRawDataReader.h>
67 #include <svkLCModelCSVReader.h>
68 #include <svkLCModelTableReader.h>
70 
71 
72 namespace svk {
73 
74 
75 using namespace std;
76 
77 
82 class svkImageReaderFactory : public vtkImageReader2Factory
83 {
84 
85  public:
86 
87  static svkImageReaderFactory* New();
88  vtkTypeMacro(svkImageReaderFactory, vtkImageReader2Factory);
89 
90  // Methods:
91  svkImageReader2* CreateImageReader2( const char* path );
92 
93  // Create a concrete reader of the specified type:
94  static svkImageReader2* CreateImageReader2( svkImageReader2::ReaderType readerType );
95 
96  void QuickParse();
97 
98 
99  protected:
100 
103 
104 
105  private:
106 
107  // Members:
108  svkDcmMriVolumeReader* dcmMriVolReader;
109  svkDcmMrsVolumeReader* dcmMrsVolReader;
110  svkDcmEnhancedVolumeReader* dcmEnhancedVolReader;
111  svkIdfVolumeReader* idfVolReader;
112  svkDdfVolumeReader* ddfVolReader;
113  svkFdfVolumeReader* fdfVolReader;
114  svkVarianFidReader* fidVolReader;
115  svkSdbmVolumeReader* sdbmVolReader;
116  svkSiemensRdaReader* rdaVolReader;
117  svkGEPFileReader* gePFileReader;
118  svkGESigna5XReader* geSigna5XReader;
119  svkGESignaLX2Reader* geSignaLX2Reader;
120  svkGEPostageStampReader* gePostageStampReader;
121  svkBrukerDCMMRSReader* brukerDCMMRSReader;
122  svkPhilipsSReader* philipsSReader;
123  svkDcmRawDataReader* dcmRawDataReader;
124  svkDcmSegmentationVolumeReader* dcmSegmentationVolReader;
125  svkLCModelCSVReader* lcmodelCSVReader;
126  svkLCModelTableReader* lcmodelTableReader;
127 
128  bool quickParse;
129 
130 };
131 
132 
133 } //svk
134 
135 
136 #endif //SVK_IMAGE_READER_FACTORY_H
137 
Definition: svkLCModelTableReader.h:59
Definition: svkLCModelCSVReader.h:59
Definition: svkImageReader2.h:60
Definition: svkFdfVolumeReader.h:71
Definition: svkIdfVolumeReader.h:62
Definition: svkDdfVolumeReader.h:65
ReaderType
Definition: svkImageReader2.h:67
Definition: svkGEPostageStampReader.h:56
Definition: svkSdbmVolumeReader.h:63
Definition: svkBrukerDCMMRSReader.h:62
Definition: svkDcmMrsVolumeReader.h:56
Definition: svkDcmRawDataReader.h:57
Definition: svkDcmEnhancedVolumeReader.h:55
Definition: svkDcmMriVolumeReader.h:59
Definition: svkImageReaderFactory.h:82
Definition: svkSiemensRdaReader.h:78
Definition: svkVarianFidReader.h:68
Definition: svkGEPFileReader.h:88
Definition: svkPhilipsSReader.h:67
Definition: svkGESignaLX2Reader.h:59
Definition: svkGESigna5XReader.h:68
Definition: svkDcmSegmentationVolumeReader.h:55