00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef __freTransformControllerBase_h
00023 #define __freTransformControllerBase_h
00024
00025 #include "freControllerBase.h"
00026
00027 namespace FREE
00028 {
00029
00045 freControllerIDMacro(TransformControllerBase, "TransformBase");
00046 template <class TControlledTransform, int iDimension>
00047 class TransformControllerBase : public ComponentControllerBase<TControlledTransform>
00048 {
00049 public:
00050 typedef itk::Point<ScalarType,iDimension> PointType;
00051 typedef ComponentControllerBase<TControlledTransform> Superclass;
00052
00053 itkTypeMacro(TransformControllerBase, ComponentControllerBase);
00054
00055 typedef ComponentControllerBase<TControlledTransform> Superclass;
00056 typedef typename Superclass::ComponentType ComponentType;
00057 typedef typename Superclass::ComponentPointer ComponentPointer;
00058 typedef typename Superclass::GenericComponentType GenericComponentType;
00059 typedef typename Superclass::GenericComponentPointer GenericComponentPointer;
00060
00061
00062 virtual ~TransformControllerBase() {};
00063
00064 protected:
00065 typedef typename ImageTypes<iDimension>::PointSetType PointSetType;
00066
00067 TransformControllerBase();
00068
00087 virtual bool SetInitialTransformValues( ComponentType* pTransformComponent,
00088 SessionComponentCache* pComponentCache,
00089 SessionInfo* pSessionInfo,
00090 const int& iInitializeByITV) const;
00091
00092 virtual void ActualizeMainComponent(ComponentType* pMainComponent,
00093 SessionComponentCache* pComponentCache,
00094 SessionInfo* pSessionInfo,
00095 const unsigned int& iActLevel) const;
00096
00097 virtual void SetMediaCasted(const MediaID& mediaID, GenericMediaType* pMedia,
00098 ComponentType* pComponent,
00099 SessionComponentCache* pComponentCache,
00100 SessionInfo* pSessionInfo) const;
00101
00102 virtual void GenerateProfile(CtrlProfile::ControllerProfile& profile,
00103 const SessionComponentCache* pComponentCache,
00104 bool bRegardOldSetup) const;
00105 };
00106
00107 }
00108
00109 #ifndef ITK_MANUAL_INSTANTIATION
00110 #include "freTransformControllerBase.txx"
00111 #endif
00112
00113 #endif