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 "vtkFiltersMatlabModule.h"
53 #include "vtkObject.h"
54 
55 class vtkArray;
56 class vtkDataArray;
57 class vtkMatlabEngineSingleton;
59 
60 class VTKFILTERSMATLAB_EXPORT vtkMatlabEngineInterface : public vtkObject
61 {
62 
63 public:
64 
65  static vtkMatlabEngineInterface *New();
66 
68  void PrintSelf(ostream& os, vtkIndent indent);
69 
71  int EngineOpen();
72 
75  int EvalString(const char* string);
76 
79  int PutVtkDataArray(const char* name, vtkDataArray* vda);
80 
84  vtkDataArray* GetVtkDataArray(const char* name);
85 
88  int PutVtkArray(const char* name, vtkArray* vda);
89 
92  vtkArray* GetVtkArray(const char* name);
93 
96  int OutputBuffer(char* p, int n);
97 
100  int SetVisibleOn();
101 
103  int SetVisibleOff();
104 
105 protected:
106 
109 
110 
111 private:
112 
113  vtkMatlabEngineInterface(const vtkMatlabEngineInterface&); // Not implemented.
114  void operator=(const vtkMatlabEngineInterface&); // Not implemented.
115 
116  vtkMatlabEngineSingleton* meng;
117  vtkMatlabMexAdapter* vmma;
118 
119 };
120 
121 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:61
Abstract interface for N-dimensional arrays.
Definition: vtkArray.h:69
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
This is a utility class to convert VTK array data to and from the Matlab mxArray format. It is used with the Matlab Mex and Matlab Engine interfaces.
static vtkObject * New()