ParaView
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
vtkSelectionSerializer Class Reference

Serialize/deserialize vtkSelection to/from xml. More...

#include <vtkSelectionSerializer.h>

Inherits vtkObject.

Public Types

typedef vtkObject Superclass
 

Public Member Functions

virtual const char * GetClassName ()
 
virtual int IsA (const char *type)
 
void PrintSelf (ostream &os, vtkIndent indent)
 

Static Public Member Functions

static vtkSelectionSerializerNew ()
 
static int IsTypeOf (const char *type)
 
static vtkSelectionSerializerSafeDownCast (vtkObject *o)
 
static vtkInformationIntegerKey * ORIGINAL_SOURCE_ID ()
 ID of the dataset or algorithm that the selection belongs to. More...
 
static void PrintXML (int printData, vtkSelection *selection)
 Serialize the selection tree to a stream as xml. More...
 
static void PrintXML (ostream &os, vtkIndent indent, int printData, vtkSelection *selection)
 Serialize the selection tree to a stream as xml. More...
 
static void Parse (const char *xml, vtkSelection *root)
 Parse an xml string to create a new selection tree. More...
 
static void Parse (const char *xml, unsigned int length, vtkSelection *root)
 Parse an xml string to create a new selection tree. More...
 

Protected Member Functions

 vtkSelectionSerializer ()
 
 ~vtkSelectionSerializer ()
 

Detailed Description

Serialize/deserialize vtkSelection to/from xml.

vtkSelectionSerializer is a helper class that can serialize/deserialize vtkSelection to/from xml. Currently, it supports only a subset of properties: CONTENT_TYPE, SOURCE_ID, PROP_ID, PROCESS_ID, ORIGINAL_SOURCE_ID

See also
vtkSelection

Definition at line 38 of file vtkSelectionSerializer.h.

Member Typedef Documentation

◆ Superclass

Definition at line 42 of file vtkSelectionSerializer.h.

Constructor & Destructor Documentation

◆ vtkSelectionSerializer()

vtkSelectionSerializer::vtkSelectionSerializer ( )
protected

◆ ~vtkSelectionSerializer()

vtkSelectionSerializer::~vtkSelectionSerializer ( )
protected

Member Function Documentation

◆ New()

static vtkSelectionSerializer* vtkSelectionSerializer::New ( )
static

◆ GetClassName()

virtual const char* vtkSelectionSerializer::GetClassName ( )
virtual

◆ IsTypeOf()

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

◆ IsA()

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

◆ SafeDownCast()

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

◆ PrintSelf()

void vtkSelectionSerializer::PrintSelf ( ostream &  os,
vtkIndent  indent 
)

◆ PrintXML() [1/2]

static void vtkSelectionSerializer::PrintXML ( int  printData,
vtkSelection *  selection 
)
static

Serialize the selection tree to a stream as xml.

For now, only keys of type vtkInformationIntegerKey are supported.

◆ PrintXML() [2/2]

static void vtkSelectionSerializer::PrintXML ( ostream &  os,
vtkIndent  indent,
int  printData,
vtkSelection *  selection 
)
static

Serialize the selection tree to a stream as xml.

For now, only keys of type vtkInformationIntegerKey are supported.

◆ Parse() [1/2]

static void vtkSelectionSerializer::Parse ( const char *  xml,
vtkSelection *  root 
)
static

Parse an xml string to create a new selection tree.

The string is 0 terminated for the first version of this function, or we specify the length of the string for the second version. Currently, this supports only a subset of properties: CONTENT_TYPE, SOURCE_ID, PROP_ID, PROCESS_ID

◆ Parse() [2/2]

static void vtkSelectionSerializer::Parse ( const char *  xml,
unsigned int  length,
vtkSelection *  root 
)
static

Parse an xml string to create a new selection tree.

The string is 0 terminated for the first version of this function, or we specify the length of the string for the second version. Currently, this supports only a subset of properties: CONTENT_TYPE, SOURCE_ID, PROP_ID, PROCESS_ID

◆ ORIGINAL_SOURCE_ID()

static vtkInformationIntegerKey* vtkSelectionSerializer::ORIGINAL_SOURCE_ID ( )
static

ID of the dataset or algorithm that the selection belongs to.

What ID means is application specific.


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