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 
44 #ifndef vtkMatlabEngineInterface_h
45 #define vtkMatlabEngineInterface_h
46 
47 #include "vtkFiltersMatlabModule.h" // For export macro
48 #include "vtkObject.h"
49 
50 class vtkArray;
51 class vtkDataArray;
52 class vtkMatlabEngineSingleton;
54 
55 class VTKFILTERSMATLAB_EXPORT vtkMatlabEngineInterface : public vtkObject
56 {
57 
58 public:
59 
60  static vtkMatlabEngineInterface *New();
61 
63  void PrintSelf(ostream& os, vtkIndent indent);
64 
68  int EngineOpen();
69 
75  int EvalString(const char* string);
76 
81  int PutVtkDataArray(const char* name, vtkDataArray* vda);
82 
87  vtkDataArray* GetVtkDataArray(const char* name);
88 
93  int PutVtkArray(const char* name, vtkArray* vda);
94 
99  vtkArray* GetVtkArray(const char* name);
100 
105  int OutputBuffer(char* p, int n);
106 
110  int SetVisibleOn();
111 
115  int SetVisibleOff();
116 
117 protected:
118 
121 
122 
123 private:
124 
125  vtkMatlabEngineInterface(const vtkMatlabEngineInterface&) VTK_DELETE_FUNCTION;
126  void operator=(const vtkMatlabEngineInterface&) VTK_DELETE_FUNCTION;
127 
128  vtkMatlabEngineSingleton* meng;
129  vtkMatlabMexAdapter* vmma;
130 
131 };
132 
133 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:53
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:64
This class defines a VTK inteface to the MathWorks Matlab Engine.
a simple class to control print indentation
Definition: vtkIndent.h:33
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:48
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...