Slicer
4.11
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
Class for storing well-defined measurement results, using coded entries. More...
#include <Libs/MRML/Core/vtkMRMLMeasurement.h>
Public Types | |
enum | ComputationResult { NoChange =0, OK, InsufficientInput, InternalError } |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual void | ClearValue (ComputationResult computationResult=NoChange) |
virtual void | Compute ()=0 |
virtual void | Copy (vtkMRMLMeasurement *aEntry) |
Copy one type into another (deep copy) More... | |
virtual void | EnabledOff () |
virtual void | EnabledOn () |
std::string | GetAsString () |
Get content of the object as a single machine-readable string. More... | |
virtual const char * | GetClassName () |
virtual vtkDoubleArray * | GetControlPointValues () |
virtual vtkCodedEntry * | GetDerivationCode () |
virtual std::string | GetDescription () |
Informal description of the measurement. More... | |
virtual bool | GetEnabled () |
vtkMRMLNode * | GetInputMRMLNode () |
Get input MRML node used for calculating the measurement. More... | |
virtual int | GetLastComputationResult () |
Get last computation result. More... | |
const char * | GetLastComputationResultAsPrintableString () |
Get last computation result as human-readable string. More... | |
virtual vtkCodedEntry * | GetMethodCode () |
virtual std::string | GetName () |
Measurement name. More... | |
virtual std::string | GetPrintFormat () |
Formatting string for displaying measurement value and units. More... | |
virtual vtkCodedEntry * | GetQuantityCode () |
virtual std::string | GetUnits () |
Measurement unit. More... | |
virtual vtkCodedEntry * | GetUnitsCode () |
virtual double | GetValue () |
Measured quantity value. More... | |
virtual bool | GetValueDefined () |
Value defined flag (whether a computed value has been set or not) More... | |
std::string | GetValueWithUnitsAsPrintableString () |
Get measurement value and units as a single human-readable string. More... | |
virtual void | Initialize () |
Reset state of object. More... | |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) override |
void | SetControlPointValues (vtkDoubleArray *inputValues) |
Set the per-control point measurement values. More... | |
void | SetDerivationCode (vtkCodedEntry *entry) |
Copy content of coded entry. More... | |
virtual void | SetDescription (std::string) |
virtual void | SetEnabled (bool) |
Enabled. More... | |
bool | SetFromString (const std::string &content) |
void | SetInputMRMLNode (vtkMRMLNode *node) |
Set input MRML node used for calculating the measurement. More... | |
void | SetMethodCode (vtkCodedEntry *entry) |
Copy content of coded entry. More... | |
virtual void | SetName (std::string) |
virtual void | SetPrintFormat (std::string) |
void | SetQuantityCode (vtkCodedEntry *entry) |
Copy content of coded entry. More... | |
virtual void | SetUnits (std::string) |
void | SetUnitsCode (vtkCodedEntry *entry) |
Copy content of coded entry. More... | |
void | SetValue (double value) |
void | SetValue (double value, const std::string &units, const std::string &printFormat, int lastComputationResult) |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkMRMLMeasurement * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
void | operator= (const vtkMRMLMeasurement &) |
vtkMRMLMeasurement () | |
vtkMRMLMeasurement (const vtkMRMLMeasurement &) | |
~vtkMRMLMeasurement () override | |
Protected Attributes | |
vtkDoubleArray * | ControlPointValues {nullptr} |
Per-control point measurements. More... | |
vtkCodedEntry * | DerivationCode {nullptr} |
std::string | Description |
bool | Enabled {true} |
vtkWeakPointer< vtkMRMLNode > | InputMRMLNode |
MRML node used to calculate the measurement. More... | |
ComputationResult | LastComputationResult {InsufficientInput} |
vtkCodedEntry * | MethodCode {nullptr} |
std::string | Name |
std::string | PrintFormat |
vtkCodedEntry * | QuantityCode {nullptr} |
std::string | Units |
vtkCodedEntry * | UnitsCode {nullptr} |
double | Value {0.0} |
bool | ValueDefined {false} |
Class for storing well-defined measurement results, using coded entries.
This stores all important information about a measurement using standard coded entries. Measurement method, derivation, quantity value, units, etc, can be specified. This is a commonly used concept in DICOM structured reports.
Definition at line 33 of file vtkMRMLMeasurement.h.
typedef vtkObject vtkMRMLMeasurement::Superclass |
Definition at line 47 of file vtkMRMLMeasurement.h.
Measurement computation status
Enumerator | |
---|---|
NoChange | can be used to indicate to keep the current value |
OK | success |
InsufficientInput | |
InternalError |
Definition at line 39 of file vtkMRMLMeasurement.h.
|
protected |
|
overrideprotected |
|
protected |
|
virtual |
Clear measured value Note: per-control-point values are not cleared
|
pure virtual |
Perform calculation on
Implemented in vtkMRMLStaticMeasurement, vtkMRMLMeasurementAngle, vtkMRMLMeasurementArea, vtkMRMLMeasurementLength, and vtkMRMLMeasurementVolume.
|
virtual |
Copy one type into another (deep copy)
|
virtual |
|
virtual |
std::string vtkMRMLMeasurement::GetAsString | ( | ) |
Get content of the object as a single machine-readable string.
|
virtual |
Reimplemented in vtkMRMLStaticMeasurement, vtkMRMLMeasurementAngle, vtkMRMLMeasurementArea, vtkMRMLMeasurementLength, and vtkMRMLMeasurementVolume.
|
virtual |
|
virtual |
|
virtual |
Informal description of the measurement.
|
virtual |
vtkMRMLNode* vtkMRMLMeasurement::GetInputMRMLNode | ( | ) |
Get input MRML node used for calculating the measurement.
|
virtual |
Get last computation result.
const char* vtkMRMLMeasurement::GetLastComputationResultAsPrintableString | ( | ) |
Get last computation result as human-readable string.
|
virtual |
|
virtual |
Measurement name.
|
virtual |
Formatting string for displaying measurement value and units.
|
virtual |
|
virtual |
Measurement unit.
|
virtual |
|
virtual |
Measured quantity value.
|
virtual |
Value defined flag (whether a computed value has been set or not)
std::string vtkMRMLMeasurement::GetValueWithUnitsAsPrintableString | ( | ) |
Get measurement value and units as a single human-readable string.
|
virtual |
Reset state of object.
|
virtual |
Reimplemented in vtkMRMLStaticMeasurement, vtkMRMLMeasurementAngle, vtkMRMLMeasurementArea, vtkMRMLMeasurementLength, and vtkMRMLMeasurementVolume.
|
static |
|
protected |
|
override |
|
static |
void vtkMRMLMeasurement::SetControlPointValues | ( | vtkDoubleArray * | inputValues | ) |
Set the per-control point measurement values.
void vtkMRMLMeasurement::SetDerivationCode | ( | vtkCodedEntry * | entry | ) |
Copy content of coded entry.
|
virtual |
|
virtual |
Enabled.
bool vtkMRMLMeasurement::SetFromString | ( | const std::string & | content | ) |
Set content of the object from a single machine-readable string.
void vtkMRMLMeasurement::SetInputMRMLNode | ( | vtkMRMLNode * | node | ) |
Set input MRML node used for calculating the measurement.
void vtkMRMLMeasurement::SetMethodCode | ( | vtkCodedEntry * | entry | ) |
Copy content of coded entry.
|
virtual |
|
virtual |
void vtkMRMLMeasurement::SetQuantityCode | ( | vtkCodedEntry * | entry | ) |
Copy content of coded entry.
|
virtual |
void vtkMRMLMeasurement::SetUnitsCode | ( | vtkCodedEntry * | entry | ) |
Copy content of coded entry.
void vtkMRMLMeasurement::SetValue | ( | double | value | ) |
void vtkMRMLMeasurement::SetValue | ( | double | value, |
const std::string & | units, | ||
const std::string & | printFormat, | ||
int | lastComputationResult | ||
) |
Set quantity value and units with a singel modified event lastComputationResult type is ComputationResult (int type is used for compatibility with Python wrapper)
|
protected |
Per-control point measurements.
Definition at line 163 of file vtkMRMLMeasurement.h.
|
protected |
Definition at line 157 of file vtkMRMLMeasurement.h.
|
protected |
Definition at line 154 of file vtkMRMLMeasurement.h.
|
protected |
Definition at line 149 of file vtkMRMLMeasurement.h.
|
protected |
MRML node used to calculate the measurement.
Definition at line 169 of file vtkMRMLMeasurement.h.
|
protected |
Definition at line 160 of file vtkMRMLMeasurement.h.
|
protected |
Definition at line 159 of file vtkMRMLMeasurement.h.
|
protected |
Definition at line 150 of file vtkMRMLMeasurement.h.
|
protected |
Definition at line 155 of file vtkMRMLMeasurement.h.
|
protected |
Definition at line 156 of file vtkMRMLMeasurement.h.
|
protected |
Definition at line 153 of file vtkMRMLMeasurement.h.
|
protected |
Definition at line 158 of file vtkMRMLMeasurement.h.
|
protected |
Definition at line 151 of file vtkMRMLMeasurement.h.
|
protected |
Definition at line 152 of file vtkMRMLMeasurement.h.