| Rev | Line | |
|---|
| [48b662] | 1 | /**
|
|---|
| 2 | * @file interface_vtk.hpp
|
|---|
| 3 | * @author Julian Iseringhausen <isering@ins.uni-bonn.de>
|
|---|
| 4 | * @date Mon Apr 18 12:58:56 2011
|
|---|
| 5 | *
|
|---|
| 6 | * @brief VMG::InterfaceVTK
|
|---|
| 7 | *
|
|---|
| 8 | */
|
|---|
| 9 |
|
|---|
| 10 | #ifndef INTERFACE_VTK_HPP_
|
|---|
| 11 | #define INTERFACE_VTK_HPP_
|
|---|
| 12 |
|
|---|
| 13 | #ifdef HAVE_VTK
|
|---|
| 14 |
|
|---|
| 15 | #include <string>
|
|---|
| 16 |
|
|---|
| 17 | #include <vtkStructuredPoints.h>
|
|---|
| 18 | #include <vtkStructuredPointsReader.h>
|
|---|
| 19 | #include <vtkSmartPointer.h>
|
|---|
| 20 |
|
|---|
| 21 | #include "mesh_sinus_dirichlet.hpp"
|
|---|
| 22 |
|
|---|
| 23 | namespace VMG
|
|---|
| 24 | {
|
|---|
| 25 |
|
|---|
| 26 | class InterfaceVTK : public Interface
|
|---|
| 27 | {
|
|---|
| 28 | public:
|
|---|
| 29 | InterfaceVTK(BC boundary, int levelMin, int levelMax, const char* filename_) :
|
|---|
| 30 | Interface(boundary, levelMin, levelMax, 0, 1.0),
|
|---|
| 31 | filename(filename_)
|
|---|
| 32 | {}
|
|---|
| 33 |
|
|---|
| 34 | void ImportRightHandSide(Multigrid& multigrid);
|
|---|
| 35 | void ExportSolution(Grid& grid);
|
|---|
| 36 |
|
|---|
| 37 | private:
|
|---|
| 38 | std::string filename;
|
|---|
| 39 | };
|
|---|
| 40 |
|
|---|
| 41 | }
|
|---|
| 42 |
|
|---|
| 43 | #else /* HAVE_VTK */
|
|---|
| 44 | #error VTK is needed in order to use InterfaceVTK
|
|---|
| 45 | #endif /* HAVE_VTK */
|
|---|
| 46 |
|
|---|
| 47 | #endif /* VTK_GRID_HPP_ */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.