H3D API  2.4.1
DicomImageLoader.h
Go to the documentation of this file.
1 // Copyright 2004-2019, SenseGraphics AB
3 //
4 // This file is part of MedX3D.
5 //
6 // MedX3D is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 2 of the License, or
9 // (at your option) any later version.
10 //
11 // MedX3D is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
15 //
16 // You should have received a copy of the GNU General Public License
17 // along with MedX3D; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 //
20 // A commercial license is also available. Please contact us at
21 // www.sensegraphics.com for more information.
22 //
23 //
28 //
30 #ifndef __DICOMIMAGELOADER_H__
31 #define __DICOMIMAGELOADER_H__
32 
33 #include <H3D/H3DImageLoaderNode.h>
34 #include <H3D/SFBool.h>
36 
37 #ifdef HAVE_DCMTK
38 
39 namespace H3D {
49  class H3DAPI_API DicomImageLoader : public H3DImageLoaderNode {
50  public:
53 
56  virtual Image *loadImage( const string &url );
57 
60  static bool supportsFileType( const string &url );
61 
64 
67 
71  H3DUniquePtr< SFBool > loadSingleFile;
72  };
73 }
74 
75 #endif // HAVE_DCMTK
76 
77 #endif
Header file for H3DImageLoaderNode, the abstract base class for all image loaders nodes for different...
Contains the SFBool field class.
DicomImageLoader uses the DCMTK library to load a DICOM image file.
Definition: DicomImageLoader.h:49
static FileReaderRegistration reader_registration
Register this node to the H3DImageLoaderNodes available.
Definition: DicomImageLoader.h:66
H3DUniquePtr< SFBool > loadSingleFile
If true then DicomImageLoader only load the file with the specified url instead of trying to find all...
Definition: DicomImageLoader.h:71
static H3DNodeDatabase database
The H3DNodeDatabase for this node.
Definition: DicomImageLoader.h:63
H3DImageLoaderNode is a virtual base class for classes that read an image file format such as PNG or ...
Definition: H3DImageLoaderNode.h:48
H3D API namespace.
Definition: Anchor.h:38
Class used to register a class to the registered file readers.
Definition: H3DImageLoaderNode.h:62
The H3DNodeDatabase contains a mapping between a name of a Node and the constructor for the Node with...
Definition: H3DNodeDatabase.h:194