GDCM 3.0.24
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
19namespace gdcm
20{
21class BoxRegionInternals;
29//-----------------------------------------------------------------------------
31{
32public :
34 ~BoxRegion() override;
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 override;
51 bool Empty() const override;
52 bool IsValid() const override;
53 size_t Area() const override;
55
56 void Print(std::ostream &os = std::cout) const override;
57
59 static BoxRegion BoundingBox(BoxRegion const & b1, BoxRegion const & b2 );
60
63 void operator=(const BoxRegion&);
64private:
65 BoxRegionInternals *Internals;
66};
67
68} // end namespace gdcm
69//-----------------------------------------------------------------------------
70#endif //GDCMREGION_H
Class for manipulation box region.
Definition gdcmBoxRegion.h:31
void Print(std::ostream &os=std::cout) const override
Print.
size_t Area() const override
compute the area
bool IsValid() const override
return whether this is valid domain
Region * Clone() const override
unsigned int GetYMin() const
unsigned int GetXMin() const
Get domain.
static BoxRegion BoundingBox(BoxRegion const &b1, BoxRegion const &b2)
Helper class to compute the bounding box of two BoxRegion.
void SetDomain(unsigned int xmin, unsigned int xmax, unsigned int ymin, unsigned int ymax, unsigned int zmin, unsigned int zmax)
Set domain.
unsigned int GetZMax() const
unsigned int GetZMin() const
unsigned int GetYMax() const
BoxRegion ComputeBoundingBox() override
Return the Axis-Aligned minimum bounding box for all regions.
BoxRegion(const BoxRegion &)
copy/cstor and al.
unsigned int GetXMax() const
bool Empty() const override
return whether this domain is empty:
void operator=(const BoxRegion &)
~BoxRegion() override
Class for manipulation region.
Definition gdcmRegion.h:29
#define GDCM_EXPORT
Definition gdcmWin32.h:34
Definition gdcmASN1.h:21