IGSTK

/build/buildd/igstk-4.2.0/Source/igstkUltrasoundProbeObjectRepresentation.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Image Guided Surgery Software Toolkit
00004   Module:    $RCSfile: igstkUltrasoundProbeObjectRepresentation.h,v $
00005   Language:  C++
00006   Date:      $Date: 2008-02-11 01:41:51 $
00007   Version:   $Revision: 1.6 $
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 __igstkUltrasoundProbeObjectRepresentation_h
00019 #define __igstkUltrasoundProbeObjectRepresentation_h
00020 
00021 #include "igstkMacros.h"
00022 #include "igstkObjectRepresentation.h"
00023 #include "igstkUltrasoundProbeObject.h"
00024 #include "igstkStateMachine.h"
00025 
00026 namespace igstk
00027 {
00028 
00049 class UltrasoundProbeObjectRepresentation 
00050 : public ObjectRepresentation
00051 {
00052 
00053 public:
00054 
00056   igstkStandardClassTraitsMacro( UltrasoundProbeObjectRepresentation, 
00057                                  ObjectRepresentation )
00058 
00059 public:
00060 
00062   typedef UltrasoundProbeObject  UltrasoundProbeSpatialObjectType;
00063 
00065   Pointer Copy() const;
00066 
00068   void RequestSetUltrasoundProbeObject( const 
00069                    UltrasoundProbeSpatialObjectType * UltrasoundProbeObject );
00070 
00071 protected:
00072 
00073   UltrasoundProbeObjectRepresentation( void );
00074   virtual ~UltrasoundProbeObjectRepresentation( void );
00075   
00076   UltrasoundProbeObjectRepresentation(const Self&); //purposely not implemented
00077   void operator=(const Self&);                      //purposely not implemented
00078 
00079 
00081   virtual void PrintSelf( std::ostream& os, itk::Indent indent ) const; 
00082 
00084   void CreateActors();
00085 
00086 private:
00087 
00089   UltrasoundProbeSpatialObjectType::ConstPointer  
00090                                                m_UltrasoundProbeSpatialObject;
00091 
00093   virtual void UpdateRepresentationProcessing();
00094 
00097   void SetUltrasoundProbeObjectProcessing(); 
00098 
00101   void NoProcessing();
00102 
00103 private:
00104 
00105  
00107   igstkDeclareInputMacro( ValidUltrasoundProbeObject );
00108   igstkDeclareInputMacro( NullUltrasoundProbeObject );
00109   
00111   igstkDeclareStateMacro( NullUltrasoundProbeObject );
00112   igstkDeclareStateMacro( ValidUltrasoundProbeObject );
00113 
00114   UltrasoundProbeSpatialObjectType::ConstPointer m_UltrasoundProbeObjectToAdd;
00115 
00116 };
00117 
00118 
00119 } // end namespace igstk
00120 
00121 #endif // __igstkUltrasoundProbeObjectRepresentation_h