z-order

Efficient z-order transformation in Fortran

南楼画角 提交于 2019-12-08 07:24:44
问题 For my current work on a grid generation algorithm I need an efficient way to transform three-dimensional coordinates to z-order (more precisely: three 4-Byte integers into one 8-Byte integer) and the other way round. This Wikipedia article describes it fairly well: Z-order curve. Since I am not a programmer, the solution I came up with does what it is supposed to do but might be quite naive using the mvbits intrinsic to do the bit interleaving explicitly: SUBROUTINE pos_to_z(i, j, k, zval)

Leaflet: How to display markers behind polygons?

扶醉桌前 提交于 2019-12-07 21:45:18
问题 I need icons (PNG) and polygons on my map. So I create icons as markers and polygons as polygons. Unfortunately regardless of creation order polygons are displayed "below" markers. I need is vice-versa. Is there a way, how to do it? 回答1: EDIT: Correct default panes order in Leaflet 0.x: (from top-most to bottom-most) objectsPane popupPane markerPane <= all markers icon (other than L.CircleMarker ) shadowPane <= all markers icon shadow overlayPane <= all vectors (including L.CircleMarker )

Modeless, parentless wxDialog still always above wxFrame window in z-order?

与世无争的帅哥 提交于 2019-12-07 12:35:21
问题 My program opens a wxFrame-based window and multiple modeless and parentless wxDialog-based windows. It all works beautifully, except that the wxDialog-based windows insist on always being on top of the wxFrame-based one. I know about wxDIALOG_NO_PARENT , and I'm using it. The dialogs stay open when I close the wxFrame, so they definitely don't have the wxFrame window as a parent. (If it matters, I'm using C++, wxWidgets 2.8.something, and running it on Ubuntu Linux. My program isn't ready to

Efficient z-order transformation in Fortran

蹲街弑〆低调 提交于 2019-12-07 11:22:31
For my current work on a grid generation algorithm I need an efficient way to transform three-dimensional coordinates to z-order (more precisely: three 4-Byte integers into one 8-Byte integer) and the other way round. This Wikipedia article describes it fairly well: Z-order curve . Since I am not a programmer, the solution I came up with does what it is supposed to do but might be quite naive using the mvbits intrinsic to do the bit interleaving explicitly: SUBROUTINE pos_to_z(i, j, k, zval) use types INTEGER(I4B), INTENT(IN) :: i, j, k INTEGER(I8B), INTENT(OUT) :: zval INTEGER(I8B) :: i8, j8,

Leaflet: How to display markers behind polygons?

我们两清 提交于 2019-12-06 08:38:28
I need icons (PNG) and polygons on my map. So I create icons as markers and polygons as polygons. Unfortunately regardless of creation order polygons are displayed "below" markers. I need is vice-versa. Is there a way, how to do it? ghybs EDIT: Correct default panes order in Leaflet 0.x: (from top-most to bottom-most) objectsPane popupPane markerPane <= all markers icon (other than L.CircleMarker ) shadowPane <= all markers icon shadow overlayPane <= all vectors (including L.CircleMarker ) tilePane So just using the marker's icon shadow is not enough. You have to manually change the z-index of

Modeless, parentless wxDialog still always above wxFrame window in z-order?

喜欢而已 提交于 2019-12-05 19:57:20
My program opens a wxFrame-based window and multiple modeless and parentless wxDialog-based windows. It all works beautifully, except that the wxDialog-based windows insist on always being on top of the wxFrame-based one. I know about wxDIALOG_NO_PARENT , and I'm using it. The dialogs stay open when I close the wxFrame, so they definitely don't have the wxFrame window as a parent. (If it matters, I'm using C++, wxWidgets 2.8.something, and running it on Ubuntu Linux. My program isn't ready to compile on any other platform, so I haven't tested it on others yet.) I want all the windows to

What is the best way to determine if a window is actually visible in WPF

时光怂恿深爱的人放手 提交于 2019-12-05 02:14:35
I'm trying to toggle the display of a small window based on the click of a notify icon in a system tray app. This is simple enough to implement, however when the small window is displayed and another application takes focus and therefore moves in front of it (z-order) I want the toggle to assume that the small window is now hidden, even though it's visibility is still set to visible. Otherwise, clicking the icon would set the windows visiblity to hidden even though it is already hidden behind another. I've tried catching / overriding the activate and deactive methods to keep track but clicking

c# wpf overlapping controls not receiving mouse events

僤鯓⒐⒋嵵緔 提交于 2019-12-05 00:16:37
问题 I am building a canvas control. This root canvas has several overlapping children (canvas as well). This is done so each child can handle its own drawing and I can then compose the final result with any combination of children to get the desired behavior. This is working very well as far as rendering is concerned. This does not work so well with mouse events however. The way mouse events works are as follow (using previewmousemove as an example): 1- If root canvas is under mouse, fire event 2

Why doesn't Word “come to front” when we activate it?

馋奶兔 提交于 2019-12-04 21:17:57
问题 Our winforms application interacts with MS Word and we run this code when a document is generated and we want to show it in Word in front of our application: [setup w as a Word interop object] w.Visible = True w.Activate() When rolled out to XP machines running Office 2007 this works as intended. On Win7 machines running Office 2010 the document loads behind our application and flashes on the taskbar. Any ideas? 回答1: I stumbled upon a similar problem recently. My .NET program called a COM

WPF Popup ZOrder

ぃ、小莉子 提交于 2019-12-04 15:28:53
I am using a WPF Popup, but it popups up above every single window on my desktop, even when my application is minimized. How can I make it stay only on the window it originated? The same thing happens when my window is behind other windows: the popup displays above them all. "There must be something can be done!" Thanks. I've tried to solve this issue as well, and have found no good solution. This seems to be the way it is supposed to work, and you can't override that. The only solution I've come up with is to just use a regular layout panel and raise it's Z-Index, so it is the top-level