Commit 3ad7bfb8 authored by Jerry Clarke's avatar Jerry Clarke
Browse files

add EnableAllArrays and DisableAllArrays Methods

parent f93ddfc7
......@@ -30,4 +30,6 @@ IF (VTK_FOUND)
IF(XDMF_BUILD_TESTING)
SUBDIRS(Testing)
ENDIF(XDMF_BUILD_TESTING)
ELSE(VTK_FOUND)
MESSAGE(STATUS "Can't find VTK ... no vtkXdmf interface can be built")
ENDIF (VTK_FOUND)
......@@ -69,7 +69,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <vector>
vtkStandardNewMacro(vtkXdmfReader);
vtkCxxRevisionMacro(vtkXdmfReader, "1.4");
vtkCxxRevisionMacro(vtkXdmfReader, "1.5");
#if defined(_WIN32) && (defined(_MSC_VER) || defined(__BORLANDC__))
# include <direct.h>
......@@ -228,7 +228,7 @@ void vtkXdmfReader::Execute()
XdmfInt64 start[4] = { 0, 0, 0, 0 };
XdmfInt64 stride[4] = { 1, 1, 1, 1 };
XdmfInt64 count[4] = { 0, 0, 0, 0 };
XdmfInt64 end[4] = { 0, 0, 0, 0 };
// XdmfInt64 end[4] = { 0, 0, 0, 0 };
this->DataDescription->GetShape(count);
int *upext = this->GetOutput()->GetUpdateExtent();
......@@ -1038,6 +1038,18 @@ void vtkXdmfReader::SetPointArrayStatus(const char* name, int status)
}
}
//----------------------------------------------------------------------------
void vtkXdmfReader::EnableAllArrays()
{
this->PointDataArraySelection->EnableAllArrays();
this->CellDataArraySelection->EnableAllArrays();
}
//----------------------------------------------------------------------------
void vtkXdmfReader::DisableAllArrays()
{
this->PointDataArraySelection->DisableAllArrays();
this->CellDataArraySelection->DisableAllArrays();
}
//----------------------------------------------------------------------------
int vtkXdmfReader::GetNumberOfCellArrays()
{
......
......@@ -17,8 +17,7 @@
=========================================================================*/
// .NAME vtkXdmfReader - read eXtensible Data Model and Format files
// .SECTION Description
// vtkXdmfReader is a source object that reads ASCII or binary
// rectilinear grid data files in vtk format (see text for format details).
// vtkXdmfReader is a source object that reads XDMF data.
// The output of this reader is a single vtkUnstructuredGrid, vtkStructuredGrid
// or vtkRectilinearGrid data object.
// The superclass of this class, vtkDataReader, provides many methods for
......@@ -120,6 +119,12 @@ public:
void SetPointArrayStatus(const char* name, int status);
void SetCellArrayStatus(const char* name, int status);
// Description:
// Set whether the all point or cell arrays are to
// be read.
void EnableAllArrays();
void DisableAllArrays();
// Description:
// Get the Low Level XdmfDOM
const char *GetXdmfDOMHandle();
......
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