Slicer  4.11
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
vtkAnnotationRulerRepresentation.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: vtkMRMLAnnotationDisplayableManagerHelper,v $
10  Date: $Date: Aug 4, 2010 10:44:52 AM $
11  Version: $Revision: 1.0 $
12 
13  =========================================================================auto=*/
14 
15 #ifndef __vtkAnnotationRulerRepresentation_h
16 #define __vtkAnnotationRulerRepresentation_h
17 
18 // Annotations includes
19 #include "vtkSlicerAnnotationsModuleVTKWidgetsExport.h"
20 
21 // VTK includes
22 #include <vtkDistanceRepresentation2D.h>
23 
25 class VTK_SLICER_ANNOTATIONS_MODULE_VTKWIDGETS_EXPORT
27  : public vtkDistanceRepresentation2D
28 {
29 public:
30 
32  vtkTypeMacro(vtkAnnotationRulerRepresentation, vtkDistanceRepresentation2D);
33  void PrintSelf(ostream& os, vtkIndent indent) override;
34 
35  void SetDistance(double distance);
36 
37  // Description:
38  // Return the property of the axis actor
39  virtual vtkProperty2D *GetLineProperty();
40 
41 protected:
42 
45 
46  void BuildRepresentation() override;
47 
48 private:
49 
51  void operator=(const vtkAnnotationRulerRepresentation&) = delete;
52 
53  double m_Distance;
54 
55 };
56 
57 #endif /* __vtkAnnotationRulerRepresentation_h */