/*============================================================================= NOTE: THIS FILE IS A HANDMADE WRAPPER FOR THE ManagedITK PROJECT. Project: ManagedITK Program: Insight Segmentation & Registration Toolkit Module: itkManagedLevelSetNode.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 __itkManagedLevelSetNode_cxx #define __itkManagedLevelSetNode_cxx // Include some managed files #include "itkManagedIndex.cxx" // Use some managed namespaces #using #using using namespace System; using namespace System::IO; using namespace System::Reflection; using namespace System::ComponentModel; using namespace System::Diagnostics; namespace itk { /// ///This class is a managed replacement for itk::LevelSetNode. /// /// ///LevelSetNode is a simple class that represents a node ///or grid position of a level set. A group or collection of ///LevelSetNode can then be used to represents a narrowband or ///region of interest. /// public ref class itkLevelSetNode { private: double m_Value; itkIndex^ m_Index; public: ///Default constructor. itkLevelSetNode ( ) { } ///Constructor taking a pixel value and index. ///The value of the level set node. ///The discrete location in image space of the level set node. itkLevelSetNode ( double value, itkIndex^ index ) { this->m_Value = value; this->m_Index = index; } ///Constructor copying member data from an existing node. ///The existing node to copy the data from. itkLevelSetNode ( itkLevelSetNode^ node ) { this->m_Value = node->Value; this->m_Index = node->Index; } ///Get/set the value of the node. property virtual double Value { double get() { return this->m_Value; } void set( double value ) { this->m_Value = value; } } ///Get/set the discrete location of the node. property virtual itkIndex^ Index { itkIndex^ get() { return this->m_Index; } void set( itkIndex^ index ) { this->m_Index = index; } } }; // end ref class } // end namespace itk #endif