73 #ifndef vtkModelMetadata_h 74 #define vtkModelMetadata_h 76 #include "vtkIOExodusModule.h" 87 class vtkModelMetadataSTLCloak;
103 virtual void PrintGlobalInformation();
118 virtual void PrintLocalInformation();
124 vtkSetStringMacro(Title);
131 void SetInformationLines(
int numLines,
char **lines);
137 int GetInformationLines(
char ***lines)
const;
143 return this->NumberOfInformationLines;}
152 vtkSetMacro(TimeStepIndex,
int);
161 void SetTimeSteps(
int numberOfTimeSteps,
float *timeStepValues);
172 void SetCoordinateNames(
int dimension,
char **);
186 vtkSetMacro(NumberOfBlocks,
int);
194 void SetBlockIds(
int *);
202 void SetBlockElementType(
char **);
210 int SetBlockNumberOfElements(
int *nelts);
218 void SetBlockNodesPerElement(
int *);
226 void SetBlockElementIdList(
int *);
245 int SetBlockNumberOfAttributesPerElement(
int *natts);
254 void SetBlockAttributes(
float *);
261 return this->SizeBlockAttributeArray;}
274 vtkSetMacro(NumberOfNodeSets,
int);
286 void SetNodeSetIds(
int *);
293 void SetNodeSetSize(
int *);
302 void SetNodeSetNodeIdList(
int *);
312 void SetNodeSetNumberOfDistributionFactors(
int *);
314 {
return this->NodeSetNumberOfDistributionFactors;}
321 void SetNodeSetDistributionFactors(
float *);
323 return this->NodeSetDistributionFactors;}
329 vtkSetMacro(SumNodesPerNodeSet,
int);
343 return this->NodeSetNodeIdListIndex;}
350 return this->NodeSetDistributionFactorIndex;}
357 vtkSetMacro(NumberOfSideSets,
int);
368 void SetSideSetIds(
int *);
375 int SetSideSetSize(
int *sizes);
384 int SetSideSetNumberOfDistributionFactors(
int *df);
386 return this->SideSetNumberOfDistributionFactors;}
394 void SetSideSetElementList(
int *);
404 void SetSideSetSideList(
int *);
413 void SetSideSetNumDFPerSide(
int *numNodes);
427 void SetSideSetDistributionFactors(
float *);
429 return this->SideSetDistributionFactors;}
435 vtkSetMacro(SumSidesPerSideSet,
int);
455 return this->SideSetDistributionFactorIndex;}
461 return this->NumberOfBlockProperties;}
466 void SetBlockPropertyNames(
int numProp,
char **names);
474 void SetBlockPropertyValue(
int *);
481 return this->NumberOfNodeSetProperties;}
486 void SetNodeSetPropertyNames(
int numProp,
char **names);
494 void SetNodeSetPropertyValue(
int *);
501 return this->NumberOfSideSetProperties;}
506 void SetSideSetPropertyNames(
int numProp,
char **names);
514 void SetSideSetPropertyValue(
int *);
521 return this->NumberOfGlobalVariables;}
526 void SetGlobalVariableNames(
int numVarNames,
char **n);
533 void SetGlobalVariableValue(
float *f);
548 void SetElementVariableInfo(
int numOrigNames,
char **origNames,
549 int numNames,
char **names,
int *numComp,
564 void SetNodeVariableInfo(
int numOrigNames,
char **origNames,
565 int numNames,
char **names,
int *numComp,
574 void SetElementVariableTruthTable(
int *);
576 return this->ElementVariableTruthTable;}
584 vtkSetMacro(AllVariablesDefinedInAllBlocks,
vtkTypeBool);
585 vtkBooleanMacro(AllVariablesDefinedInAllBlocks,
vtkTypeBool);
587 return this->AllVariablesDefinedInAllBlocks;}
609 return this->OriginalNumberOfElementVariables;}
611 return this->OriginalElementVariableNames;}
613 return this->NumberOfElementVariables;}
615 return this->ElementVariableNames;}
617 return this->ElementVariableNumberOfComponents;}
619 return this->MapToOriginalElementVariableNames;}
622 return this->OriginalNumberOfNodeVariables;}
624 return this->OriginalNodeVariableNames;}
626 return this->NumberOfNodeVariables;}
628 return this->NodeVariableNames;}
630 return this->NodeVariableNumberOfComponents;}
632 return this->MapToOriginalNodeVariableNames;}
649 void FreeAllGlobalData();
650 void FreeAllLocalData();
651 void FreeBlockDependentData();
652 void FreeOriginalElementVariableNames();
653 void FreeOriginalNodeVariableNames();
654 void FreeUsedElementVariableNames();
655 void FreeUsedNodeVariableNames();
656 void FreeUsedElementVariables();
657 void FreeUsedNodeVariables();
670 void InitializeAllMetadata();
671 void InitializeAllIvars();
673 void FreeAllMetadata();
676 int BuildBlockElementIdListIndex();
677 int BuildBlockAttributesIndex();
678 int BuildSideSetDistributionFactorIndex();
680 static char *StrDupWithNew(
const char *s);
682 static int FindNameOnList(
char *
name,
char **list,
int listLen);
684 void ShowFloats(
const char *what,
int num,
float *f);
685 void ShowLines(
const char *what,
int num,
char **l);
686 void ShowIntArray(
const char *what,
int numx,
int numy,
int *
id);
687 void ShowInts(
const char *what,
int num,
int *
id);
688 void ShowListsOfInts(
const char *what,
int *list,
689 int nlists,
int *idx,
int len,
int verbose);
690 void ShowListsOfFloats(
const char *what,
float *list,
691 int nlists,
int *idx,
int len,
int verbose);
693 void SetOriginalElementVariableNames(
int nvars,
char **names);
694 void SetElementVariableNames(
int nvars,
char **names);
695 void SetElementVariableNumberOfComponents(
int *comp);
696 void SetMapToOriginalElementVariableNames(
int *map);
698 void SetOriginalNodeVariableNames(
int nvars,
char **names);
699 void SetNodeVariableNames(
int nvars,
char **names);
700 void SetNodeVariableNumberOfComponents(
int *comp);
701 void SetMapToOriginalNodeVariableNames(
int *map);
703 int CalculateMaximumLengths(
int &maxString,
int &maxLine);
712 int NumberOfInformationLines;
713 char **InformationLine;
716 char **CoordinateNames;
721 int NumberOfTimeSteps;
722 float *TimeStepValues;
729 char **BlockElementType;
730 int *BlockNumberOfElements;
731 int *BlockNodesPerElement;
732 int *BlockNumberOfAttributesPerElement;
733 int *BlockElementIdList;
734 float *BlockAttributes;
738 int SumElementsPerBlock;
739 int SizeBlockAttributeArray;
741 int *BlockElementIdListIndex;
742 int *BlockAttributesIndex;
744 vtkModelMetadataSTLCloak *BlockIdIndex;
748 int NumberOfNodeSets;
754 int *NodeSetNumberOfDistributionFactors;
755 int *NodeSetNodeIdList;
756 float *NodeSetDistributionFactors;
760 int SumNodesPerNodeSet;
761 int SumDistFactPerNodeSet;
763 int *NodeSetNodeIdListIndex;
764 int *NodeSetDistributionFactorIndex;
768 int NumberOfSideSets;
774 int *SideSetNumberOfDistributionFactors;
775 int *SideSetElementList;
776 int *SideSetSideList;
777 int *SideSetNumDFPerSide;
778 float *SideSetDistributionFactors;
782 int SumSidesPerSideSet;
783 int SumDistFactPerSideSet;
785 int *SideSetListIndex;
786 int *SideSetDistributionFactorIndex;
790 int NumberOfBlockProperties;
791 char **BlockPropertyNames;
792 int *BlockPropertyValue;
794 int NumberOfNodeSetProperties;
795 char **NodeSetPropertyNames;
796 int *NodeSetPropertyValue;
798 int NumberOfSideSetProperties;
799 char **SideSetPropertyNames;
800 int *SideSetPropertyValue;
810 int NumberOfGlobalVariables;
811 char **GlobalVariableNames;
812 float *GlobalVariableValue;
820 int OriginalNumberOfElementVariables;
821 char **OriginalElementVariableNames;
822 int NumberOfElementVariables;
823 int MaxNumberOfElementVariables;
824 char **ElementVariableNames;
825 int *ElementVariableNumberOfComponents;
826 int *MapToOriginalElementVariableNames;
828 int OriginalNumberOfNodeVariables;
829 char **OriginalNodeVariableNames;
830 int NumberOfNodeVariables;
831 int MaxNumberOfNodeVariables;
832 char **NodeVariableNames;
833 int *NodeVariableNumberOfComponents;
834 int *MapToOriginalNodeVariableNames;
836 int *ElementVariableTruthTable;
abstract base class for most VTK objects
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
abstract class to specify dataset behavior
dynamic, self-adjusting array of float
a vtkAbstractArray subclass for strings
dynamic, self-adjusting array of vtkIdType
dynamic, self-adjusting array of char
dynamic, self-adjusting array of int
a simple class to control print indentation
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...