forked from Slicer/SlicerGitSVNArchive
-
Notifications
You must be signed in to change notification settings - Fork 2
/
vtkMRMLStaticMeasurement.h
47 lines (36 loc) · 1.55 KB
/
vtkMRMLStaticMeasurement.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*==============================================================================
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.
==============================================================================*/
#ifndef __vtkMRMLStaticMeasurement_h
#define __vtkMRMLStaticMeasurement_h
// MRML includes
#include "vtkMRMLMeasurement.h"
/// \brief Measurement class storing a constant measurement.
///
/// Typically all measurements calculate their own value from its input
/// MRML node. This class is to be able to store constant measurements.
///
/// \ingroup Slicer_QtModules_Markups
class VTK_MRML_EXPORT vtkMRMLStaticMeasurement : public vtkMRMLMeasurement
{
public:
static vtkMRMLStaticMeasurement *New();
vtkTypeMacro(vtkMRMLStaticMeasurement, vtkMRMLMeasurement);
void PrintSelf(ostream& os, vtkIndent indent) override;
/// Do nothing to compute the measurement as it is static
void Compute() override;
protected:
vtkMRMLStaticMeasurement();
~vtkMRMLStaticMeasurement() override;
vtkMRMLStaticMeasurement(const vtkMRMLStaticMeasurement&);
void operator=(const vtkMRMLStaticMeasurement&);
};
#endif