MantisBT - VTK | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0006913 | VTK | (No Category) | public | 2008-04-28 08:00 | 2016-08-12 09:54 |
| Reporter | Julian Ibarz | ||||
| Assigned To | Kitware Robot | ||||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | moved | ||
| Platform | OS | OS Version | |||
| Product Version | |||||
| Target Version | Fixed in Version | ||||
| Project | |||||
| Type | |||||
| Summary | 0006913: 2 Bugs of pursuit of the light in vtkCanvas | ||||
| Description | When we create a camera and send it to the renderer the vtkPanel member cam is not refreshed to point to the new active camera, this has to effect that the light does not follow the new camera but the old. To correct this we can change the UpdateLight method : public void UpdateLight() { lgt.SetPosition(cam.GetPosition()); lgt.SetFocalPoint(cam.GetFocalPoint()); } in public void UpdateLight() { cam = GetRenderer().GetActiveCamera(); lgt.SetPosition(cam.GetPosition()); lgt.SetFocalPoint(cam.GetFocalPoint()); } Also vtkCanvas.mouseDragged does not take in case the value of this.LightFollowCamera state : vtkPanel.mouseDragged version (correct version) : if (this.LightFollowCamera == 1) { lgt.SetPosition(cam.GetPosition()); lgt.SetFocalPoint(cam.GetFocalPoint()); } vtkCanvas.mouseDragged override version : public void mouseDragged(MouseEvent e) { if (ren.VisibleActorCount() == 0) return; int x = e.getX(); int y = e.getY(); ctrlPressed = (e.getModifiers() & InputEvent.CTRL_MASK) == InputEvent.CTRL_MASK ? 1:0; shiftPressed = (e.getModifiers() & InputEvent.SHIFT_MASK) == InputEvent.SHIFT_MASK ? 1:0; iren.SetEventInformationFlipY(e.getX(), e.getY(), ctrlPressed, shiftPressed, '0', 0, "0"); Lock(); iren.MouseMoveEvent(); UnLock(); UpdateLight(); } | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2008-04-28 08:00 | Julian Ibarz | New Issue | |||
| 2008-04-28 08:11 | Julian Ibarz | Note Added: 0011564 | |||
| 2008-04-30 10:29 | Julian Ibarz | Note Added: 0011601 | |||
| 2008-05-10 17:13 | Julian Ibarz | Note Edited: 0011601 | |||
| 2011-06-16 13:11 | Zack Galbreath | Category | => (No Category) | ||
| 2016-08-12 09:54 | Kitware Robot | Note Added: 0036971 | |||
| 2016-08-12 09:54 | Kitware Robot | Status | expired => closed | ||
| 2016-08-12 09:54 | Kitware Robot | Resolution | open => moved | ||
| 2016-08-12 09:54 | Kitware Robot | Assigned To | => Kitware Robot | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||