/*==============================================================================

  Program: 3D Slicer

  Portions (c) Copyright Brigham and Women's Hospital (BWH) All Rights Reserved.

  See COPYRIGHT.txt
  or http://www.slicer.org/copyright/copyright.txt for details.

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

==============================================================================*/

// .NAME vtkSlicerSegmentationToolboxModuleLogic - slicer logic class for volumes manipulation
// .SECTION Description
// This class manages the logic associated with reading, saving,
// and changing propertied of the volumes


#ifndef __vtkSlicerSegmentationToolboxModuleLogic_h
#define __vtkSlicerSegmentationToolboxModuleLogic_h

// Slicer includes
#include "vtkSlicerModuleLogic.h"

// MRML includes

// STD includes
#include <cstdlib>

#include "vtkSlicerSegmentationToolboxModuleModuleLogicExport.h"


/// \ingroup Slicer_QtModules_ExtensionTemplate
class VTK_SLICER_SEGMENTATIONTOOLBOXMODULE_MODULE_LOGIC_EXPORT vtkSlicerSegmentationToolboxModuleLogic :
  public vtkSlicerModuleLogic
{
public:

  static vtkSlicerSegmentationToolboxModuleLogic *New();
  vtkTypeMacro(vtkSlicerSegmentationToolboxModuleLogic, vtkSlicerModuleLogic);
  void PrintSelf(ostream& os, vtkIndent indent);

protected:
  vtkSlicerSegmentationToolboxModuleLogic();
  virtual ~vtkSlicerSegmentationToolboxModuleLogic();

  virtual void SetMRMLSceneInternal(vtkMRMLScene* newScene);
  /// Register MRML Node classes to Scene. Gets called automatically when the MRMLScene is attached to this logic class.
  virtual void RegisterNodes();
  virtual void UpdateFromMRMLScene();
  virtual void OnMRMLSceneNodeAdded(vtkMRMLNode* node);
  virtual void OnMRMLSceneNodeRemoved(vtkMRMLNode* node);
private:

  vtkSlicerSegmentationToolboxModuleLogic(const vtkSlicerSegmentationToolboxModuleLogic&); // Not implemented
  void operator=(const vtkSlicerSegmentationToolboxModuleLogic&); // Not implemented
};

#endif
