VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Filters
StatisticsGnuR
vtkRAdapter.h
Go to the documentation of this file.
1
2
/*=========================================================================
3
4
Program: Visualization Toolkit
5
Module: vtkRAdapter.h
6
7
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
8
All rights reserved.
9
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
10
11
This software is distributed WITHOUT ANY WARRANTY; without even
12
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
13
PURPOSE. See the above copyright notice for more information.
14
15
=========================================================================*/
16
/*-------------------------------------------------------------------------
17
Copyright 2009 Sandia Corporation.
18
Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
19
the U.S. Government retains certain rights in this software.
20
-------------------------------------------------------------------------*/
21
47
#ifndef __vtkRAdapter
48
#define __vtkRAdapter
49
50
#include "vtkFiltersStatisticsGnuRModule.h"
// For export macro
51
#include "
vtkObject.h
"
52
#include "Rinternals.h"
// Needed for Rinternals.h SEXP data structure
53
54
class
vtkInformation
;
55
class
vtkInformationVector
;
56
class
vtkDataArray
;
57
class
vtkArray
;
58
class
vtkTable
;
59
class
vtkDataArrayCollection
;
60
class
vtkArrayData
;
61
class
vtkDataObjectCollection
;
62
63
class
VTKFILTERSSTATISTICSGNUR_EXPORT
vtkRAdapter
:
public
vtkObject
64
{
65
66
public
:
67
68
vtkTypeMacro(
vtkRAdapter
,
vtkObject
);
69
70
void
PrintSelf
(ostream& os,
vtkIndent
indent);
71
72
static
vtkRAdapter
*
New
();
73
74
//BTX
78
vtkDataArray
* RToVTKDataArray(SEXP variable);
79
83
vtkArray
* RToVTKArray(SEXP variable);
84
87
SEXP VTKDataArrayToR(
vtkDataArray
* da);
88
91
SEXP VTKArrayToR(
vtkArray
* da);
92
95
SEXP VTKTableToR(
vtkTable
* table);
96
98
101
vtkTable
* RToVTKTable(SEXP variable);
102
//ETX
104
105
protected
:
106
vtkRAdapter
();
107
~
vtkRAdapter
();
108
109
private
:
110
111
vtkRAdapter
(
const
vtkRAdapter
&);
// Not implemented
112
void
operator=(
const
vtkRAdapter
&);
// Not implemented
113
114
vtkDataArrayCollection
* vdac;
// Collection of vtkDataArrays that have been converted from R.
115
vtkArrayData
* vad;
// Collection of vtkArrays that have been converted from R.
116
vtkDataObjectCollection
* vdoc;
// Collection of vtkTables that have been converted from R.
117
118
};
119
120
121
#endif
122
123
124
Generated on Thu May 24 2012 22:22:23 for VTK by
1.8.1