Commit 36a75873 authored by Bill Lorensen's avatar Bill Lorensen
Browse files

COMP: Mac issues with odd-sized baseline images

NSWindow's behaviour round sizes *up* to even integral sizes.

This seems to be related to the limitation for Macs with retina
display - they can only create windows with width and height with even
number of pixels.

If you try to create a window with height or width
with odd number of pixels you end up with height or width with even
number of pixels.
parent 6c8f7d12
b6c364f94d2b924e8f084e7369d0485e
d9bd387063b2180df6c97da533a7d9ed
......@@ -51,5 +51,6 @@ viewer.SetInputConnection(cac.GetOutputPort())
viewer.SetZSlice(90)
viewer.SetColorWindow(2000)
viewer.SetColorLevel(1000)
viewer.SetSize(200,200)
viewer.Render()
# --- end of script --
......@@ -57,5 +57,6 @@ vtkImageViewer viewer
viewer SetZSlice 90
viewer SetColorWindow 2000
viewer SetColorLevel 1000
viewer SetSize 200 200
viewer Render
3f3d7018d1d67903e2aa280aab128966
676a05cb962d287c1d652d69082045aa
458ee7ae75092b578441f79e3a90a4ce
d20e151e256ef6b2ffb6b40140398899
......@@ -122,7 +122,7 @@ try:
ren1.ResetCameraClippingRange()
ren1.SetBackground(1, 1, 1)
renWin.SetSize(375, 200)
renWin.SetSize(380, 200)
renWin.SetMultiSamples(0)
iren.Initialize()
......
......@@ -105,7 +105,7 @@ ren1 ResetCamera
[ren1 GetActiveCamera] Dolly 2
ren1 ResetCameraClippingRange
ren1 SetBackground 1 1 1
renWin SetSize 375 200
renWin SetSize 380 200
renWin SetMultiSamples 0
iren Initialize
......
48ecaefd90caf9267efdd8cf9e1bd87d
3c2d5b07e4bf5a153f3c309ba2750905
35546e964face99028bc34f9d85ccfb0
7900acb9c76a1ec622c24851182c5300
3d1063ecbb9e413eaeb9646b09fe6b40
928582c147be661811b4a5266f7ba5e4
......@@ -66,7 +66,7 @@ ren1.GetActiveCamera().Azimuth(60)
ren1.GetActiveCamera().Roll(-90)
ren1.GetActiveCamera().Dolly(1.5)
ren1.ResetCameraClippingRange()
renWin.SetSize(500,375)
renWin.SetSize(500,380)
iren.Initialize()
# prevent the tk window from showing up then start the event loop
# --- end of script --
......@@ -82,7 +82,7 @@ ren1.AddActor(isoVyActor)
ren1.AddActor(isoVzActor)
isoVzActor.AddPosition(0,-12,0)
ren1.SetBackground(.8,.8,.8)
renWin.SetSize(321,321)
renWin.SetSize(320,320)
ren1.GetActiveCamera().SetPosition(-63.3093,-1.55444,64.3922)
ren1.GetActiveCamera().SetFocalPoint(8.255,0.0499763,29.7631)
ren1.GetActiveCamera().SetViewAngle(30)
......
......@@ -68,7 +68,7 @@ ren1 ResetCamera
[ren1 GetActiveCamera] Roll -90
[ren1 GetActiveCamera] Dolly 1.5
ren1 ResetCameraClippingRange
renWin SetSize 500 375
renWin SetSize 500 380
iren Initialize
# prevent the tk window from showing up then start the event loop
......
......@@ -89,7 +89,7 @@ ren1 AddActor isoVyActor
ren1 AddActor isoVzActor
isoVzActor AddPosition 0 -12 0
ren1 SetBackground .8 .8 .8
renWin SetSize 321 321
renWin SetSize 320 320
[ren1 GetActiveCamera] SetPosition -63.3093 -1.55444 64.3922
[ren1 GetActiveCamera] SetFocalPoint 8.255 0.0499763 29.7631
......
24bc70955972f9cd4ef8571c463ca80d
bc80d36b892cdf119a5486d021a03742
......@@ -126,7 +126,7 @@ slActor.AddPosition(0,24,0)
ren1.AddActor(outlineActor)
outlineActor.AddPosition(0,24,0)
ren1.SetBackground(.8,.8,.8)
renWin.SetSize(321,321)
renWin.SetSize(320,320)
ren1.GetActiveCamera().SetPosition(-20.3093,20.55444,64.3922)
ren1.GetActiveCamera().SetFocalPoint(8.255,0.0499763,29.7631)
......
......@@ -127,7 +127,7 @@ slActor AddPosition 0 24 0
ren1 AddActor outlineActor
outlineActor AddPosition 0 24 0
ren1 SetBackground .8 .8 .8
renWin SetSize 321 321
renWin SetSize 320 320
[ren1 GetActiveCamera] SetPosition -20.3093 20.55444 64.3922
[ren1 GetActiveCamera] SetFocalPoint 8.255 0.0499763 29.7631
......
d1c0b2c037d661bca0985fb18ac87e3c
55261bd342d5944ad31d938deed77b9e
......@@ -58,5 +58,6 @@ viewer.SetInputConnection(reslice.GetOutputPort())
viewer.SetZSlice(70)
viewer.SetColorWindow(2000)
viewer.SetColorLevel(1000)
viewer.SetSize(200,200)
viewer.Render()
# --- end of script --
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment