VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Filters
Cosmo
vtkPCosmoReader.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkPCosmoReader.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
17
Program: VTK/ParaView Los Alamos National Laboratory Modules (PVLANL)
18
Module: vtkPCosmoReader.h
19
20
Copyright (c) 2009 Los Alamos National Security, LLC
21
22
All rights reserved.
23
24
Copyright 2009. Los Alamos National Security, LLC.
25
This software was produced under U.S. Government contract DE-AC52-06NA25396
26
for Los Alamos National Laboratory (LANL), which is operated by
27
Los Alamos National Security, LLC for the U.S. Department of Energy.
28
The U.S. Government has rights to use, reproduce, and distribute this software.
29
NEITHER THE GOVERNMENT NOR LOS ALAMOS NATIONAL SECURITY, LLC MAKES ANY WARRANTY,
30
EXPRESS OR IMPLIED, OR ASSUMES ANY LIABILITY FOR THE USE OF THIS SOFTWARE.
31
If software is modified to produce derivative works, such modified software
32
should be clearly marked, so as not to confuse it with the version available
33
from LANL.
34
35
Additionally, redistribution and use in source and binary forms, with or
36
without modification, are permitted provided that the following conditions
37
are met:
38
- Redistributions of source code must retain the above copyright notice,
39
this list of conditions and the following disclaimer.
40
- Redistributions in binary form must reproduce the above copyright notice,
41
this list of conditions and the following disclaimer in the documentation
42
and/or other materials provided with the distribution.
43
- Neither the name of Los Alamos National Security, LLC, Los Alamos National
44
Laboratory, LANL, the U.S. Government, nor the names of its contributors
45
may be used to endorse or promote products derived from this software
46
without specific prior written permission.
47
48
THIS SOFTWARE IS PROVIDED BY LOS ALAMOS NATIONAL SECURITY, LLC AND CONTRIBUTORS
49
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
50
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
51
ARE DISCLAIMED. IN NO EVENT SHALL LOS ALAMOS NATIONAL SECURITY, LLC OR
52
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
53
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
54
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
55
OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
56
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
57
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
58
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
59
60
=========================================================================*/
85
#ifndef __vtkPCosmoReader_h
86
#define __vtkPCosmoReader_h
87
88
#include "vtkFiltersCosmoModule.h"
// For export macro
89
#include "
vtkUnstructuredGridAlgorithm.h
"
90
91
class
vtkMultiProcessController
;
92
class
vtkStdString
;
93
94
class
VTKFILTERSCOSMO_EXPORT
vtkPCosmoReader
:
public
vtkUnstructuredGridAlgorithm
95
{
96
public
:
97
static
vtkPCosmoReader
*
New
();
98
vtkTypeMacro(
vtkPCosmoReader
,
vtkUnstructuredGridAlgorithm
);
99
void
PrintSelf
(ostream& os,
vtkIndent
indent);
100
102
103
vtkSetStringMacro(FileName);
104
vtkGetStringMacro
(FileName);
106
108
109
vtkSetMacro(RL,
float
);
110
vtkGetMacro(RL,
float
);
112
114
116
vtkSetMacro(Overlap,
float
);
117
vtkGetMacro(Overlap,
float
);
119
121
122
vtkSetMacro(ReadMode,
int
);
123
vtkGetMacro(ReadMode,
int
);
125
127
129
vtkSetMacro(CosmoFormat,
int
);
130
vtkGetMacro(CosmoFormat,
int
);
132
134
135
virtual
vtkMultiProcessController
* GetController();
136
virtual
void
SetController(
vtkMultiProcessController
*);
138
139
protected
:
140
vtkPCosmoReader
();
141
~
vtkPCosmoReader
();
142
143
virtual
int
RequestInformation
144
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*);
145
virtual
int
RequestData
146
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*);
147
148
vtkMultiProcessController
*
Controller
;
149
150
char
*
FileName
;
// Name of binary particle file
151
float
RL
;
// The physical box dimensions (rL)
152
float
Overlap
;
// The ghost cell boundary space
153
int
ReadMode
;
// The reading mode
154
int
CosmoFormat
;
// Enable cosmo format or gadget format
155
156
private
:
157
vtkPCosmoReader
(
const
vtkPCosmoReader
&);
// Not implemented.
158
void
operator=(
const
vtkPCosmoReader
&);
// Not implemented.
159
};
160
161
#endif
Generated on Thu May 24 2012 22:22:14 for VTK by
1.8.1