Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Loading...
Searching...
No Matches
vtkMRMLMarkupsJsonWriter Class Reference

Writes JSON data to file. More...

#include <Modules/Loadable/Markups/MRML/vtkMRMLMarkupsJsonElement.h>

Inheritance diagram for vtkMRMLMarkupsJsonWriter:
Collaboration diagram for vtkMRMLMarkupsJsonWriter:

Public Types

typedef vtkMRMLJsonWriter Superclass
 
- Public Types inherited from vtkMRMLJsonWriter
typedef vtkObject Superclass
 

Public Member Functions

virtual const char * GetClassName ()
 
virtual int IsA (const char *type)
 
- Public Member Functions inherited from vtkMRMLJsonWriter
std::string ConvertXMLToJson (vtkXMLDataElement *xmlElement, const std::string &nodeTagName)
 
virtual vtkMRMLMessageCollectionGetUserMessages ()
 Returns user-displayable messages that may contain details about any failed operation.
 
bool HasErrors ()
 Returns true if user messages contain error messages.
 
bool isBool (const std::string &str)
 Utility functions to check string type.
 
bool isDouble (const std::string &str)
 
bool isInt (const std::string &str)
 
void PrintSelf (ostream &os, vtkIndent indent) override
 
std::string toLower (const std::string &str)
 Utility function to convert string to lower case.
 
void WriteArrayPropertyEnd ()
 This method must be called when all array items are written.
 
void WriteArrayPropertyStart (const std::string &propertyName)
 This method creates a new array as a property.
 
void WriteObjectEnd ()
 This method must be called when all properties of the object are written.
 
void WriteObjectPropertyEnd ()
 This method must be called when all properties of the object are written.
 
void WriteObjectPropertyStart (const std::string &propertyName)
 This method creates a new object as a property.
 
void WriteObjectStart ()
 This method creates a new object in an array.
 
bool WriteToFileBegin (const char *filePath, const char *schema)
 
bool WriteToFileEnd ()
 
bool WriteToStringBegin (const char *nodeTagName)
 
std::string WriteToStringEnd ()
 
void WriteStringProperty (const std::string &propertyName, const std::string &propertyValue)
 
void WriteStringVectorProperty (const std::string &propertyName, const std::vector< std::string > &arrayValues)
 
void WriteCodedEntryProperty (const std::string &propertyName, vtkCodedEntry *codedEntry)
 
void WriteStringPropertyIfNotEmpty (const std::string &propertyName, const std::string &propertyValue)
 
void WriteBoolProperty (const std::string &propertyName, bool propertyValue)
 
void WriteIntProperty (const std::string &propertyName, int propertyValue)
 
void WriteDoubleProperty (const std::string &propertyName, double propertyValue)
 
void WriteVectorProperty (const std::string &propertyName, double *v, int numberOfComponents=3)
 
void WriteMatrix4x4Property (const std::string &propertyName, double v[16], bool flipRasLps)
 
void WriteDoubleArrayProperty (const char *propertyName, vtkDoubleArray *doubleArray)
 

Static Public Member Functions

static int IsTypeOf (const char *type)
 
static vtkMRMLMarkupsJsonWriterNew ()
 
static vtkMRMLMarkupsJsonWriterSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkMRMLJsonWriter
static int IsTypeOf (const char *type)
 
static vtkMRMLJsonWriterNew ()
 
static vtkMRMLJsonWriterSafeDownCast (vtkObject *o)
 

Protected Member Functions

 vtkMRMLMarkupsJsonWriter ()
 
 ~vtkMRMLMarkupsJsonWriter () override=default
 
- Protected Member Functions inherited from vtkMRMLJsonWriter
void operator= (const vtkMRMLJsonWriter &)
 
void processXMLElement (vtkXMLDataElement *xmlElement)
 
 vtkMRMLJsonWriter ()
 
 vtkMRMLJsonWriter (const vtkMRMLJsonWriter &)
 
 ~vtkMRMLJsonWriter () override
 

Additional Inherited Members

- Protected Attributes inherited from vtkMRMLJsonWriter
vtkInternalInternal
 
vtkNew< vtkMRMLMessageCollectionUserMessages
 

Detailed Description

Writes JSON data to file.

Deprecated
This class is empty and kept only for backward compatibility. The implementation has been moved to core MRML class vtkMRMLJsonWriter.

Definition at line 63 of file vtkMRMLMarkupsJsonElement.h.

Member Typedef Documentation

◆ Superclass

Constructor & Destructor Documentation

◆ vtkMRMLMarkupsJsonWriter()

vtkMRMLMarkupsJsonWriter::vtkMRMLMarkupsJsonWriter ( )
inlineprotected

Definition at line 70 of file vtkMRMLMarkupsJsonElement.h.

◆ ~vtkMRMLMarkupsJsonWriter()

vtkMRMLMarkupsJsonWriter::~vtkMRMLMarkupsJsonWriter ( )
overrideprotecteddefault

Member Function Documentation

◆ GetClassName()

virtual const char * vtkMRMLMarkupsJsonWriter::GetClassName ( )
virtual

Reimplemented from vtkMRMLJsonWriter.

◆ IsA()

virtual int vtkMRMLMarkupsJsonWriter::IsA ( const char * type)
virtual

Reimplemented from vtkMRMLJsonWriter.

◆ IsTypeOf()

static int vtkMRMLMarkupsJsonWriter::IsTypeOf ( const char * type)
static

◆ New()

static vtkMRMLMarkupsJsonWriter * vtkMRMLMarkupsJsonWriter::New ( )
static

◆ SafeDownCast()

static vtkMRMLMarkupsJsonWriter * vtkMRMLMarkupsJsonWriter::SafeDownCast ( vtkObject * o)
static

The documentation for this class was generated from the following file: