Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
VTK Examples
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
VTK
VTK Examples
Commits
f7804bcf
Commit
f7804bcf
authored
1 year ago
by
Andrew Maclean
Browse files
Options
Downloads
Patches
Plain Diff
vtkCompositePolyDataMapper2 is deprecated
parent
a4d1ea9c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Cxx/CompositeData/CompositePolyDataMapper.cxx
+14
-1
14 additions, 1 deletion
src/Cxx/CompositeData/CompositePolyDataMapper.cxx
with
14 additions
and
1 deletion
src/Cxx/CompositeData/CompositePolyDataMapper.cxx
+
14
−
1
View file @
f7804bcf
#include
<vtkActor.h>
#include
<vtkCompositeDataDisplayAttributes.h>
#include
<vtkCompositePolyDataMapper2.h>
#include
<vtkMultiBlockDataSet.h>
#include
<vtkNamedColors.h>
#include
<vtkNew.h>
...
...
@@ -8,6 +7,16 @@
#include
<vtkRenderWindowInteractor.h>
#include
<vtkRenderer.h>
#include
<vtkSphereSource.h>
#include
<vtkVersion.h>
#ifdef VTK_VERSION_NUMBER
#if VTK_VERSION_NUMBER >= 90020230516ULL
#define VTK_USE_CPD 1
#include
<vtkCompositePolyDataMapper.h>
#else
#include
<vtkCompositePolyDataMapper2.h>
#endif
#endif
int
main
(
int
/* argc */
,
char
*
/* argv */
[])
{
...
...
@@ -31,7 +40,11 @@ int main(int /* argc */, char* /* argv */[])
// NULL in this process.
mbds
->
SetBlock
(
2
,
sphere2
->
GetOutput
());
#ifdef VTK_USE_CPD
vtkNew
<
vtkCompositePolyDataMapper
>
mapper
;
#else
vtkNew
<
vtkCompositePolyDataMapper2
>
mapper
;
#endif
mapper
->
SetInputDataObject
(
mbds
.
GetPointer
());
vtkNew
<
vtkCompositeDataDisplayAttributes
>
cdsa
;
mapper
->
SetCompositeDataDisplayAttributes
(
cdsa
.
Get
());
...
...
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