[MOAB-dev] r4388 - MOAB/trunk/tools/vtkMOABReader
tautges at mcs.anl.gov
tautges at mcs.anl.gov
Mon Dec 20 13:29:12 CST 2010
Author: tautges
Date: 2010-12-20 13:29:11 -0600 (Mon, 20 Dec 2010)
New Revision: 4388
Added:
MOAB/trunk/tools/vtkMOABReader/vtkMOABMesh.cpp
MOAB/trunk/tools/vtkMOABReader/vtkMOABMesh.hpp
Modified:
MOAB/trunk/tools/vtkMOABReader/CMakeLists.txt
MOAB/trunk/tools/vtkMOABReader/vtkMOABReader.cxx
MOAB/trunk/tools/vtkMOABReader/vtkMOABReader.h
Log:
Making a separate vtkMOABMesh class to hold most of the MOAB-reading
capability.
Modified: MOAB/trunk/tools/vtkMOABReader/CMakeLists.txt
===================================================================
--- MOAB/trunk/tools/vtkMOABReader/CMakeLists.txt 2010-12-20 15:21:31 UTC (rev 4387)
+++ MOAB/trunk/tools/vtkMOABReader/CMakeLists.txt 2010-12-20 19:29:11 UTC (rev 4388)
@@ -9,5 +9,6 @@
ADD_PARAVIEW_PLUGIN(vtkMOABReader "4.0"
SERVER_MANAGER_XML vtkMOABReader.xml
SERVER_MANAGER_SOURCES vtkMOABReader.cxx
+ SOURCES vtkMOABMesh.cpp
GUI_RESOURCE_FILES vtkMOABReaderGUI.xml)
endif (MOAB_DIR)
Added: MOAB/trunk/tools/vtkMOABReader/vtkMOABMesh.cpp
===================================================================
--- MOAB/trunk/tools/vtkMOABReader/vtkMOABMesh.cpp (rev 0)
+++ MOAB/trunk/tools/vtkMOABReader/vtkMOABMesh.cpp 2010-12-20 19:29:11 UTC (rev 4388)
@@ -0,0 +1,575 @@
+#include "vtkMOABMesh.hpp"
+
+#include "vtkFloatArray.h"
+#include "vtkCellArray.h"
+#include "vtkCellData.h"
+#include "vtkIntArray.h"
+#include "vtkCharArray.h"
+#include "vtkPolyData.h"
+#include "vtkObjectFactory.h"
+#include "vtkUnstructuredGrid.h"
+#include "vtkExtractUnstructuredGrid.h"
+#include "vtkThreshold.h"
+#include "vtkDoubleArray.h"
+#include "vtkIntArray.h"
+#include "vtkPointData.h"
+#include <sstream>
+#include <vector>
+#include "assert.h"
+#include "MBTagConventions.hpp"
+
+#include "moab/Core.hpp"
+#include "moab/CN.hpp"
+
+#define MOABMeshErrorMacro(s) std::cerr s << std::endl
+using namespace moab;
+
+const int vtkMOABMesh::vtk_cell_types[] = {
+ 1, 3, 5, 9, 7, 10, 14, 13, 0, 12, 0, 0, 0};
+
+const bool new_outputs = false;
+const bool use_filters = true;
+
+vtkMOABMesh *vtkMOABMesh::instance_ = NULL;
+
More information about the moab-dev
mailing list