/*============================================================================= NOTE: THIS FILE IS A HANDMADE WRAPPER FOR THE ManagedITK PROJECT. Project: ManagedITK Program: Insight Segmentation & Registration Toolkit Module: itkManagedRadius.cxx Language: C++/CLI Author: Dan Mueller Date: $Date: 2007-09-01 06:17:25 +1000 (Sat, 01 Sep 2007) $ Revision: $Revision: 2 $ Copyright (c) Queensland University of Technology (QUT) 2007. All rights reserved. Portions of this code are covered under the ITK and VTK copyright. See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details. See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the above copyright notices for more information. =============================================================================*/ #pragma once #pragma warning( disable : 4635 ) // Disable warnings about XML doc comments #ifndef __itkManagedRadius_cxx #define __itkManagedRadius_cxx // Include some useful ManagedITK files #include "itkManagedINativePointer.cxx" // Use some managed namespaces #using #using using namespace System; using namespace System::IO; using namespace System::Reflection; using namespace System::Diagnostics; using namespace System::Collections::Generic; namespace itk { /// ///This class is used to specify an instance type using a radius. /// /// ///It can be used to specify the instance type of itkWindowedSincInterpolateImageFunction. /// public ref class itkRadius : INativePointer { private: unsigned int m_Radius; public: ///Default constructor. itkRadius( unsigned int radius ) { this->m_Radius = radius; } ///Get a string representing the type instance of this INativePointer. ///"R4", "R5". /// ///This object can be passed to the New() methods to specify the type of ///native itk object to create. /// property String^ MangledTypeString { virtual String^ get() { return "R" + this->m_Radius.ToString(); } } /// ///Get/set the pointer to the native ITK object associated with ///this wrapper instance. /// ///The pointer to the native ITK object. /// ///This property is not applicable for itkRadius and will always get/set 0. /// property void* NativePointer { virtual void* get( ) { return 0; }; virtual void set ( void* ptr ) { /*Do nothing*/ }; } }; // end ref class } // end namespace itk #endif