VTK
vtkMatlabEngineInterface.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkMatlabEngineInterface.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 /*-------------------------------------------------------------------------
16  Copyright 2009 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
20 
49 #ifndef __vtkMatlabEngineInterface_h
50 #define __vtkMatlabEngineInterface_h
51 
52 #include "vtkObject.h"
53 
54 class vtkArray;
55 class vtkDataArray;
56 class vtkMatlabEngineSingleton;
58 
60 {
61 
62 public:
63 
64  static vtkMatlabEngineInterface *New();
65 
67  void PrintSelf(ostream& os, vtkIndent indent);
68 
70  int EngineOpen();
71 
74  int EvalString(const char* string);
75 
78  int PutVtkDataArray(const char* name, vtkDataArray* vda);
79 
83  vtkDataArray* GetVtkDataArray(const char* name);
84 
87  int PutVtkArray(const char* name, vtkArray* vda);
88 
91  vtkArray* GetVtkArray(const char* name);
92 
95  int OutputBuffer(char* p, int n);
96 
99  int SetVisibleOn();
100 
102  int SetVisibleOff();
103 
104 protected:
105 
108 
109 
110 private:
111 
112  vtkMatlabEngineInterface(const vtkMatlabEngineInterface&); // Not implemented.
113  void operator=(const vtkMatlabEngineInterface&); // Not implemented.
114 
115  vtkMatlabEngineSingleton* meng;
116  vtkMatlabMexAdapter* vmma;
117 
118 };
119 
120 #endif
121