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 
50 #ifndef vtkMatlabEngineInterface_h
51 #define vtkMatlabEngineInterface_h
52 
53 #include "vtkFiltersMatlabModule.h" // For export macro
54 #include "vtkObject.h"
55 
56 class vtkArray;
57 class vtkDataArray;
58 class vtkMatlabEngineSingleton;
60 
61 class VTKFILTERSMATLAB_EXPORT vtkMatlabEngineInterface : public vtkObject
62 {
63 
64 public:
65 
66  static vtkMatlabEngineInterface *New();
67 
69  void PrintSelf(ostream& os, vtkIndent indent);
70 
74  int EngineOpen();
75 
81  int EvalString(const char* string);
82 
87  int PutVtkDataArray(const char* name, vtkDataArray* vda);
88 
93  vtkDataArray* GetVtkDataArray(const char* name);
94 
99  int PutVtkArray(const char* name, vtkArray* vda);
100 
105  vtkArray* GetVtkArray(const char* name);
106 
111  int OutputBuffer(char* p, int n);
112 
116  int SetVisibleOn();
117 
121  int SetVisibleOff();
122 
123 protected:
124 
127 
128 
129 private:
130 
131  vtkMatlabEngineInterface(const vtkMatlabEngineInterface&) VTK_DELETE_FUNCTION;
132  void operator=(const vtkMatlabEngineInterface&) VTK_DELETE_FUNCTION;
133 
134  vtkMatlabEngineSingleton* meng;
135  vtkMatlabMexAdapter* vmma;
136 
137 };
138 
139 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:59
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Abstract interface for N-dimensional arrays.
Definition: vtkArray.h:70
This class defines a VTK inteface to the MathWorks Matlab Engine.
a simple class to control print indentation
Definition: vtkIndent.h:39
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.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...