/usr/include/IGSTK/igstkTubeObject.h is in libigstk4-dev 4.4.0-6.
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 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 | /*=========================================================================
Program: Image Guided Surgery Software Toolkit
Module: $RCSfile: igstkTubeObject.h,v $
Language: C++
Date: $Date: 2008-02-11 01:41:51 $
Version: $Revision: 1.7 $
Copyright (c) ISC Insight Software Consortium. All rights reserved.
See IGSTKCopyright.txt or http://www.igstk.org/copyright.htm 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 notices for more information.
=========================================================================*/
#ifndef __igstkTubeObject_h
#define __igstkTubeObject_h
#include "igstkMacros.h"
#include "igstkSpatialObject.h"
#include <itkTubeSpatialObject.h>
namespace igstk
{
namespace Friends
{
class TubeReaderToTubeSpatialObject;
}
/** \class TubeObject
*
* \brief This class represents a Tube object.
* The tube is basically defined by a set of points representing its centerline.
* Each point as a position and an associated radius value.
*
* \ingroup Object
*/
class TubeObject
: public SpatialObject
{
public:
/** Macro with standard traits declarations. */
igstkStandardClassTraitsMacro( TubeObject, SpatialObject )
public:
/** Internal typedef */
typedef itk::TubeSpatialObject<3> TubeSpatialObjectType;
typedef TubeSpatialObjectType::TubePointType PointType;
typedef TubeSpatialObjectType::PointListType PointListType;
/** Add a point to the tube */
void AddPoint(PointType & point);
/** Return the number of points in the tube */
unsigned int GetNumberOfPoints(void) const;
/** Return a given point */
const PointType * GetPoint(unsigned int pointId) const;
/** Return the internal list of points */
const PointListType GetPoints() const;
/** Remove all the points in the list */
void Clear( void );
/** The TubeReaderToTubeSpatialObject class is declared as a friend in
* order to be able to set the input mesh */
igstkFriendClassMacro( igstk::Friends::TubeReaderToTubeSpatialObject );
protected:
/** Constructor */
TubeObject( void );
/** Destructor */
~TubeObject( void );
/** Print object information */
virtual void PrintSelf( std::ostream& os, itk::Indent indent ) const;
private:
/** Set method to be invoked only by friends of this class */
void SetTubeSpatialObject( TubeSpatialObjectType * tube );
/** Internal itkSpatialObject */
TubeSpatialObjectType::Pointer m_TubeSpatialObject;
};
} // end namespace igstk
#endif // __igstkTubeObject_h
|