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
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
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
Mathieu Westphal (Kitware)
VTK
Commits
aa4f3c10
Commit
aa4f3c10
authored
13 years ago
by
Philippe Pébay
Browse files
Options
Downloads
Patches
Plain Diff
Do regression testing for broken line widget
Change-Id: I922f423df6c8b746f770c0f613308a9b625c5ceb
parent
23acf9f5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Widgets/Testing/Cxx/TestBrokenLineWidget.cxx
+8
-6
8 additions, 6 deletions
Widgets/Testing/Cxx/TestBrokenLineWidget.cxx
with
8 additions
and
6 deletions
Widgets/Testing/Cxx/TestBrokenLineWidget.cxx
+
8
−
6
View file @
aa4f3c10
...
...
@@ -13,6 +13,7 @@
#include
"vtkPolyDataMapper.h"
#include
"vtkProgrammableFilter.h"
#include
"vtkProperty.h"
#include
"vtkRegressionTestImage.h"
#include
"vtkRenderWindow.h"
#include
"vtkRenderWindowInteractor.h"
#include
"vtkRenderer.h"
...
...
@@ -61,9 +62,6 @@ vtkBLWCallback():Poly(0),Selector(0),Extractor(0),Mapper(0),Text(0) {};
int
TestBrokenLineWidget
(
int
argc
,
char
*
argv
[]
)
{
// Initialize test value
int
testIntValue
=
0
;
// Create render window and interactor
vtkSmartPointer
<
vtkRenderWindow
>
win
=
vtkSmartPointer
<
vtkRenderWindow
>::
New
();
win
->
SetMultiSamples
(
0
);
...
...
@@ -190,9 +188,13 @@ int TestBrokenLineWidget( int argc, char *argv[] )
cb
->
Text
=
txtActor
;
line
->
AddObserver
(
vtkCommand
::
InteractionEvent
,
cb
);
// Render and
interac
t
// Render and
tes
t
win
->
Render
();
iren
->
Start
();
int
retVal
=
vtkRegressionTestImage
(
win
);
if
(
retVal
==
vtkRegressionTester
::
DO_INTERACTOR
)
{
iren
->
Start
();
}
return
testIn
tVal
ue
;
return
!
re
tVal
;
}
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