VTK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
dox
Filters
FlowPaths
vtkParticlePathFilter.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkParticlePathFilter.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
=========================================================================*/
28
#ifndef vtkParticlePathFilter_h
29
#define vtkParticlePathFilter_h
30
31
#include "
vtkFiltersFlowPathsModule.h
"
// For export macro
32
#include "
vtkSmartPointer.h
"
// For protected ivars.
33
#include "
vtkParticleTracerBase.h
"
34
#include <vector>
// For protected ivars
35
36
class
VTKFILTERSFLOWPATHS_EXPORT
ParticlePathFilterInternal
37
{
38
public
:
39
ParticlePathFilterInternal
():Filter(NULL){}
40
void
Initialize(
vtkParticleTracerBase
* filter);
41
virtual
~ParticlePathFilterInternal
(){}
42
virtual
int
OutputParticles(
vtkPolyData
* poly);
43
void
SetClearCache
(
bool
clearCache)
44
{
45
this->ClearCache = clearCache;
46
}
47
bool
GetClearCache
()
48
{
49
return
this->ClearCache;
50
}
51
void
Finalize();
52
void
Reset();
53
54
private
:
55
vtkParticleTracerBase
* Filter;
56
// Paths doesn't seem to work properly. it is meant to make connecting lines
57
// for the particles
58
std::vector<vtkSmartPointer<vtkIdList> > Paths;
59
bool
ClearCache;
// false by default
60
};
61
62
class
VTKFILTERSFLOWPATHS_EXPORT
vtkParticlePathFilter
:
public
vtkParticleTracerBase
63
{
64
public
:
65
vtkTypeMacro(
vtkParticlePathFilter
,
vtkParticleTracerBase
)
66
void PrintSelf(ostream& os,
vtkIndent
indent);
67
68
static
vtkParticlePathFilter
*New();
69
70
protected:
71
vtkParticlePathFilter
();
72
~vtkParticlePathFilter();
73
vtkParticlePathFilter(const vtkParticlePathFilter&);
// Not implemented.
74
void
operator=(const vtkParticlePathFilter&);
// Not implemented.
75
76
virtual
void
ResetCache();
77
virtual
int
OutputParticles(
vtkPolyData
* poly);
78
virtual
void
InitializeExtraPointDataArrays(
vtkPointData
* outputPD);
79
virtual
void
AppendToExtraPointDataArrays(
vtkParticleTracerBaseNamespace
::ParticleInformation &);
80
81
void
Finalize();
82
83
ParticlePathFilterInternal
It;
84
85
private:
86
vtkDoubleArray
* SimulationTime;
87
vtkIntArray
* SimulationTimeStep;
88
};
89
90
#endif
VTKFILTERSFLOWPATHS_EXPORT
#define VTKFILTERSFLOWPATHS_EXPORT
Definition:
vtkFiltersFlowPathsModule.h:15
vtkParticleTracerBaseNamespace
Definition:
vtkParticleTracerBase.h:58
ParticlePathFilterInternal::ParticlePathFilterInternal
ParticlePathFilterInternal()
Definition:
vtkParticlePathFilter.h:39
vtkPointData
represent and manipulate point attribute data
Definition:
vtkPointData.h:36
ParticlePathFilterInternal::SetClearCache
void SetClearCache(bool clearCache)
Definition:
vtkParticlePathFilter.h:43
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition:
vtkPolyData.h:84
vtkDoubleArray
dynamic, self-adjusting array of double
Definition:
vtkDoubleArray.h:45
ParticlePathFilterInternal::~ParticlePathFilterInternal
virtual ~ParticlePathFilterInternal()
Definition:
vtkParticlePathFilter.h:41
vtkIntArray
dynamic, self-adjusting array of int
Definition:
vtkIntArray.h:49
vtkParticleTracerBase.h
ParticlePathFilterInternal
Definition:
vtkParticlePathFilter.h:36
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:38
ParticlePathFilterInternal::GetClearCache
bool GetClearCache()
Definition:
vtkParticlePathFilter.h:47
vtkFiltersFlowPathsModule.h
vtkParticlePathFilter
A Parallel Particle tracer for unsteady vector fields.
Definition:
vtkParticlePathFilter.h:62
vtkSmartPointer.h
vtkParticleTracerBase
A particle tracer for vector fields.
Definition:
vtkParticleTracerBase.h:97
Generated on Wed Dec 16 2015 17:14:52 for VTK by
1.8.9.1