Slicer 4.2
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkMRMLStorableNode Class Reference

MRML node to represent a 3D surface model. More...

#include <Libs/MRML/Core/vtkMRMLStorableNode.h>

Inheritance diagram for vtkMRMLStorableNode:
Inheritance graph
[legend]
Collaboration diagram for vtkMRMLStorableNode:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkMRMLTransformableNode Superclass

Public Member Functions

void AddAndObserveStorageNodeID (const char *storageNodeID)
virtual void Copy (vtkMRMLNode *node)
virtual vtkMRMLStorageNodeCreateDefaultStorageNode ()
virtual vtkMRMLNodeCreateNodeInstance ()=0
 MRMLNode methods.
virtual const char * GetClassName ()
virtual bool GetModifiedSinceRead ()
virtual const char * GetNodeTagName ()=0
vtkMRMLStorageNodeGetNthStorageNode (int n)
const char * GetNthStorageNodeID (int n)
int GetNumberOfStorageNodes ()
const char * GetSlicerDataType ()
vtkMRMLStorageNodeGetStorageNode ()
const char * GetStorageNodeID ()
virtual vtkTagTableGetUserTagTable ()
 Methods for user-specified metadata.
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
virtual void ProcessMRMLEvents (vtkObject *, unsigned long, void *)
virtual void ReadXMLAttributes (const char **atts)
void SetAndObserveNthStorageNodeID (int n, const char *storageNodeID)
void SetAndObserveStorageNodeID (const char *storageNodeID)
void SetSlicerDataType (const char *type)
virtual void UpdateScene (vtkMRMLScene *scene)
virtual void WriteXML (ostream &of, int indent)

Static Public Member Functions

static int IsTypeOf (const char *type)
static vtkMRMLStorableNodeSafeDownCast (vtkObject *o)

Protected Member Functions

virtual char * GetStorageNodeReferenceRererenceMRMLAttributeName ()
virtual char * GetStorageNodeReferenceRole ()
virtual vtkTimeStamp GetStoredTime ()
void operator= (const vtkMRMLStorableNode &)
virtual void SetStorageNodeReferenceRererenceMRMLAttributeName (const char *)
virtual void SetStorageNodeReferenceRole (const char *)
 vtkMRMLStorableNode ()
 vtkMRMLStorableNode (const vtkMRMLStorableNode &)
 ~vtkMRMLStorableNode ()

Protected Attributes

std::string SlicerDataType
vtkTimeStamp StorableModifiedTime
char * StorageNodeReferenceRererenceMRMLAttributeName
char * StorageNodeReferenceRole
vtkTagTableUserTagTable

Detailed Description

MRML node to represent a 3D surface model.

Model nodes describe polygonal data. Models are assumed to have been constructed with the orientation and voxel dimensions of the original segmented volume.

Definition at line 33 of file vtkMRMLStorableNode.h.


Member Typedef Documentation


Constructor & Destructor Documentation

vtkMRMLStorableNode::vtkMRMLStorableNode ( ) [protected]
vtkMRMLStorableNode::~vtkMRMLStorableNode ( ) [protected]
vtkMRMLStorableNode::vtkMRMLStorableNode ( const vtkMRMLStorableNode ) [protected]

Member Function Documentation

void vtkMRMLStorableNode::AddAndObserveStorageNodeID ( const char *  storageNodeID) [inline]

Definition at line 81 of file vtkMRMLStorableNode.h.

virtual void vtkMRMLStorableNode::Copy ( vtkMRMLNode node) [virtual]
virtual vtkMRMLStorageNode* vtkMRMLStorableNode::CreateDefaultStorageNode ( ) [virtual]
virtual vtkMRMLNode* vtkMRMLStorableNode::CreateNodeInstance ( ) [pure virtual]
virtual const char* vtkMRMLStorableNode::GetClassName ( ) [virtual]
virtual bool vtkMRMLStorableNode::GetModifiedSinceRead ( ) [virtual]

Returns true if the node is more recent than the file on disk. This information can be used by the application to know which node has been modified since it has been last read or written. Only storable properties are considered: even if a "non storable" property (e.g. color of a mesh) is modified after the node is being loaded, GetModifiedSinceRead() should return false; the new property value won't be stored on file (only in the MRML scene). By default, calling Modified() on the node doesn't make the node "modified since read", only calling Modified() on StorableModifiedTime does. GetModifiedSinceRead() can be overwritten to handle special storable property modification time.

See also:
GetStoredTime() StorableModifiedTime Modified()

Reimplemented in vtkMRMLColorNode, vtkMRMLModelNode, vtkMRMLTransformNode, vtkMRMLVolumeNode, and vtkMRMLVolumePropertyNode.

virtual const char* vtkMRMLStorableNode::GetNodeTagName ( ) [pure virtual]
vtkMRMLStorageNode* vtkMRMLStorableNode::GetNthStorageNode ( int  n)

Get associated display MRML node

const char* vtkMRMLStorableNode::GetNthStorageNodeID ( int  n) [inline]

Definition at line 107 of file vtkMRMLStorableNode.h.

int vtkMRMLStorableNode::GetNumberOfStorageNodes ( ) [inline]

Definition at line 102 of file vtkMRMLStorableNode.h.

const char* vtkMRMLStorableNode::GetSlicerDataType ( )
vtkMRMLStorageNode* vtkMRMLStorableNode::GetStorageNode ( )
const char* vtkMRMLStorableNode::GetStorageNodeID ( ) [inline]

Definition at line 112 of file vtkMRMLStorableNode.h.

virtual char* vtkMRMLStorableNode::GetStorageNodeReferenceRererenceMRMLAttributeName ( ) [protected, virtual]
virtual char* vtkMRMLStorableNode::GetStorageNodeReferenceRole ( ) [protected, virtual]
virtual vtkTimeStamp vtkMRMLStorableNode::GetStoredTime ( ) [protected, virtual]

Compute when the storable node was read/written for the last time. This information is used by GetModifiedSinceRead() to know if the node has been modified since the last time it was read or written By default, it retrieves the information from the associated storage nodes.

See also:
GetModifiedSinceRead(), StorableModifiedTime, vtkMRMLStorageNode::GetStoredTime()
virtual vtkTagTable* vtkMRMLStorableNode::GetUserTagTable ( ) [virtual]

Methods for user-specified metadata.

virtual int vtkMRMLStorableNode::IsA ( const char *  type) [virtual]
static int vtkMRMLStorableNode::IsTypeOf ( const char *  type) [static]
void vtkMRMLStorableNode::operator= ( const vtkMRMLStorableNode ) [protected]
void vtkMRMLStorableNode::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual void vtkMRMLStorableNode::ProcessMRMLEvents ( vtkObject *  ,
unsigned  long,
void *   
) [virtual]
virtual void vtkMRMLStorableNode::ReadXMLAttributes ( const char **  atts) [virtual]
static vtkMRMLStorableNode* vtkMRMLStorableNode::SafeDownCast ( vtkObject *  o) [static]
void vtkMRMLStorableNode::SetAndObserveNthStorageNodeID ( int  n,
const char *  storageNodeID 
) [inline]

Definition at line 86 of file vtkMRMLStorableNode.h.

void vtkMRMLStorableNode::SetAndObserveStorageNodeID ( const char *  storageNodeID) [inline]

String ID of the storage MRML node

Definition at line 76 of file vtkMRMLStorableNode.h.

void vtkMRMLStorableNode::SetSlicerDataType ( const char *  type)

This is describes the type of data stored in the nodes storage node(s). It's an informatics metadata mechanism so that Slicer knows what kinds of nodes to create to receive downloaded datasets, and works around potential ambiguity of file extensions, etc. Method is called when storage nodes are created. The method gets applied to any storable data that should be saved with, and loaded with the scene, including nodes that are hidden from editors like scalar overlays.

virtual void vtkMRMLStorableNode::SetStorageNodeReferenceRererenceMRMLAttributeName ( const char *  ) [protected, virtual]
virtual void vtkMRMLStorableNode::SetStorageNodeReferenceRole ( const char *  ) [protected, virtual]
virtual void vtkMRMLStorableNode::UpdateScene ( vtkMRMLScene scene) [virtual]
virtual void vtkMRMLStorableNode::WriteXML ( ostream &  of,
int  indent 
) [virtual]

Member Data Documentation

std::string vtkMRMLStorableNode::SlicerDataType [protected]

SlicerDataType records the kind of storage node that holds the data. Set in each subclass.

Definition at line 166 of file vtkMRMLStorableNode.h.

Last time when a storable property was modified. This is used to know if the node has been modified since the last time it was read or written on disk. The time stamp must be updated (Modified()) - in the derived classes - any time a "storable" property is changed. A storable property is a property that is stored on disk, not in the MRML scene: e.g. points and cells for a Model, voxel intensity or origin for a Volume...

See also:
GetModifiedSinceRead(), GetStoredTime()

Definition at line 185 of file vtkMRMLStorableNode.h.

Definition at line 152 of file vtkMRMLStorableNode.h.

Definition at line 151 of file vtkMRMLStorableNode.h.

Definition at line 158 of file vtkMRMLStorableNode.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines