GDCM 2.2.1

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

- File List
- File Members

gdcmBoxRegion.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 GDCMBOXREGION_H
15 #define GDCMBOXREGION_H
16
17 #include "gdcmRegion.h"
18
19 namespace gdcm
20 {
21 class BoxRegionInternals;
29 //-----------------------------------------------------------------------------
30 class GDCM_EXPORT BoxRegion : public Region
31 {
32 public :
33 BoxRegion();
34 ~BoxRegion();
35
37 void SetDomain(unsigned int xmin, unsigned int xmax,
38 unsigned int ymin, unsigned int ymax,
39 unsigned int zmin, unsigned int zmax);
40
42 unsigned int GetXMin() const;
43 unsigned int GetXMax() const;
44 unsigned int GetYMin() const;
45 unsigned int GetYMax() const;
46 unsigned int GetZMin() const;
47 unsigned int GetZMax() const;
48
49 // Satisfy pure virtual parent class
50 Region *Clone() const;
51 bool Empty() const;
52 bool IsValid() const;
53 size_t Area() const;
54 BoxRegion ComputeBoundingBox();
55
56 void Print(std::ostream &os = std::cout) const;
57
59 static BoxRegion BoundingBox(BoxRegion const & b1, BoxRegion const & b2 );
60
62 BoxRegion(const BoxRegion&);
63 void operator=(const BoxRegion&);
64 private:
65 BoxRegionInternals *Internals;
66 };
67
68 } // end namespace gdcm
69 //-----------------------------------------------------------------------------
70 #endif //GDCMREGION_H