IGSTK
/build/buildd/igstk-4.4.0/Source/igstkTubeObjectRepresentation.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Image Guided Surgery Software Toolkit
00004   Module:    $RCSfile: igstkTubeObjectRepresentation.h,v $
00005   Language:  C++
00006   Date:      $Date: 2008-02-11 01:41:51 $
00007   Version:   $Revision: 1.12 $
00008 
00009   Copyright (c) ISC  Insight Software Consortium.  All rights reserved.
00010   See IGSTKCopyright.txt or http://www.igstk.org/copyright.htm for details.
00011 
00012      This software is distributed WITHOUT ANY WARRANTY; without even
00013      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00014      PURPOSE.  See the above copyright notices for more information.
00015 
00016 =========================================================================*/
00017 
00018 #ifndef __igstkTubeObjectRepresentation_h
00019 #define __igstkTubeObjectRepresentation_h
00020 
00021 #include "igstkMacros.h"
00022 #include "igstkObjectRepresentation.h"
00023 #include "igstkTubeObject.h"
00024 #include "igstkStateMachine.h"
00025 
00026 namespace igstk
00027 {
00028 
00041 class TubeObjectRepresentation 
00042 : public ObjectRepresentation
00043 {
00044 
00045 public:
00046 
00048   igstkStandardClassTraitsMacro( TubeObjectRepresentation, 
00049                                  ObjectRepresentation )
00050 
00051 public:
00052 
00053   typedef TubeObject                     TubeObjectType;
00054 
00056   Pointer Copy() const;
00057 
00059   void RequestSetTubeObject( const TubeObjectType * TubeObject );
00060 
00061 protected:
00062   
00064   TubeObjectRepresentation( void );
00065 
00067   ~TubeObjectRepresentation( void );
00068 
00070   virtual void PrintSelf( std::ostream& os, itk::Indent indent ) const; 
00071 
00073   void CreateActors();
00074 
00075 private:
00076 
00078   TubeObjectType::ConstPointer   m_TubeSpatialObject;
00079 
00081   virtual void UpdateRepresentationProcessing();
00082 
00085   void SetTubeObjectProcessing(); 
00086 
00088   void NoProcessing();
00089 
00090 private:
00091 
00093   igstkDeclareInputMacro( ValidTubeObject );
00094   igstkDeclareInputMacro( NullTubeObject );
00095   
00097   igstkDeclareStateMacro( NullTubeObject );
00098   igstkDeclareStateMacro( ValidTubeObject );
00099 
00100   TubeObjectType::ConstPointer m_TubeObjectToAdd;
00101 
00102 };
00103 
00104 
00105 } // end namespace igstk
00106 
00107 #endif // __igstkTubeObjectRepresentation_h