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
Snippets
Deploy
Releases
Container Registry
Model registry
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
Rhodanos
VTK
Commits
1096d716
Commit
1096d716
authored
9 years ago
by
Aashish Chaudhary
Browse files
Options
Downloads
Patches
Plain Diff
Silence compiler warning
parent
3d938219
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
Rendering/Volume/Testing/Cxx/TestGPURayCastClippingUserTransform.cxx
+10
-9
10 additions, 9 deletions
...olume/Testing/Cxx/TestGPURayCastClippingUserTransform.cxx
with
10 additions
and
9 deletions
Rendering/Volume/Testing/Cxx/TestGPURayCastClippingUserTransform.cxx
+
10
−
9
View file @
1096d716
...
...
@@ -123,6 +123,7 @@ static void UpdateRearClippingPlane(vtkPlane* rearClippingPlane, double* normal,
rearClippingPlane
->
SetOrigin
(
rearOrigin
);
}
class
vtkInteractorStyleCallback
:
public
vtkCommand
{
public:
...
...
@@ -141,8 +142,6 @@ public:
// Get the normal and focal point of the camera
double
*
normal
=
camera
->
GetViewPlaneNormal
();
double
*
focalPoint
=
camera
->
GetFocalPoint
();
double
*
viewUp
=
camera
->
GetViewUp
();
double
*
position
=
camera
->
GetPosition
();
// Fixed slab thickness
slabThickness
=
3.0
;
...
...
@@ -152,14 +151,14 @@ public:
vtkInteractorStyleCallback
(){}
void
SetFrontClippingPlane
(
vtkPlane
*
f
rontClipping
Plane
)
void
SetFrontClippingPlane
(
vtkPlane
*
f
c
Plane
)
{
this
->
frontClippingPlane
=
f
rontClipping
Plane
;
this
->
frontClippingPlane
=
f
c
Plane
;
}
void
SetRearClippingPlane
(
vtkPlane
*
r
earClipping
Plane
)
void
SetRearClippingPlane
(
vtkPlane
*
r
c
Plane
)
{
this
->
rearClippingPlane
=
r
earClipping
Plane
;
this
->
rearClippingPlane
=
r
c
Plane
;
}
double
slabThickness
;
...
...
@@ -198,7 +197,7 @@ int TestGPURayCastClippingUserTransform(int argc, char *argv[])
}
// Convert to short
unsigned
short
*
shortData
=
new
unsigned
short
[
size
/
2
];
unsigned
short
*
shortData
=
new
unsigned
short
[
size
/
2
];
int
idx
=
0
;
int
idx2
=
0
;
for
(
idx
=
0
;
idx
<
size
/
2
;
idx
++
)
{
...
...
@@ -356,7 +355,7 @@ int TestGPURayCastClippingUserTransform(int argc, char *argv[])
int
retVal
=
vtkRegressionTestImageThreshold
(
renWin
.
GetPointer
(),
70
);
if
(
retVal
==
vtkRegressionTester
::
DO_INTERACTOR
)
if
(
retVal
==
vtkRegressionTester
::
DO_INTERACTOR
)
{
iren
->
Start
();
}
...
...
@@ -364,5 +363,7 @@ int TestGPURayCastClippingUserTransform(int argc, char *argv[])
delete
[]
memblock
;
delete
[]
shortData
;
delete
fname
;
delete
[]
fname
;
return
!
retVal
;
}
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