/usr/include/gdcm-2.6/gdcmBoxRegion.h is in libgdcm2-dev 2.6.3-3ubuntu3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | /*=========================================================================
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;
/**
* \brief Class for manipulation box region
* This is a very simple implementation of the Region class.
* It only support 3D box type region.
* It assumes the 3D Box does not have a tilt
* Origin is as (0,0,0)
*/
//-----------------------------------------------------------------------------
class GDCM_EXPORT BoxRegion : public Region
{
public :
BoxRegion();
~BoxRegion();
/// Set domain
void SetDomain(unsigned int xmin, unsigned int xmax,
unsigned int ymin, unsigned int ymax,
unsigned int zmin, unsigned int zmax);
/// Get domain
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;
bool Empty() const;
bool IsValid() const;
size_t Area() const;
BoxRegion ComputeBoundingBox();
void Print(std::ostream &os = std::cout) const;
/// Helper class to compute the bounding box of two BoxRegion
static BoxRegion BoundingBox(BoxRegion const & b1, BoxRegion const & b2 );
/// copy/cstor and al.
BoxRegion(const BoxRegion&);
void operator=(const BoxRegion&);
private:
BoxRegionInternals *Internals;
};
} // end namespace gdcm
//-----------------------------------------------------------------------------
#endif //GDCMREGION_H
|