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
56class vtkArray;
57class vtkDataArray;
58class vtkMatlabEngineSingleton;
60
61class VTKFILTERSMATLAB_EXPORT vtkMatlabEngineInterface : public vtkObject
62{
63
64public:
65
67
69 void PrintSelf(ostream& os, vtkIndent indent);
70
75
81 int EvalString(const char* string);
82
87 int PutVtkDataArray(const char* name, vtkDataArray* vda);
88
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
117
122
123protected:
124
127
128
129private:
130
131 vtkMatlabEngineInterface(const vtkMatlabEngineInterface&) VTK_DELETE_FUNCTION;
132 void operator=(const vtkMatlabEngineInterface&) VTK_DELETE_FUNCTION;
133
134 vtkMatlabEngineSingleton* meng;
136
137};
138
139#endif
Abstract interface for N-dimensional arrays.
Definition: vtkArray.h:71
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
a simple class to control print indentation
Definition: vtkIndent.h:40
This class defines a VTK inteface to the MathWorks Matlab Engine.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
int EngineOpen()
Non zero if Matlab engine connection is open.
int PutVtkDataArray(const char *name, vtkDataArray *vda)
Send input vtkDataArray vda to the Matlab Engine as Matlab variable named name Returns 0 if variable ...
static vtkMatlabEngineInterface * New()
vtkDataArray * GetVtkDataArray(const char *name)
Get Matlab variable name from Matlab Engine and return as vtkDataArray (memory allocated) Returns 0 i...
int PutVtkArray(const char *name, vtkArray *vda)
Send input vtkArray vda to the Matlab Engine as Matlab variable named name Returns 0 if variable was ...
int OutputBuffer(char *p, int n)
Use char buffer p of length n to store console output from the Matlab Engine.
int SetVisibleOff()
Turns visibility off.
vtkArray * GetVtkArray(const char *name)
Get Matlab variable name from Matlab Engine and return as vtkArray (memory allocated) Returns 0 if va...
int EvalString(const char *string)
Input char string is a Matlab command or a series of Matlab commands read from an input file.
int SetVisibleOn()
Turns the Matlab Engine process visible, so users can interact directly with Matlab.
This is a utility class to convert VTK array data to and from the Matlab mxArray format.
abstract base class for most VTK objects
Definition: vtkObject.h:60
@ name
Definition: vtkX3D.h:219