gdcmRegion.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 GDCMREGION_H
#define GDCMREGION_H
#include "gdcmTypes.h"
#include <vector>
#include <iostream>
namespace gdcm
{
class BoxRegion;
//-----------------------------------------------------------------------------
class GDCM_EXPORT Region
{
public :
Region();
virtual ~Region();
virtual void Print(std::ostream &os = std::cout) const;
virtual bool Empty() const = 0;
virtual bool IsValid() const = 0;
virtual size_t Area() const = 0;
// implementation detail of heterogeneous container in C++
virtual Region *Clone() const = 0;
virtual BoxRegion ComputeBoundingBox() = 0;
private:
};
//-----------------------------------------------------------------------------
inline std::ostream& operator<<(std::ostream &os, const Region&r)
{
r.Print( os );
return os;
}
} // end namespace gdcm
//-----------------------------------------------------------------------------
#endif //GDCMREGION_H
gdcm::BoxRegion
Class for manipulation box region.
Definition gdcmBoxRegion.h:31
gdcm::Region
Class for manipulation region.
Definition gdcmRegion.h:29
gdcm::Region::Region
Region()
gdcm::Region::Print
virtual void Print(std::ostream &os=std::cout) const
Print.
gdcm::Region::Area
virtual size_t Area() const =0
compute the area
gdcm::Region::Clone
virtual Region * Clone() const =0
gdcm::Region::ComputeBoundingBox
virtual BoxRegion ComputeBoundingBox()=0
Return the Axis-Aligned minimum bounding box for all regions.
gdcm::Region::IsValid
virtual bool IsValid() const =0
return whether this is valid domain
gdcm::Region::~Region
virtual ~Region()
gdcm::Region::Empty
virtual bool Empty() const =0
return whether this domain is empty:
gdcmTypes.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcm
Definition gdcmASN1.h:21
gdcm::operator<<
std::ostream & operator<<(std::ostream &os, const Directory &d)
Definition gdcmDirectory.h:88