Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Andrew Bauer
VTK
Commits
c9eee8eb
Commit
c9eee8eb
authored
Mar 28, 1997
by
Ken Martin
Browse files
fixed quirk where viewport not taken
parent
392b8410
Changes
1
Hide whitespace changes
Inline
Side-by-side
graphics/vtkRendererSource.cxx
View file @
c9eee8eb
...
...
@@ -65,25 +65,14 @@ void vtkRendererSource::Execute()
}
// calc the pixel range for the renderer
this
->
Input
->
SetViewPoint
(
-
1
,
-
1
,
0
);
this
->
Input
->
ViewToDisplay
();
x1
=
this
->
Input
->
GetDisplayPoint
()[
0
];
y1
=
this
->
Input
->
GetDisplayPoint
()[
1
];
this
->
Input
->
SetViewPoint
(
1
,
1
,
0
);
this
->
Input
->
ViewToDisplay
();
x2
=
this
->
Input
->
GetDisplayPoint
()[
0
];
y2
=
this
->
Input
->
GetDisplayPoint
()[
1
];
if
(
x1
<
0
)
x1
=
0
;
if
(
y1
<
0
)
y1
=
0
;
if
(
x2
>=
(
this
->
Input
->
GetRenderWindow
())
->
GetSize
()[
0
])
{
x2
=
(
this
->
Input
->
GetRenderWindow
())
->
GetSize
()[
0
]
-
1
;
}
if
(
y2
>=
(
this
->
Input
->
GetRenderWindow
())
->
GetSize
()[
1
])
{
y2
=
(
this
->
Input
->
GetRenderWindow
())
->
GetSize
()[
1
]
-
1
;
}
x1
=
this
->
Input
->
GetViewport
()[
0
]
*
((
this
->
Input
->
GetRenderWindow
())
->
GetSize
()[
0
]
-
1
);
y1
=
this
->
Input
->
GetViewport
()[
1
]
*
((
this
->
Input
->
GetRenderWindow
())
->
GetSize
()[
1
]
-
1
);
x2
=
this
->
Input
->
GetViewport
()[
2
]
*
((
this
->
Input
->
GetRenderWindow
())
->
GetSize
()[
0
]
-
1
);
y2
=
this
->
Input
->
GetViewport
()[
3
]
*
((
this
->
Input
->
GetRenderWindow
())
->
GetSize
()[
1
]
-
1
);
if
(
this
->
WholeWindow
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment