|
Slicer 5.13
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
#include <Libs/MRML/Logic/vtkMRMLIOProperties.h>


Public Types | |
| typedef vtkObject | Superclass |
Public Member Functions | |
| void | Copy (vtkMRMLIOProperties *source) |
| Replace these properties with the properties of another set. | |
| bool | GetBoolProperty (const std::string &name, bool defaultValue=false) const |
| virtual const char * | GetClassName () |
| double | GetDoubleProperty (const std::string &name, double defaultValue=0.0) const |
| int | GetIntProperty (const std::string &name, int defaultValue=0) const |
| bool | GetListProperty (const std::string &name, vtkVariantArray *values) const |
| vtkMRMLIOProperties * | GetMapProperty (const std::string &name) const |
| vtkObject * | GetObjectProperty (const std::string &name) const |
| The value of an object property, or nullptr if it is not there or not an object. | |
| vtkVariant | GetProperty (const std::string &name) const |
| The value of a property, or an invalid variant if it is not there. | |
| std::vector< std::string > | GetPropertyNames () const |
| The names of the properties that are set, in the order they were first set. | |
| std::vector< std::string > | GetStringListProperty (const std::string &name) const |
| std::string | GetStringProperty (const std::string &name, const std::string &defaultValue="") const |
| The value of a property as a string; defaultValue if it is not there. | |
| bool | HasProperty (const std::string &name) const |
| virtual int | IsA (const char *type) |
| bool | IsBoolProperty (const std::string &name) const |
| bool | IsListProperty (const std::string &name) const |
| bool | IsMapProperty (const std::string &name) const |
| bool | IsObjectProperty (const std::string &name) const |
| bool | IsStringListProperty (const std::string &name) const |
| void | PrintSelf (ostream &os, vtkIndent indent) override |
| void | RemoveAllProperties () |
| void | RemoveProperty (const std::string &name) |
| void | SetBoolProperty (const std::string &name, bool value) |
| void | SetDoubleProperty (const std::string &name, double value) |
| void | SetIntProperty (const std::string &name, int value) |
| void | SetListProperty (const std::string &name, vtkVariantArray *values) |
| void | SetMapProperty (const std::string &name, vtkMRMLIOProperties *values) |
| Set a property to a nested set of properties (a map). The properties are copied. | |
| void | SetObjectProperty (const std::string &name, vtkObject *value) |
| Set a property to an object (such as the "screenShot" image of a scene). The object is referenced. | |
| void | SetProperty (const std::string &name, const vtkVariant &value) |
| Set a property. A value that is already there is replaced. | |
| void | SetStringListProperty (const std::string &name, const std::vector< std::string > &values) |
| Set a property to a list of strings (such as "fileNames"). | |
| void | SetStringProperty (const std::string &name, const std::string &value) |
| void | Update (vtkMRMLIOProperties *source) |
| Add the properties of another set to these, replacing values that are already set. | |
Static Public Member Functions | |
| static int | IsTypeOf (const char *type) |
| static vtkMRMLIOProperties * | New () |
| static vtkMRMLIOProperties * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
| vtkMRMLIOProperties () | |
| ~vtkMRMLIOProperties () override | |
Named values that specify a file reading or writing request, such as "fileName", "name", "nodeID", and the values of reader or writer options. This is the VTK equivalent of qSlicerIO::IOProperties.
See https://slicer.readthedocs.io/en/latest/developer_guide/mrml_overview.html#file-reading-and-writing
Definition at line 36 of file vtkMRMLIOProperties.h.
| typedef vtkObject vtkMRMLIOProperties::Superclass |
Definition at line 40 of file vtkMRMLIOProperties.h.
|
protected |
|
overrideprotected |
| void vtkMRMLIOProperties::Copy | ( | vtkMRMLIOProperties * | source | ) |
Replace these properties with the properties of another set.
| bool vtkMRMLIOProperties::GetBoolProperty | ( | const std::string & | name, |
| bool | defaultValue = false ) const |
|
virtual |
| double vtkMRMLIOProperties::GetDoubleProperty | ( | const std::string & | name, |
| double | defaultValue = 0.0 ) const |
| int vtkMRMLIOProperties::GetIntProperty | ( | const std::string & | name, |
| int | defaultValue = 0 ) const |
| bool vtkMRMLIOProperties::GetListProperty | ( | const std::string & | name, |
| vtkVariantArray * | values ) const |
The value of a list property. Values of a list of strings property are returned as well. Returns false if the property is not a list.
| vtkMRMLIOProperties * vtkMRMLIOProperties::GetMapProperty | ( | const std::string & | name | ) | const |
The value of a map property, or nullptr if it is not there or not a map. The returned object is owned by these properties.
| vtkObject * vtkMRMLIOProperties::GetObjectProperty | ( | const std::string & | name | ) | const |
The value of an object property, or nullptr if it is not there or not an object.
| vtkVariant vtkMRMLIOProperties::GetProperty | ( | const std::string & | name | ) | const |
The value of a property, or an invalid variant if it is not there.
| std::vector< std::string > vtkMRMLIOProperties::GetPropertyNames | ( | ) | const |
The names of the properties that are set, in the order they were first set.
| std::vector< std::string > vtkMRMLIOProperties::GetStringListProperty | ( | const std::string & | name | ) | const |
The value of a property as a list of strings. A single string value is returned as a list of one item. Returns an empty list if the property is not there.
| std::string vtkMRMLIOProperties::GetStringProperty | ( | const std::string & | name, |
| const std::string & | defaultValue = "" ) const |
The value of a property as a string; defaultValue if it is not there.
| bool vtkMRMLIOProperties::HasProperty | ( | const std::string & | name | ) | const |
|
virtual |
| bool vtkMRMLIOProperties::IsBoolProperty | ( | const std::string & | name | ) | const |
Whether the property was set as a boolean (SetBoolProperty), a list of strings (SetStringListProperty), a list of values (SetListProperty), a map (SetMapProperty), or an object (SetObjectProperty). This allows converting the properties to other representations (such as a Python dictionary) without losing the type.
| bool vtkMRMLIOProperties::IsListProperty | ( | const std::string & | name | ) | const |
| bool vtkMRMLIOProperties::IsMapProperty | ( | const std::string & | name | ) | const |
| bool vtkMRMLIOProperties::IsObjectProperty | ( | const std::string & | name | ) | const |
| bool vtkMRMLIOProperties::IsStringListProperty | ( | const std::string & | name | ) | const |
|
static |
|
static |
|
override |
| void vtkMRMLIOProperties::RemoveAllProperties | ( | ) |
| void vtkMRMLIOProperties::RemoveProperty | ( | const std::string & | name | ) |
|
static |
| void vtkMRMLIOProperties::SetBoolProperty | ( | const std::string & | name, |
| bool | value ) |
| void vtkMRMLIOProperties::SetDoubleProperty | ( | const std::string & | name, |
| double | value ) |
| void vtkMRMLIOProperties::SetIntProperty | ( | const std::string & | name, |
| int | value ) |
| void vtkMRMLIOProperties::SetListProperty | ( | const std::string & | name, |
| vtkVariantArray * | values ) |
Set a property to a list of values (strings, numbers, and booleans). The values are copied. Boolean values are stored as vtkVariant of char type (see vtkVariant(bool)).
| void vtkMRMLIOProperties::SetMapProperty | ( | const std::string & | name, |
| vtkMRMLIOProperties * | values ) |
Set a property to a nested set of properties (a map). The properties are copied.
| void vtkMRMLIOProperties::SetObjectProperty | ( | const std::string & | name, |
| vtkObject * | value ) |
Set a property to an object (such as the "screenShot" image of a scene). The object is referenced.
| void vtkMRMLIOProperties::SetProperty | ( | const std::string & | name, |
| const vtkVariant & | value ) |
Set a property. A value that is already there is replaced.
| void vtkMRMLIOProperties::SetStringListProperty | ( | const std::string & | name, |
| const std::vector< std::string > & | values ) |
Set a property to a list of strings (such as "fileNames").
| void vtkMRMLIOProperties::SetStringProperty | ( | const std::string & | name, |
| const std::string & | value ) |
| void vtkMRMLIOProperties::Update | ( | vtkMRMLIOProperties * | source | ) |
Add the properties of another set to these, replacing values that are already set.