Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VTK
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alex W.
VTK
Commits
9ad49843
Commit
9ad49843
authored
11 years ago
by
Burlen Loring
Committed by
Code Review
11 years ago
Browse files
Options
Downloads
Plain Diff
Merge topic 'probe-pass-arrays' into master
7fe52898
vtk pprobe pass arrays
parents
0b20a7ba
7fe52898
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Filters/Core/vtkProbeFilter.cxx
+24
-0
24 additions, 0 deletions
Filters/Core/vtkProbeFilter.cxx
Filters/Core/vtkProbeFilter.h
+11
-0
11 additions, 0 deletions
Filters/Core/vtkProbeFilter.h
with
35 additions
and
0 deletions
Filters/Core/vtkProbeFilter.cxx
+
24
−
0
View file @
9ad49843
...
...
@@ -52,6 +52,9 @@ vtkProbeFilter::vtkProbeFilter()
this
->
CellList
=
0
;
this
->
UseNullPoint
=
true
;
this
->
PassCellArrays
=
0
;
this
->
PassPointArrays
=
0
;
}
//----------------------------------------------------------------------------
...
...
@@ -116,6 +119,27 @@ int vtkProbeFilter::RequestData(
}
this
->
Probe
(
input
,
source
,
output
);
// copy point data arrays
if
(
this
->
PassPointArrays
)
{
int
numPtArrays
=
input
->
GetPointData
()
->
GetNumberOfArrays
();
for
(
int
i
=
0
;
i
<
numPtArrays
;
++
i
)
{
output
->
GetPointData
()
->
AddArray
(
input
->
GetPointData
()
->
GetArray
(
i
));
}
}
// copy cell data arrays
if
(
this
->
PassCellArrays
)
{
int
numCellArrays
=
input
->
GetCellData
()
->
GetNumberOfArrays
();
for
(
int
i
=
0
;
i
<
numCellArrays
;
++
i
)
{
output
->
GetCellData
()
->
AddArray
(
input
->
GetCellData
()
->
GetArray
(
i
));
}
}
return
1
;
}
...
...
This diff is collapsed.
Click to expand it.
Filters/Core/vtkProbeFilter.h
+
11
−
0
View file @
9ad49843
...
...
@@ -86,11 +86,22 @@ public:
vtkSetStringMacro
(
ValidPointMaskArrayName
)
vtkGetStringMacro
(
ValidPointMaskArrayName
)
// Description:
// Shallow copy the input arrays to the output.
vtkSetMacro
(
PassCellArrays
,
int
);
vtkGetMacro
(
PassCellArrays
,
int
);
//
vtkSetMacro
(
PassPointArrays
,
int
);
vtkGetMacro
(
PassPointArrays
,
int
);
//BTX
protected:
vtkProbeFilter
();
~
vtkProbeFilter
();
int
PassCellArrays
;
int
PassPointArrays
;
int
SpatialMatch
;
virtual
int
RequestData
(
vtkInformation
*
,
vtkInformationVector
**
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment