IGSTK
igstkConeObject.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Image Guided Surgery Software Toolkit
4  Module: $RCSfile: igstkConeObject.h,v $
5  Language: C++
6  Date: $Date: 2008-02-11 01:41:50 $
7  Version: $Revision: 1.5 $
8 
9  Copyright (c) ISC Insight Software Consortium. All rights reserved.
10  See IGSTKCopyright.txt or http://www.igstk.org/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 __igstkConeObject_h
19 #define __igstkConeObject_h
20 
21 #include "igstkMacros.h"
22 #include "igstkSpatialObject.h"
23 #include <itkGroupSpatialObject.h>
24 
25 namespace igstk
26 {
27 
38 class ConeObject
39 : public SpatialObject
40 {
41 
42 public:
43 
46 
47 public:
48 
50  igstkSetMacro(Radius,double);
51 
53  igstkGetMacro(Radius,double);
54 
56  igstkSetMacro(Height,double);
57 
59  igstkGetMacro(Height,double);
60 
61 protected:
62 
63  ConeObject( void );
64  ~ConeObject( void );
65 
66  ConeObject(const Self&); //purposely not implemented
67  void operator=(const Self&); //purposely not implemented
68 
70  virtual void PrintSelf( std::ostream& os, itk::Indent indent ) const;
71 
72 private:
73 
75  typedef itk::GroupSpatialObject<3> ConeSpatialObjectType;
76 
78  ConeSpatialObjectType::Pointer m_ConeSpatialObject;
79 
80  double m_Radius;
81  double m_Height;
82 
83 };
84 
85 } // end namespace igstk
86 
87 #endif // __igstkConeObject_h
#define igstkGetMacro(name, type)
Get built-in type.
Definition: igstkMacros.h:105
Geometrical abstraction of physical objects present in the surgical scene.
Base class for all the IGSTK classes.
Definition: igstkObject.h:40
This class represents a cone object.
igstkStandardClassTraitsMacro(ConeObject, SpatialObject) public
Macro with standard traits declarations.
virtual void PrintSelf(std::ostream &os, itk::Indent indent) const
Print object information.
defines standard system-wide macros, constants, and other common parameters in the IGSTK Library...
::itk::SmartPointer< Self > Pointer
Definition: igstkObject.h:50
#define igstkSetMacro(name, type)
Set built-in type.
Definition: igstkMacros.h:93