#ifndef __CPPLUGINS__INTERFACE__OBJECT__H__ #define __CPPLUGINS__INTERFACE__OBJECT__H__ #include #include #include #include namespace cpPlugins { namespace Interface { /** */ class cpPlugins_Interface_EXPORT Object : public itk::Object { public: typedef Object Self; typedef itk::Object Superclass; typedef itk::SmartPointer< Self > Pointer; typedef itk::SmartPointer< const Self > ConstPointer; public: itkNewMacro( Self ); itkTypeMacro( Object, itkObject ); cpPlugins_Id_Macro( Object, BaseObject ); itkGetStringMacro( Name ); itkGetConstMacro( ViewX, float ); itkGetConstMacro( ViewY, float ); itkSetStringMacro( Name ); itkSetMacro( ViewX, float ); itkSetMacro( ViewY, float ); public: inline float SetViewCoords( float x, float y ) { this->SetViewX( x ); this->SetViewY( y ); } protected: Object( ); virtual ~Object( ); private: // Purposely not implemented Object( const Self& ); Self& operator=( const Self& ); protected: std::string m_Name; float m_ViewX, m_ViewY; }; } // ecapseman } // ecapseman #endif // __CPPLUGINS__INTERFACE__OBJECT__H__ // eof - $RCSfile$