GDCM 3.2.1

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{
32public :
33 BoxRegion();
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;
54 BoxRegion ComputeBoundingBox() override;
55
56 void Print(std::ostream &os = std::cout) const override;
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
gdcm::BoxRegion::Print
void Print(std::ostream &os=std::cout) const override
Print.
gdcm::BoxRegion::Area
size_t Area() const override
compute the area
gdcm::BoxRegion::IsValid
bool IsValid() const override
return whether this is valid domain
gdcm::BoxRegion::BoxRegion
BoxRegion()
gdcm::BoxRegion::Clone
Region * Clone() const override
gdcm::BoxRegion::GetYMin
unsigned int GetYMin() const
gdcm::BoxRegion::GetXMin
unsigned int GetXMin() const
Get domain.
gdcm::BoxRegion::BoundingBox
static BoxRegion BoundingBox(BoxRegion const &b1, BoxRegion const &b2)
Helper class to compute the bounding box of two BoxRegion.
gdcm::BoxRegion::SetDomain
void SetDomain(unsigned int xmin, unsigned int xmax, unsigned int ymin, unsigned int ymax, unsigned int zmin, unsigned int zmax)
Set domain.
gdcm::BoxRegion::GetZMax
unsigned int GetZMax() const
gdcm::BoxRegion::GetZMin
unsigned int GetZMin() const
gdcm::BoxRegion::GetYMax
unsigned int GetYMax() const
gdcm::BoxRegion::ComputeBoundingBox
BoxRegion ComputeBoundingBox() override
Return the Axis-Aligned minimum bounding box for all regions.
gdcm::BoxRegion::BoxRegion
BoxRegion(const BoxRegion &)
copy/cstor and al.
gdcm::BoxRegion::GetXMax
unsigned int GetXMax() const
gdcm::BoxRegion::Empty
bool Empty() const override
return whether this domain is empty:
gdcm::BoxRegion::operator=
void operator=(const BoxRegion &)
gdcm::BoxRegion::~BoxRegion
~BoxRegion() override
gdcm::Region::Region
Region()
gdcmRegion.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcm
Definition gdcmASN1.h:21