VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
vtkModelMetadata Class Reference

This class encapsulates the metadata that appear in mesh-based file formats but do not appear in vtkUnstructuredGrid. More...

#include <vtkModelMetadata.h>

Inheritance diagram for vtkModelMetadata:
[legend]
Collaboration diagram for vtkModelMetadata:
[legend]

Public Types

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

Public Member Functions

virtual int IsA (const char *type)
 
vtkModelMetadataNewInstance () const
 
virtual void PrintSelf (ostream &os, vtkIndent indent)
 
virtual void PrintGlobalInformation ()
 
virtual void PrintLocalInformation ()
 
void SetInformationLines (int numLines, char **lines)
 
int GetInformationLines (char ***lines) const
 
floatGetTimeStepValues () const
 
int GetDimension () const
 
int GetSumElementsPerBlock () const
 
intGetBlockElementIdListIndex () const
 
intGetBlockAttributesIndex () const
 
int GetSumDistFactPerNodeSet () const
 
int GetSumDistFactPerSideSet () const
 
intGetSideSetListIndex () const
 
int GetOriginalNumberOfNodeVariables () const
 
char ** GetOriginalNodeVariableNames () const
 
int GetNumberOfNodeVariables () const
 
char ** GetNodeVariableNames () const
 
intGetNodeVariableNumberOfComponents () const
 
intGetMapToOriginalNodeVariableNames () const
 
void Reset ()
 
virtual void SetTitle (const char *)
 
const char * GetTitle () const
 
int GetNumberOfInformationLines () const
 
virtual void SetTimeStepIndex (int)
 
int GetTimeStepIndex () const
 
void SetTimeSteps (int numberOfTimeSteps, float *timeStepValues)
 
int GetNumberOfTimeSteps () const
 
void SetCoordinateNames (int dimension, char **)
 
char ** GetCoordinateNames () const
 
virtual void SetNumberOfBlocks (int)
 
int GetNumberOfBlocks () const
 
void SetBlockIds (int *)
 
intGetBlockIds () const
 
void SetBlockElementType (char **)
 
char ** GetBlockElementType () const
 
int SetBlockNumberOfElements (int *nelts)
 
intGetBlockNumberOfElements () const
 
void SetBlockNodesPerElement (int *)
 
intGetBlockNodesPerElement () const
 
void SetBlockElementIdList (int *)
 
intGetBlockElementIdList () const
 
int SetBlockNumberOfAttributesPerElement (int *natts)
 
intGetBlockNumberOfAttributesPerElement () const
 
void SetBlockAttributes (float *)
 
floatGetBlockAttributes () const
 
int GetSizeBlockAttributeArray () const
 
virtual void SetNumberOfNodeSets (int)
 
int GetNumberOfNodeSets () const
 
void SetNodeSetIds (int *)
 
intGetNodeSetIds () const
 
void SetNodeSetSize (int *)
 
intGetNodeSetSize () const
 
void SetNodeSetNodeIdList (int *)
 
intGetNodeSetNodeIdList () const
 
void SetNodeSetNumberOfDistributionFactors (int *)
 
intGetNodeSetNumberOfDistributionFactors () const
 
void SetNodeSetDistributionFactors (float *)
 
floatGetNodeSetDistributionFactors () const
 
virtual void SetSumNodesPerNodeSet (int)
 
int GetSumNodesPerNodeSet () const
 
intGetNodeSetNodeIdListIndex () const
 
intGetNodeSetDistributionFactorIndex () const
 
virtual void SetNumberOfSideSets (int)
 
int GetNumberOfSideSets () const
 
void SetSideSetIds (int *)
 
intGetSideSetIds () const
 
int SetSideSetSize (int *sizes)
 
intGetSideSetSize () const
 
int SetSideSetNumberOfDistributionFactors (int *df)
 
intGetSideSetNumberOfDistributionFactors () const
 
void SetSideSetElementList (int *)
 
intGetSideSetElementList () const
 
void SetSideSetSideList (int *)
 
intGetSideSetSideList () const
 
void SetSideSetNumDFPerSide (int *numNodes)
 
intGetSideSetNumDFPerSide () const
 
void SetSideSetDistributionFactors (float *)
 
floatGetSideSetDistributionFactors () const
 
virtual void SetSumSidesPerSideSet (int)
 
int GetSumSidesPerSideSet () const
 
intGetSideSetDistributionFactorIndex () const
 
int GetNumberOfBlockProperties () const
 
void SetBlockPropertyNames (int numProp, char **names)
 
char ** GetBlockPropertyNames () const
 
void SetBlockPropertyValue (int *)
 
intGetBlockPropertyValue () const
 
int GetNumberOfNodeSetProperties () const
 
void SetNodeSetPropertyNames (int numProp, char **names)
 
char ** GetNodeSetPropertyNames () const
 
void SetNodeSetPropertyValue (int *)
 
intGetNodeSetPropertyValue () const
 
int GetNumberOfSideSetProperties () const
 
void SetSideSetPropertyNames (int numProp, char **names)
 
char ** GetSideSetPropertyNames () const
 
void SetSideSetPropertyValue (int *)
 
intGetSideSetPropertyValue () const
 
int GetNumberOfGlobalVariables () const
 
void SetGlobalVariableNames (int numVarNames, char **n)
 
char ** GetGlobalVariableNames () const
 
void SetGlobalVariableValue (float *f)
 
floatGetGlobalVariableValue () const
 
void SetElementVariableInfo (int numOrigNames, char **origNames, int numNames, char **names, int *numComp, int *map)
 
void SetNodeVariableInfo (int numOrigNames, char **origNames, int numNames, char **names, int *numComp, int *map)
 
void SetElementVariableTruthTable (int *)
 
intGetElementVariableTruthTable () const
 
virtual void SetAllVariablesDefinedInAllBlocks (int)
 
virtual void AllVariablesDefinedInAllBlocksOn ()
 
virtual void AllVariablesDefinedInAllBlocksOff ()
 
int GetAllVariablesDefinedInAllBlocks () const
 
int GetOriginalNumberOfElementVariables () const
 
char ** GetOriginalElementVariableNames () const
 
int GetNumberOfElementVariables () const
 
char ** GetElementVariableNames () const
 
intGetElementVariableNumberOfComponents () const
 
intGetMapToOriginalElementVariableNames () const
 
void FreeAllGlobalData ()
 
void FreeAllLocalData ()
 
void FreeBlockDependentData ()
 
void FreeOriginalElementVariableNames ()
 
void FreeOriginalNodeVariableNames ()
 
void FreeUsedElementVariableNames ()
 
void FreeUsedNodeVariableNames ()
 
void FreeUsedElementVariables ()
 
void FreeUsedNodeVariables ()
 
- Public Member Functions inherited from vtkObject
vtkObjectNewInstance () const
 
virtual void DebugOn ()
 
virtual void DebugOff ()
 
bool GetDebug ()
 
void SetDebug (bool debugFlag)
 
virtual void Modified ()
 
virtual unsigned long GetMTime ()
 
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
 
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
 
vtkCommandGetCommand (unsigned long tag)
 
void RemoveObserver (vtkCommand *)
 
void RemoveObservers (unsigned long event, vtkCommand *)
 
void RemoveObservers (const char *event, vtkCommand *)
 
int HasObserver (unsigned long event, vtkCommand *)
 
int HasObserver (const char *event, vtkCommand *)
 
void RemoveObserver (unsigned long tag)
 
void RemoveObservers (unsigned long event)
 
void RemoveObservers (const char *event)
 
void RemoveAllObservers ()
 
int HasObserver (unsigned long event)
 
int HasObserver (const char *event)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
int InvokeEvent (unsigned long event, void *callData)
 
int InvokeEvent (const char *event, void *callData)
 
int InvokeEvent (unsigned long event)
 
int InvokeEvent (const char *event)
 
- Public Member Functions inherited from vtkObjectBase
const char * GetClassName () const
 
virtual void Delete ()
 
virtual void FastDelete ()
 
void Print (ostream &os)
 
virtual void Register (vtkObjectBase *o)
 
virtual void UnRegister (vtkObjectBase *o)
 
void SetReferenceCount (int)
 
void PrintRevisions (ostream &)
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 
int GetReferenceCount ()
 

Static Public Member Functions

static int IsTypeOf (const char *type)
 
static vtkModelMetadataSafeDownCast (vtkObjectBase *o)
 
static vtkModelMetadataNew ()
 
- Static Public Member Functions inherited from vtkObject
static int IsTypeOf (const char *type)
 
static vtkObjectSafeDownCast (vtkObjectBase *o)
 
static vtkObjectNew ()
 
static void BreakOnError ()
 
static void SetGlobalWarningDisplay (int val)
 
static void GlobalWarningDisplayOn ()
 
static void GlobalWarningDisplayOff ()
 
static int GetGlobalWarningDisplay ()
 
- Static Public Member Functions inherited from vtkObjectBase
static int IsTypeOf (const char *name)
 
static vtkObjectBaseNew ()
 

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 
 vtkModelMetadata ()
 
 ~vtkModelMetadata ()
 
- Protected Member Functions inherited from vtkObject
 vtkObject ()
 
virtual ~vtkObject ()
 
virtual void RegisterInternal (vtkObjectBase *, int check)
 
virtual void UnRegisterInternal (vtkObjectBase *, int check)
 
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
 
void InternalReleaseFocus ()
 
- Protected Member Functions inherited from vtkObjectBase
 vtkObjectBase ()
 
virtual ~vtkObjectBase ()
 
virtual void CollectRevisions (ostream &)
 
virtual void ReportReferences (vtkGarbageCollector *)
 
 vtkObjectBase (const vtkObjectBase &)
 
void operator= (const vtkObjectBase &)
 

Additional Inherited Members

- Protected Attributes inherited from vtkObject
bool Debug
 
vtkTimeStamp MTime
 
vtkSubjectHelper * SubjectHelper
 
- Protected Attributes inherited from vtkObjectBase
vtkAtomicInt32 ReferenceCount
 
vtkWeakPointerBase ** WeakPointers
 

Detailed Description

This class encapsulates the metadata that appear in mesh-based file formats but do not appear in vtkUnstructuredGrid.

This class is inspired by the Exodus II file format, but because this class does not depend on the Exodus library, it should be possible to use it to represent metadata for other dataset file formats. Sandia Labs uses it in their Exodus II reader, their Exodus II writer and their EnSight writer. vtkDistributedDataFilter looks for metadata attached to it's input and redistributes the metadata with the grid.

The fields in this class are those described in the document "EXODUS II: A Finite Element Data Model", SAND92-2137, November 1995.

Element and node IDs stored in this object must be global IDs, in the event that the original dataset was partitioned across many files.

One way to initialize this object is by using vtkExodusModel (a Sandia class used by the Sandia Exodus reader). That class will take an open Exodus II file and a vtkUnstructuredGrid drawn from it and will set the required fields.

Alternatively, you can use all the Set* methods to set the individual fields. This class does not copy the data, it simply uses your pointer. This class will free the storage associated with your pointer when the class is deleted. Most fields have sensible defaults. The only requirement is that if you are using this ModelMetadata to write out an Exodus or EnSight file in parallel, you must SetBlockIds and SetBlockIdArrayName. Your vtkUnstructuredGrid must have a cell array giving the block ID for each cell.

Warning
The Exodus II library supports an optimized element order map (section 3.7 in the SAND document). It contains all the element IDs, listed in the order in which a solver should process them. We don't include this, and won't unless there is a request.
There is an assumption in some classes that the name of the cell array containing global element ids is "GlobalElementId" and the name of the point array containing global node ids is "GlobalNodeId". (element == cell) and (node == point).
See also
vtkDistributedDataFilter vtkExtractCells

Definition at line 86 of file vtkModelMetadata.h.

Member Typedef Documentation

Definition at line 89 of file vtkModelMetadata.h.

Constructor & Destructor Documentation

vtkModelMetadata::vtkModelMetadata ( )
protected
vtkModelMetadata::~vtkModelMetadata ( )
protected

Member Function Documentation

static int vtkModelMetadata::IsTypeOf ( const char *  type)
static
virtual int vtkModelMetadata::IsA ( const char *  name)
virtual

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkObject.

static vtkModelMetadata* vtkModelMetadata::SafeDownCast ( vtkObjectBase o)
static
virtual vtkObjectBase* vtkModelMetadata::NewInstanceInternal ( ) const
protectedvirtual

Reimplemented from vtkObject.

vtkModelMetadata* vtkModelMetadata::NewInstance ( ) const
virtual void vtkModelMetadata::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkObject.

static vtkModelMetadata* vtkModelMetadata::New ( )
static
virtual void vtkModelMetadata::PrintGlobalInformation ( )
virtual

The global fields are those which pertain to the whole file. Examples are the title, information lines, and list of block IDs. This method prints out all the global information.

virtual void vtkModelMetadata::PrintLocalInformation ( )
virtual

The local fields are those which depend on exactly which blocks, which time step, and which variables you read in from the file. Examples are the number of cells in each block, and the list of nodes in a node set, or the value of the global variables at a time step. If VERBOSE_TESTING is defined in your execution environment, this method will print more than mere counts, and actually print a few of the IDs, distribution factors and so on. If VERY_VERBOSE_TESTING is defined, it will print out all ID lists, distribution factor lists, and so on.

virtual void vtkModelMetadata::SetTitle ( const char *  )
virtual

The title of the dataset.

const char* vtkModelMetadata::GetTitle ( ) const
inline

The title of the dataset.

Definition at line 114 of file vtkModelMetadata.h.

void vtkModelMetadata::SetInformationLines ( int  numLines,
char **  lines 
)

Set the information lines.

int vtkModelMetadata::GetInformationLines ( char ***  lines) const

Get a pointer to all the information lines. The number of lines is returned;

int vtkModelMetadata::GetNumberOfInformationLines ( ) const
inline

Get the number of information lines.

Definition at line 126 of file vtkModelMetadata.h.

virtual void vtkModelMetadata::SetTimeStepIndex ( int  )
virtual

Set the index of the time step represented by the results data in the file attached to this ModelMetadata object. Time step indices start at 0 in this file, they start at 1 in an Exodus file.

int vtkModelMetadata::GetTimeStepIndex ( ) const
inline

Set the index of the time step represented by the results data in the file attached to this ModelMetadata object. Time step indices start at 0 in this file, they start at 1 in an Exodus file.

Definition at line 135 of file vtkModelMetadata.h.

void vtkModelMetadata::SetTimeSteps ( int  numberOfTimeSteps,
float timeStepValues 
)

Set the total number of time steps in the file, and the value at each time step. We use your time step value array and delete it when we're done.

int vtkModelMetadata::GetNumberOfTimeSteps ( ) const
inline

Set the total number of time steps in the file, and the value at each time step. We use your time step value array and delete it when we're done.

Definition at line 143 of file vtkModelMetadata.h.

float* vtkModelMetadata::GetTimeStepValues ( ) const
inline

Get the time step values

Definition at line 147 of file vtkModelMetadata.h.

void vtkModelMetadata::SetCoordinateNames ( int  dimension,
char **   
)

The name of the one, two or three coordinate dimensions.

char** vtkModelMetadata::GetCoordinateNames ( ) const
inline

The name of the one, two or three coordinate dimensions.

Definition at line 152 of file vtkModelMetadata.h.

int vtkModelMetadata::GetDimension ( ) const
inline

Get the dimension of the model. This is also the number of coordinate names.

Definition at line 157 of file vtkModelMetadata.h.

virtual void vtkModelMetadata::SetNumberOfBlocks ( int  )
virtual

The number of blocks in the file. Set this before setting any of the block arrays.

int vtkModelMetadata::GetNumberOfBlocks ( ) const
inline

The number of blocks in the file. Set this before setting any of the block arrays.

Definition at line 163 of file vtkModelMetadata.h.

void vtkModelMetadata::SetBlockIds ( int )

An arbitrary integer ID for each block. We use your pointer, and free the memory when the object is freed.

int* vtkModelMetadata::GetBlockIds ( ) const
inline

An arbitrary integer ID for each block. We use your pointer, and free the memory when the object is freed.

Definition at line 170 of file vtkModelMetadata.h.

void vtkModelMetadata::SetBlockElementType ( char **  )

Element type for each block - a name that means something to person who created the file. We use your pointers, and free the memory when the object is freed.

char** vtkModelMetadata::GetBlockElementType ( ) const
inline

Element type for each block - a name that means something to person who created the file. We use your pointers, and free the memory when the object is freed.

Definition at line 178 of file vtkModelMetadata.h.

int vtkModelMetadata::SetBlockNumberOfElements ( int nelts)

Set or get a pointer to a list of the number of elements in each block. We use your pointers, and free the memory when the object is freed.

int* vtkModelMetadata::GetBlockNumberOfElements ( ) const
inline

Set or get a pointer to a list of the number of elements in each block. We use your pointers, and free the memory when the object is freed.

Definition at line 186 of file vtkModelMetadata.h.

void vtkModelMetadata::SetBlockNodesPerElement ( int )

Set or get a pointer to a list of the number of nodes in the elements of each block. We use your pointers, and free the memory when the object is freed.

int* vtkModelMetadata::GetBlockNodesPerElement ( ) const
inline

Set or get a pointer to a list of the number of nodes in the elements of each block. We use your pointers, and free the memory when the object is freed.

Definition at line 194 of file vtkModelMetadata.h.

void vtkModelMetadata::SetBlockElementIdList ( int )

Set or get a pointer to a list global element IDs for the elements in each block. We use your pointers, and free the memory when the object is freed.

int* vtkModelMetadata::GetBlockElementIdList ( ) const
inline

Set or get a pointer to a list global element IDs for the elements in each block. We use your pointers, and free the memory when the object is freed.

Definition at line 202 of file vtkModelMetadata.h.

int vtkModelMetadata::GetSumElementsPerBlock ( ) const
inline

Get the length of the list of elements in every block.

Definition at line 206 of file vtkModelMetadata.h.

int* vtkModelMetadata::GetBlockElementIdListIndex ( ) const
inline

Get a list of the index into the BlockElementIdList of the start of each block's elements.

Definition at line 210 of file vtkModelMetadata.h.

int vtkModelMetadata::SetBlockNumberOfAttributesPerElement ( int natts)

Set or get a pointer to a list of the number of attributes stored for the elements in each block. We use your pointers, and free the memory when the object is freed.

int* vtkModelMetadata::GetBlockNumberOfAttributesPerElement ( ) const
inline

Set or get a pointer to a list of the number of attributes stored for the elements in each block. We use your pointers, and free the memory when the object is freed.

Definition at line 217 of file vtkModelMetadata.h.

void vtkModelMetadata::SetBlockAttributes ( float )

Set or get a pointer to a list of the attributes for all blocks. The order of the list should be by block, by element within the block, by attribute. Omit blocks that don't have element attributes.

float* vtkModelMetadata::GetBlockAttributes ( ) const
inline

Set or get a pointer to a list of the attributes for all blocks. The order of the list should be by block, by element within the block, by attribute. Omit blocks that don't have element attributes.

Definition at line 225 of file vtkModelMetadata.h.

int vtkModelMetadata::GetSizeBlockAttributeArray ( ) const
inline

Get the length of the list of floating point block attributes.

Definition at line 230 of file vtkModelMetadata.h.

int* vtkModelMetadata::GetBlockAttributesIndex ( ) const
inline

Get a list of the index into the BlockAttributes of the start of each block's element attribute list.

Definition at line 236 of file vtkModelMetadata.h.

virtual void vtkModelMetadata::SetNumberOfNodeSets ( int  )
virtual

The number of node sets in the file. Set this value before setting the various node set arrays.

int vtkModelMetadata::GetNumberOfNodeSets ( ) const
inline

The number of node sets in the file. Set this value before setting the various node set arrays.

Definition at line 242 of file vtkModelMetadata.h.

void vtkModelMetadata::SetNodeSetIds ( int )

Set or get the list the IDs for each node set. Length of list is the number of node sets. We use your pointer, and free the memory when the object is freed.

int* vtkModelMetadata::GetNodeSetIds ( ) const
inline

Set or get the list the IDs for each node set. Length of list is the number of node sets. We use your pointer, and free the memory when the object is freed.

Definition at line 250 of file vtkModelMetadata.h.

void vtkModelMetadata::SetNodeSetSize ( int )

Set or get a pointer to a list of the number of nodes in each node set. We use your pointer, and free the memory when the object is freed.

int* vtkModelMetadata::GetNodeSetSize ( ) const
inline

Set or get a pointer to a list of the number of nodes in each node set. We use your pointer, and free the memory when the object is freed.

Definition at line 258 of file vtkModelMetadata.h.

void vtkModelMetadata::SetNodeSetNodeIdList ( int )

Set or get a pointer to a concatenated list of the IDs of all nodes in each node set. First list all IDs in node set 0, then all IDs in node set 1, and so on. We use your pointer, and free the memory when the object is freed.

int* vtkModelMetadata::GetNodeSetNodeIdList ( ) const
inline

Set or get a pointer to a concatenated list of the IDs of all nodes in each node set. First list all IDs in node set 0, then all IDs in node set 1, and so on. We use your pointer, and free the memory when the object is freed.

Definition at line 267 of file vtkModelMetadata.h.

void vtkModelMetadata::SetNodeSetNumberOfDistributionFactors ( int )

Set or get a list of the number of distribution factors stored by each node set. This is either 0 or equal to the number of nodes in the node set. Length of list is number of node sets. We use your pointer, and free the memory when the object is freed.

int* vtkModelMetadata::GetNodeSetNumberOfDistributionFactors ( ) const
inline

Set or get a list of the number of distribution factors stored by each node set. This is either 0 or equal to the number of nodes in the node set. Length of list is number of node sets. We use your pointer, and free the memory when the object is freed.

Definition at line 276 of file vtkModelMetadata.h.

void vtkModelMetadata::SetNodeSetDistributionFactors ( float )

Set or get a list of the distribution factors for the node sets. The list is organized by node set, and within node set by node. We use your pointer, and free the memory when the object is freed.

float* vtkModelMetadata::GetNodeSetDistributionFactors ( ) const
inline

Set or get a list of the distribution factors for the node sets. The list is organized by node set, and within node set by node. We use your pointer, and free the memory when the object is freed.

Definition at line 285 of file vtkModelMetadata.h.

virtual void vtkModelMetadata::SetSumNodesPerNodeSet ( int  )
virtual

Get the total number of nodes in all node sets

int vtkModelMetadata::GetSumNodesPerNodeSet ( ) const
inline

Get the total number of nodes in all node sets

Definition at line 292 of file vtkModelMetadata.h.

int vtkModelMetadata::GetSumDistFactPerNodeSet ( ) const
inline

Get the total number of distribution factors stored for all node sets

Definition at line 296 of file vtkModelMetadata.h.

int* vtkModelMetadata::GetNodeSetNodeIdListIndex ( ) const
inline

Get a list of the index of the starting entry for each node set in the list of node set node IDs.

Definition at line 301 of file vtkModelMetadata.h.

int* vtkModelMetadata::GetNodeSetDistributionFactorIndex ( ) const
inline

Get a list of the index of the starting entry for each node set in the list of node set distribution factors.

Definition at line 308 of file vtkModelMetadata.h.

virtual void vtkModelMetadata::SetNumberOfSideSets ( int  )
virtual

Set or get the number of side sets. Set this value before setting any of the other side set arrays.

int vtkModelMetadata::GetNumberOfSideSets ( ) const
inline

Set or get the number of side sets. Set this value before setting any of the other side set arrays.

Definition at line 316 of file vtkModelMetadata.h.

void vtkModelMetadata::SetSideSetIds ( int )

Set or get a pointer to a list giving the ID of each side set. We use your pointer, and free the memory when the object is freed.

int* vtkModelMetadata::GetSideSetIds ( ) const
inline

Set or get a pointer to a list giving the ID of each side set. We use your pointer, and free the memory when the object is freed.

Definition at line 323 of file vtkModelMetadata.h.

int vtkModelMetadata::SetSideSetSize ( int sizes)

Set or get a pointer to a list of the number of sides in each side set. We use your pointer, and free the memory when the object is freed.

int* vtkModelMetadata::GetSideSetSize ( ) const
inline

Set or get a pointer to a list of the number of sides in each side set. We use your pointer, and free the memory when the object is freed.

Definition at line 331 of file vtkModelMetadata.h.

int vtkModelMetadata::SetSideSetNumberOfDistributionFactors ( int df)

Set or get a pointer to a list of the number of distribution factors stored by each side set. Each side set has either no distribution factors, or 1 per node in the side set. We use your pointer, and free the memory when the object is freed.

int* vtkModelMetadata::GetSideSetNumberOfDistributionFactors ( ) const
inline

Set or get a pointer to a list of the number of distribution factors stored by each side set. Each side set has either no distribution factors, or 1 per node in the side set. We use your pointer, and free the memory when the object is freed.

Definition at line 340 of file vtkModelMetadata.h.

void vtkModelMetadata::SetSideSetElementList ( int )

Set or get a pointer to a list of the elements containing each side in each side set. The list is organized by side set, and within side set by element. We use your pointer, and free the memory when the object is freed.

int* vtkModelMetadata::GetSideSetElementList ( ) const
inline

Set or get a pointer to a list of the elements containing each side in each side set. The list is organized by side set, and within side set by element. We use your pointer, and free the memory when the object is freed.

Definition at line 350 of file vtkModelMetadata.h.

void vtkModelMetadata::SetSideSetSideList ( int )

Set or get a pointer to the element side for each side in the side set. (See the manual for the convention for numbering sides in different types of cells.) Side Ids are arranged by side set and within side set by side, and correspond to the SideSetElementList. We use your pointer, and free the memory when the object is freed.

int* vtkModelMetadata::GetSideSetSideList ( ) const
inline

Set or get a pointer to the element side for each side in the side set. (See the manual for the convention for numbering sides in different types of cells.) Side Ids are arranged by side set and within side set by side, and correspond to the SideSetElementList. We use your pointer, and free the memory when the object is freed.

Definition at line 360 of file vtkModelMetadata.h.

void vtkModelMetadata::SetSideSetNumDFPerSide ( int numNodes)

Set or get a pointer to a list of the number of nodes in each side of each side set. This list is organized by side set, and within side set by side. We use your pointer, and free the memory when the object is freed.

int* vtkModelMetadata::GetSideSetNumDFPerSide ( ) const
inline

Set or get a pointer to a list of the number of nodes in each side of each side set. This list is organized by side set, and within side set by side. We use your pointer, and free the memory when the object is freed.

Definition at line 369 of file vtkModelMetadata.h.

void vtkModelMetadata::SetSideSetDistributionFactors ( float )

Set or get a pointer to a list of all the distribution factors. For every side set that has distribution factors, the number of factors per node was given in the SideSetNumberOfDistributionFactors array. If this number for a given side set is N, then for that side set we have N floating point values for each node for each side in the side set. If nodes are repeated in more than one side, we repeat the distribution factors. So this list is in order by side set, by node. We use your pointer, and free the memory when the object is freed.

float* vtkModelMetadata::GetSideSetDistributionFactors ( ) const
inline

Set or get a pointer to a list of all the distribution factors. For every side set that has distribution factors, the number of factors per node was given in the SideSetNumberOfDistributionFactors array. If this number for a given side set is N, then for that side set we have N floating point values for each node for each side in the side set. If nodes are repeated in more than one side, we repeat the distribution factors. So this list is in order by side set, by node. We use your pointer, and free the memory when the object is freed.

Definition at line 382 of file vtkModelMetadata.h.

virtual void vtkModelMetadata::SetSumSidesPerSideSet ( int  )
virtual

Get the total number of sides in all side sets

int vtkModelMetadata::GetSumSidesPerSideSet ( ) const
inline

Get the total number of sides in all side sets

Definition at line 389 of file vtkModelMetadata.h.

int vtkModelMetadata::GetSumDistFactPerSideSet ( ) const
inline

Get the total number of distribution factors stored for all side sets

Definition at line 393 of file vtkModelMetadata.h.

int* vtkModelMetadata::GetSideSetListIndex ( ) const
inline

Get a list of the index of the starting entry for each side set in the list of side set side IDs.

Definition at line 397 of file vtkModelMetadata.h.

int* vtkModelMetadata::GetSideSetDistributionFactorIndex ( ) const
inline

Get a list of the index of the starting entry for each side set in the list of side set distribution factors.

Definition at line 402 of file vtkModelMetadata.h.

int vtkModelMetadata::GetNumberOfBlockProperties ( ) const
inline

The number of block properties (global variables)

Definition at line 408 of file vtkModelMetadata.h.

void vtkModelMetadata::SetBlockPropertyNames ( int  numProp,
char **  names 
)

Set or get the names of the block properties.

char** vtkModelMetadata::GetBlockPropertyNames ( ) const
inline

Set or get the names of the block properties.

Definition at line 415 of file vtkModelMetadata.h.

void vtkModelMetadata::SetBlockPropertyValue ( int )

Set or get value for each variable for each block. List the integer values in order by variable and within variable by block.

int* vtkModelMetadata::GetBlockPropertyValue ( ) const
inline

Set or get value for each variable for each block. List the integer values in order by variable and within variable by block.

Definition at line 422 of file vtkModelMetadata.h.

int vtkModelMetadata::GetNumberOfNodeSetProperties ( ) const
inline

The number of node set properties (global variables)

Definition at line 427 of file vtkModelMetadata.h.

void vtkModelMetadata::SetNodeSetPropertyNames ( int  numProp,
char **  names 
)

Set or get the names of the node setproperties.

char** vtkModelMetadata::GetNodeSetPropertyNames ( ) const
inline

Set or get the names of the node setproperties.

Definition at line 434 of file vtkModelMetadata.h.

void vtkModelMetadata::SetNodeSetPropertyValue ( int )

Set or get value for each variable for each node set. List the integer values in order by variable and within variable by node set.

int* vtkModelMetadata::GetNodeSetPropertyValue ( ) const
inline

Set or get value for each variable for each node set. List the integer values in order by variable and within variable by node set.

Definition at line 441 of file vtkModelMetadata.h.

int vtkModelMetadata::GetNumberOfSideSetProperties ( ) const
inline

The number of side set properties (global variables)

Definition at line 446 of file vtkModelMetadata.h.

void vtkModelMetadata::SetSideSetPropertyNames ( int  numProp,
char **  names 
)

Set or get the names of the side set properties.

char** vtkModelMetadata::GetSideSetPropertyNames ( ) const
inline

Set or get the names of the side set properties.

Definition at line 453 of file vtkModelMetadata.h.

void vtkModelMetadata::SetSideSetPropertyValue ( int )

Set or get value for each variable for each side set. List the integer values in order by variable and within variable by side set.

int* vtkModelMetadata::GetSideSetPropertyValue ( ) const
inline

Set or get value for each variable for each side set. List the integer values in order by variable and within variable by side set.

Definition at line 460 of file vtkModelMetadata.h.

int vtkModelMetadata::GetNumberOfGlobalVariables ( ) const
inline

Get the number of global variables per time step

Definition at line 465 of file vtkModelMetadata.h.

void vtkModelMetadata::SetGlobalVariableNames ( int  numVarNames,
char **  n 
)

Set or get the names of the global variables

char** vtkModelMetadata::GetGlobalVariableNames ( ) const
inline

Set or get the names of the global variables

Definition at line 472 of file vtkModelMetadata.h.

void vtkModelMetadata::SetGlobalVariableValue ( float f)

Set or get the values of the global variables at the current time step.

float* vtkModelMetadata::GetGlobalVariableValue ( ) const
inline

Set or get the values of the global variables at the current time step.

Definition at line 479 of file vtkModelMetadata.h.

void vtkModelMetadata::SetElementVariableInfo ( int  numOrigNames,
char **  origNames,
int  numNames,
char **  names,
int numComp,
int map 
)

The ModelMetadata maintains a list of the element variables that were in the original file, and a list of the cell variables in the UGrid derived from that file. Some of the scalar variables in the original file were combined into vectors in the UGrid. In this method, provide the number of original element variables, the names of the original element variables, the number of element variables in the UGrid, the number of components for each of those variables, and a map from each UGrid variable to the the variable in the list of original names that represents it's first component.

void vtkModelMetadata::SetNodeVariableInfo ( int  numOrigNames,
char **  origNames,
int  numNames,
char **  names,
int numComp,
int map 
)

The ModelMetadata maintains a list of the node variables that were in the original file, and a list of the node variables in the UGrid derived from that file. Some of the scalar variables in the original file were combined into vectors in the UGrid. In this method, provide the number of original node variables, the names of the original node variables, the number of node variables in the UGrid, the number of components for each of those variables, and a map from each UGrid variable to the the variable in the list of original names that represents it's first component.

void vtkModelMetadata::SetElementVariableTruthTable ( int )

A truth table indicating which element variables are defined for which blocks. The variables are all the original element variables that were in the file. The table is by block ID and within block ID by variable.

int* vtkModelMetadata::GetElementVariableTruthTable ( ) const
inline

A truth table indicating which element variables are defined for which blocks. The variables are all the original element variables that were in the file. The table is by block ID and within block ID by variable.

Definition at line 518 of file vtkModelMetadata.h.

virtual void vtkModelMetadata::SetAllVariablesDefinedInAllBlocks ( int  )
virtual

Instead of a truth table of all "1"s, you can set this instance variable to indicate that all variables are defined in all blocks.

virtual void vtkModelMetadata::AllVariablesDefinedInAllBlocksOn ( )
virtual

Instead of a truth table of all "1"s, you can set this instance variable to indicate that all variables are defined in all blocks.

virtual void vtkModelMetadata::AllVariablesDefinedInAllBlocksOff ( )
virtual

Instead of a truth table of all "1"s, you can set this instance variable to indicate that all variables are defined in all blocks.

int vtkModelMetadata::GetAllVariablesDefinedInAllBlocks ( ) const
inline

Instead of a truth table of all "1"s, you can set this instance variable to indicate that all variables are defined in all blocks.

Definition at line 527 of file vtkModelMetadata.h.

int vtkModelMetadata::GetOriginalNumberOfElementVariables ( ) const
inline

The ModelMetadata object may contain these lists: o the variables in the original data file o the variables created in the u grid from those original variables o a mapping from the grid variable names to the original names o a list of the number of components each grid variable has (Example: Variables in Exodus II files are all scalars. Some are combined by the ExodusReader into vector variables in the grid.) These methods return names of the original variables, the names of the grid variables, a list of the number of components in each grid variable, and a list of the index into the list of original variable names where the original name of the first component of a grid variable may be found. The names of subsequent components would immediately follow the name of the the first component.

Definition at line 544 of file vtkModelMetadata.h.

char** vtkModelMetadata::GetOriginalElementVariableNames ( ) const
inline

The ModelMetadata object may contain these lists: o the variables in the original data file o the variables created in the u grid from those original variables o a mapping from the grid variable names to the original names o a list of the number of components each grid variable has (Example: Variables in Exodus II files are all scalars. Some are combined by the ExodusReader into vector variables in the grid.) These methods return names of the original variables, the names of the grid variables, a list of the number of components in each grid variable, and a list of the index into the list of original variable names where the original name of the first component of a grid variable may be found. The names of subsequent components would immediately follow the name of the the first component.

Definition at line 546 of file vtkModelMetadata.h.

int vtkModelMetadata::GetNumberOfElementVariables ( ) const
inline

The ModelMetadata object may contain these lists: o the variables in the original data file o the variables created in the u grid from those original variables o a mapping from the grid variable names to the original names o a list of the number of components each grid variable has (Example: Variables in Exodus II files are all scalars. Some are combined by the ExodusReader into vector variables in the grid.) These methods return names of the original variables, the names of the grid variables, a list of the number of components in each grid variable, and a list of the index into the list of original variable names where the original name of the first component of a grid variable may be found. The names of subsequent components would immediately follow the name of the the first component.

Definition at line 548 of file vtkModelMetadata.h.

char** vtkModelMetadata::GetElementVariableNames ( ) const
inline

The ModelMetadata object may contain these lists: o the variables in the original data file o the variables created in the u grid from those original variables o a mapping from the grid variable names to the original names o a list of the number of components each grid variable has (Example: Variables in Exodus II files are all scalars. Some are combined by the ExodusReader into vector variables in the grid.) These methods return names of the original variables, the names of the grid variables, a list of the number of components in each grid variable, and a list of the index into the list of original variable names where the original name of the first component of a grid variable may be found. The names of subsequent components would immediately follow the name of the the first component.

Definition at line 550 of file vtkModelMetadata.h.

int* vtkModelMetadata::GetElementVariableNumberOfComponents ( ) const
inline

The ModelMetadata object may contain these lists: o the variables in the original data file o the variables created in the u grid from those original variables o a mapping from the grid variable names to the original names o a list of the number of components each grid variable has (Example: Variables in Exodus II files are all scalars. Some are combined by the ExodusReader into vector variables in the grid.) These methods return names of the original variables, the names of the grid variables, a list of the number of components in each grid variable, and a list of the index into the list of original variable names where the original name of the first component of a grid variable may be found. The names of subsequent components would immediately follow the name of the the first component.

Definition at line 552 of file vtkModelMetadata.h.

int* vtkModelMetadata::GetMapToOriginalElementVariableNames ( ) const
inline

The ModelMetadata object may contain these lists: o the variables in the original data file o the variables created in the u grid from those original variables o a mapping from the grid variable names to the original names o a list of the number of components each grid variable has (Example: Variables in Exodus II files are all scalars. Some are combined by the ExodusReader into vector variables in the grid.) These methods return names of the original variables, the names of the grid variables, a list of the number of components in each grid variable, and a list of the index into the list of original variable names where the original name of the first component of a grid variable may be found. The names of subsequent components would immediately follow the name of the the first component.

Definition at line 554 of file vtkModelMetadata.h.

int vtkModelMetadata::GetOriginalNumberOfNodeVariables ( ) const
inline

Definition at line 558 of file vtkModelMetadata.h.

char** vtkModelMetadata::GetOriginalNodeVariableNames ( ) const
inline

Definition at line 560 of file vtkModelMetadata.h.

int vtkModelMetadata::GetNumberOfNodeVariables ( ) const
inline

Definition at line 562 of file vtkModelMetadata.h.

char** vtkModelMetadata::GetNodeVariableNames ( ) const
inline

Definition at line 564 of file vtkModelMetadata.h.

int* vtkModelMetadata::GetNodeVariableNumberOfComponents ( ) const
inline

Definition at line 566 of file vtkModelMetadata.h.

int* vtkModelMetadata::GetMapToOriginalNodeVariableNames ( ) const
inline

Definition at line 568 of file vtkModelMetadata.h.

void vtkModelMetadata::FreeAllGlobalData ( )

Free selected portions of the metadata when updating values in the vtkModelMetadata object. Resetting a particular field, (i.e. SetNodeSetIds) frees the previous setting, but if you are not setting every field, you may want to do a wholesale "Free" first. FreeAllGlobalData frees all the fields which don't depend on which time step, which blocks, or which variables are in the input. FreeAllLocalData frees all the fields which do depend on which time step, blocks or variables are in the input. FreeBlockDependentData frees all metadata fields which depend on which blocks were read in.

void vtkModelMetadata::FreeAllLocalData ( )

Free selected portions of the metadata when updating values in the vtkModelMetadata object. Resetting a particular field, (i.e. SetNodeSetIds) frees the previous setting, but if you are not setting every field, you may want to do a wholesale "Free" first. FreeAllGlobalData frees all the fields which don't depend on which time step, which blocks, or which variables are in the input. FreeAllLocalData frees all the fields which do depend on which time step, blocks or variables are in the input. FreeBlockDependentData frees all metadata fields which depend on which blocks were read in.

void vtkModelMetadata::FreeBlockDependentData ( )

Free selected portions of the metadata when updating values in the vtkModelMetadata object. Resetting a particular field, (i.e. SetNodeSetIds) frees the previous setting, but if you are not setting every field, you may want to do a wholesale "Free" first. FreeAllGlobalData frees all the fields which don't depend on which time step, which blocks, or which variables are in the input. FreeAllLocalData frees all the fields which do depend on which time step, blocks or variables are in the input. FreeBlockDependentData frees all metadata fields which depend on which blocks were read in.

void vtkModelMetadata::FreeOriginalElementVariableNames ( )

Free selected portions of the metadata when updating values in the vtkModelMetadata object. Resetting a particular field, (i.e. SetNodeSetIds) frees the previous setting, but if you are not setting every field, you may want to do a wholesale "Free" first. FreeAllGlobalData frees all the fields which don't depend on which time step, which blocks, or which variables are in the input. FreeAllLocalData frees all the fields which do depend on which time step, blocks or variables are in the input. FreeBlockDependentData frees all metadata fields which depend on which blocks were read in.

void vtkModelMetadata::FreeOriginalNodeVariableNames ( )

Free selected portions of the metadata when updating values in the vtkModelMetadata object. Resetting a particular field, (i.e. SetNodeSetIds) frees the previous setting, but if you are not setting every field, you may want to do a wholesale "Free" first. FreeAllGlobalData frees all the fields which don't depend on which time step, which blocks, or which variables are in the input. FreeAllLocalData frees all the fields which do depend on which time step, blocks or variables are in the input. FreeBlockDependentData frees all metadata fields which depend on which blocks were read in.

void vtkModelMetadata::FreeUsedElementVariableNames ( )

Free selected portions of the metadata when updating values in the vtkModelMetadata object. Resetting a particular field, (i.e. SetNodeSetIds) frees the previous setting, but if you are not setting every field, you may want to do a wholesale "Free" first. FreeAllGlobalData frees all the fields which don't depend on which time step, which blocks, or which variables are in the input. FreeAllLocalData frees all the fields which do depend on which time step, blocks or variables are in the input. FreeBlockDependentData frees all metadata fields which depend on which blocks were read in.

void vtkModelMetadata::FreeUsedNodeVariableNames ( )

Free selected portions of the metadata when updating values in the vtkModelMetadata object. Resetting a particular field, (i.e. SetNodeSetIds) frees the previous setting, but if you are not setting every field, you may want to do a wholesale "Free" first. FreeAllGlobalData frees all the fields which don't depend on which time step, which blocks, or which variables are in the input. FreeAllLocalData frees all the fields which do depend on which time step, blocks or variables are in the input. FreeBlockDependentData frees all metadata fields which depend on which blocks were read in.

void vtkModelMetadata::FreeUsedElementVariables ( )

Free selected portions of the metadata when updating values in the vtkModelMetadata object. Resetting a particular field, (i.e. SetNodeSetIds) frees the previous setting, but if you are not setting every field, you may want to do a wholesale "Free" first. FreeAllGlobalData frees all the fields which don't depend on which time step, which blocks, or which variables are in the input. FreeAllLocalData frees all the fields which do depend on which time step, blocks or variables are in the input. FreeBlockDependentData frees all metadata fields which depend on which blocks were read in.

void vtkModelMetadata::FreeUsedNodeVariables ( )

Free selected portions of the metadata when updating values in the vtkModelMetadata object. Resetting a particular field, (i.e. SetNodeSetIds) frees the previous setting, but if you are not setting every field, you may want to do a wholesale "Free" first. FreeAllGlobalData frees all the fields which don't depend on which time step, which blocks, or which variables are in the input. FreeAllLocalData frees all the fields which do depend on which time step, blocks or variables are in the input. FreeBlockDependentData frees all metadata fields which depend on which blocks were read in.

void vtkModelMetadata::Reset ( )

Set the object back to it's initial state


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