Commit 7522f14c authored by Sebastien Jourdain's avatar Sebastien Jourdain Committed by David Partyka
Browse files

Adding new GetSIL method on vtkXdmfReader.

parent 72b3c4f0
...@@ -582,4 +582,8 @@ void vtkXdmfReader::PrintSelf(ostream& os, vtkIndent indent) ...@@ -582,4 +582,8 @@ void vtkXdmfReader::PrintSelf(ostream& os, vtkIndent indent)
{ {
this->Superclass::PrintSelf(os, indent); this->Superclass::PrintSelf(os, indent);
} }
//----------------------------------------------------------------------------
vtkGraph* vtkXdmfReader::GetSIL()
{
return this->XdmfDocument->GetActiveDomain()->GetSIL();
}
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
class vtkXdmfArraySelection; class vtkXdmfArraySelection;
class vtkXdmfDocument; class vtkXdmfDocument;
class vtkGraph;
class VTK_EXPORT vtkXdmfReader : public vtkDataReader class VTK_EXPORT vtkXdmfReader : public vtkDataReader
{ {
...@@ -132,6 +133,11 @@ public: ...@@ -132,6 +133,11 @@ public:
// Every time the SIL is updated a this will return a different value. // Every time the SIL is updated a this will return a different value.
vtkGetMacro(SILUpdateStamp, int); vtkGetMacro(SILUpdateStamp, int);
// Description:
// SIL describes organization of/relationships between classifications
// eg. blocks/materials/hierarchies.
virtual vtkGraph* GetSIL();
//BTX //BTX
protected: protected:
vtkXdmfReader(); vtkXdmfReader();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment