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

  Program: 3D Slicer

  Copyright (c) Kitware Inc.

  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.

  This file was originally developed by Julien Finet, Kitware Inc.
  and was partially funded by NIH grant 3P41RR013218-12S1

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

#ifndef __qMRMLSceneTransformModel_h
#define __qMRMLSceneTransformModel_h

#include "qMRMLSceneModel.h"

class qMRMLSceneTransformModelPrivate;

class QMRML_WIDGETS_EXPORT qMRMLSceneTransformModel : public qMRMLSceneModel
{
  Q_OBJECT

public:
  qMRMLSceneTransformModel(QObject* parent = nullptr);
  ~qMRMLSceneTransformModel() override;

  ///
  vtkMRMLNode* parentNode(vtkMRMLNode* node) const override;
  // virtual int          nodeIndex(vtkMRMLNode* node) const;
  /// fast function that only check the type of the node to know if it can be a child.
  bool canBeAChild(vtkMRMLNode* node) const override;
  /// fast function that only check the type of the node to know if it can be a parent.
  bool canBeAParent(vtkMRMLNode* node) const override;
  /// if newParent == 0, set the node into the vtkMRMLScene
  bool reparent(vtkMRMLNode* node, vtkMRMLNode* newParent) override;

  Qt::DropActions supportedDropActions() const override;

private:
  Q_DECLARE_PRIVATE(qMRMLSceneTransformModel);
  Q_DISABLE_COPY(qMRMLSceneTransformModel);
};

#endif
