-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qgs3daxis: Define only only one viewport in the framegraph
The axis framegraph has two distinct branches : one for the main object (the axis or the cube) and one for the axis labels. Each of those branches have a dedicated viewport. However, only one viewport is needed since the two branches need the same part of the window. With this change, the first node of the axis' framegraph is now the viewport (mViewport) and the two branches inherit from it: - viewport <-- object branch --> - layerfilter (axisLayerFilter) - cameraselector - sortPolicy - clearBuffers <-- labels branch --> - layerfilter (twoDLayerFilter) - cameraselector - sortPolicy - clearBuffers `from3DTo2DLabelPosition()` is also simplified to compute the billboard position of the axis labels. Indeed, the viewport of the labels had the dimensions of the main window (0, 0, 1, 1) while the objects viewport has only the dimensions the relevant part of the window. Therefore, `from3DTo2DLabelPosition()` needed to take into this into account and recenter the computer coordinates. This is not needed anymore.
- Loading branch information
1 parent
642df95
commit 7fcc94d
Showing
2 changed files
with
35 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters