GDCM  2.4.5
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 //-----------------------------------------------------------------------------
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
#define GDCM_EXPORT
Definition: gdcmWin32.h:34
std::ostream & operator<<(std::ostream &os, const Directory &d)
Definition: gdcmDirectory.h:88
virtual void Print(std::ostream &os=std::cout) const
Print.
Class for manipulation box region This is a very simple implementation of the Region class...
Definition: gdcmBoxRegion.h:30
Definition: gdcmASN1.h:20
Class for manipulation region.
Definition: gdcmRegion.h:28

Generated on Fri Sep 25 2015 17:58:24 for GDCM by doxygen 1.8.9.1
SourceForge.net Logo