Slicer  5.1
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
vtkMRMLAnnotationClickCounter.h
Go to the documentation of this file.
1 /*=auto=========================================================================
2 
3  Portions (c) Copyright 2005 Brigham and Women's Hospital (BWH) All Rights Reserved.
4 
5  See COPYRIGHT.txt
6  or http://www.slicer.org/copyright/copyright.txt for details.
7 
8  Program: 3D Slicer
9  Module: $RCSfile: vtkMRMLAnnotationClickCounter.h,v $
10  Date: $Date: Aug 4, 2010 10:44:52 AM $
11  Version: $Revision: 1.0 $
12 
13  =========================================================================auto=*/
14 
15 #ifndef __vtkMRMLAnnotationClickCounter_h
16 #define __vtkMRMLAnnotationClickCounter_h
17 
18 // Annotation includes
19 #include "vtkSlicerAnnotationsModuleMRMLDisplayableManagerExport.h"
20 
21 // VTK include
22 #include <vtkObject.h>
23 
25 class VTK_SLICER_ANNOTATIONS_MODULE_MRMLDISPLAYABLEMANAGER_EXPORT
27  : public vtkObject
28 {
29 public:
30 
31  static vtkMRMLAnnotationClickCounter *New();
32  vtkTypeMacro(vtkMRMLAnnotationClickCounter, vtkObject);
33  void PrintSelf(ostream& os, vtkIndent indent) override;
34 
37  int Click();
38 
42  bool HasEnoughClicks(int clicks);
43 
45  void Reset();
46 
47 protected:
48 
51 
52 private:
53 
55  void operator=(const vtkMRMLAnnotationClickCounter&) = delete;
56 
57  int m_Clicks;
58 
59 };
60 
61 #endif /* __vtkMRMLAnnotationClickCounter_h */