gdcmBoxRegion.h
Go to the documentation of this file.
/*=========================================================================
Program: GDCM (Grassroots DICOM). A DICOM library
Copyright (c) 2006-2011 Mathieu Malaterre
All rights reserved.
See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
#ifndef GDCMBOXREGION_H
#define GDCMBOXREGION_H
#include "gdcmRegion.h"
namespace gdcm
{
class BoxRegionInternals;
//-----------------------------------------------------------------------------
class GDCM_EXPORT BoxRegion : public Region
{
public :
BoxRegion();
~BoxRegion() override;
void SetDomain(unsigned int xmin, unsigned int xmax,
unsigned int ymin, unsigned int ymax,
unsigned int zmin, unsigned int zmax);
unsigned int GetXMin() const;
unsigned int GetXMax() const;
unsigned int GetYMin() const;
unsigned int GetYMax() const;
unsigned int GetZMin() const;
unsigned int GetZMax() const;
// Satisfy pure virtual parent class
Region *Clone() const override;
bool Empty() const override;
bool IsValid() const override;
size_t Area() const override;
BoxRegion ComputeBoundingBox() override;
void Print(std::ostream &os = std::cout) const override;
static BoxRegion BoundingBox(BoxRegion const & b1, BoxRegion const & b2 );
BoxRegion(const BoxRegion&);
void operator=(const BoxRegion&);
private:
BoxRegionInternals *Internals;
};
} // end namespace gdcm
//-----------------------------------------------------------------------------
#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