Orfeo Toolbox  3.16
itkSpatialObjectPoint.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Insight Segmentation & Registration Toolkit
4  Module: $RCSfile: itkSpatialObjectPoint.h,v $
5  Language: C++
6  Date: $Date: 2009-04-07 14:34:17 $
7  Version: $Revision: 1.16 $
8 
9  Copyright (c) Insight Software Consortium. All rights reserved.
10  See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
11 
12  This software is distributed WITHOUT ANY WARRANTY; without even
13  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14  PURPOSE. See the above copyright notices for more information.
15 
16 =========================================================================*/
17 
18 #ifndef __itkSpatialObjectPoint_h
19 #define __itkSpatialObjectPoint_h
20 
21 #include "itkPoint.h"
22 #include "vnl/vnl_vector_fixed.h"
23 #include "itkRGBAPixel.h"
24 
25 namespace itk
26 {
27 
36 template < unsigned int TPointDimension = 3 >
38 {
39 
40 public:
41 
44  SpatialObjectPoint( void );
45 
47  virtual ~SpatialObjectPoint( void );
48 
54 
56  int GetID( void ) const;
57 
59  void SetID(const int newID);
60 
62  const PointType & GetPosition( void ) const;
63 
65  void SetPosition(const PointType & newX);
66  void SetPosition(const double x0, const double x1);
67  void SetPosition(const double x0, const double x1, const double x2);
68 
70  Self & operator=(const SpatialObjectPoint & rhs);
71 
73  const PixelType & GetColor( void ) const;
74  void SetColor(const PixelType & color );
75  void SetColor(float r, float g, float b, float a=1);
76 
78  void SetRed( float r );
79  float GetRed( void ) const;
80 
82  void SetGreen( float g );
83  float GetGreen( void ) const;
84 
86  void SetBlue( float b );
87  float GetBlue( void ) const;
88 
90  void SetAlpha( float a);
91  float GetAlpha( void ) const;
92 
94  void Print(std::ostream &os) const;
95 
96 protected:
97 
99  virtual void PrintSelf(std::ostream &os, Indent indent) const;
100 
102  int m_ID;
103 
106 
109 
110 };
111 
112 } // end of namespace itk
113 
114 #ifndef ITK_MANUAL_INSTANTIATION
115 #include "itkSpatialObjectPoint.txx"
116 #endif
117 
118 #endif // __itkSpatialObjectPoint_h

Generated at Sun Feb 3 2013 00:08:13 for Orfeo Toolbox with doxygen 1.8.1.1