GDCM 2.2.1

- Main Page
- Related Pages
- Namespaces
- Classes
- Files
- Examples

- File List
- File Members

gdcmRegion.h
Go to the documentation of this file.
1 /*=========================================================================
2
3 Program: GDCM (Grassroots DICOM). A DICOM library
4
5 Copyright (c) 2006-2011 Mathieu Malaterre
6 All rights reserved.
7 See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
8
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the above copyright notice for more information.
12
13 =========================================================================*/
14 #ifndef GDCMREGION_H
15 #define GDCMREGION_H
16
17 #include "gdcmTypes.h"
18 #include <vector>
19 #include <iostream>
20
21 namespace gdcm
22 {
23 class BoxRegion;
27 //-----------------------------------------------------------------------------
28 class GDCM_EXPORT Region
29 {
30 public :
31 Region();
32 virtual ~Region();
33
35 virtual void Print(std::ostream &os = std::cout) const;
36
38 virtual bool Empty() const = 0;
39
41 virtual bool IsValid() const = 0;
42
44 virtual size_t Area() const = 0;
45
46 // implementation detail of heterogenous container in C++
47 virtual Region *Clone() const = 0;
48
50 virtual BoxRegion ComputeBoundingBox() = 0;
51 private:
52 };
53 //-----------------------------------------------------------------------------
54 inline std::ostream& operator<<(std::ostream &os, const Region&r)
55 {
56 r.Print( os );
57 return os;
58 }
59
60 } // end namespace gdcm
61 //-----------------------------------------------------------------------------
62 #endif //GDCMREGION_H