View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005111VTK(No Category)public2007-05-30 21:432016-08-12 09:54
ReporterSteve Robbins 
Assigned ToKarthik Krishnan 
PrioritylowSeveritymajorReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0005111: coordinate conversions inconsistent
DescriptionThere are myriad ways to convert point locations between DISPLAY, VIEWPORT, VIEW, and WORLD coordinates. For example: vtkRenderer provides SetWorldPoint(), WorldToDisplay(), and GetDisplayPoint() which can be strung together to transform world coordinates to display coordinates; on the other hand vtkCoordinate provides SetCoordinateSystemToWorld(), SetValue() and GetComputedDoubleDisplayValue() which should do the same transformation.

However, the two methods don't always agree.

There are more examples of conversion inconsistency between vtkRenderer and vtkCoordinate, as demonstrated by the attached test case.
TagsNo tags attached.
Project
Type
Attached Filescxx file icon coordinateConversion.cxx [^] (10,217 bytes) 1969-12-31 19:00
? file icon testCoordinateConversion.cc [^] (2,261 bytes) 2011-09-15 23:35

 Relationships

  Notes
(0007736)
Steve Robbins (reporter)
2007-05-30 21:52

Note: the file coordinateConversion.cxx is meant to drop into directory Rendering/Testing/Cxx, and be added to the tests:

Index: Rendering/Testing/Cxx/CMakeLists.txt
===================================================================
RCS file: /cvsroot/VTK/VTK/Rendering/Testing/Cxx/CMakeLists.txt,v
retrieving revision 1.39
diff -u -b -B -r1.39 CMakeLists.txt
--- Rendering/Testing/Cxx/CMakeLists.txt 22 Nov 2006 15:50:36 -0000 1.39
+++ Rendering/Testing/Cxx/CMakeLists.txt 31 May 2007 01:43:04 -0000
@@ -1,6 +1,7 @@
 SET(KIT Rendering)

 SET(RenderingTests
+ coordinateConversion.cxx
   otherCoordinate.cxx
   TestPriorityStreaming.cxx
   )
(0027485)
Steve Robbins (reporter)
2011-09-15 23:36

Note that the bug persists in VTK 5.6 I've uploaded a shorter file (testCoordinateConversion.cc) that demonstrates it.
(0036915)
Kitware Robot (administrator)
2016-08-12 09:54

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2008-02-06 10:00 Jeff Baumes Assigned To Will Schroeder => Karthik Krishnan
2011-06-16 13:11 Zack Galbreath Category => (No Category)
2011-09-15 23:35 Steve Robbins File Added: testCoordinateConversion.cc
2011-09-15 23:36 Steve Robbins Note Added: 0027485
2016-08-12 09:54 Kitware Robot Note Added: 0036915
2016-08-12 09:54 Kitware Robot Status expired => closed
2016-08-12 09:54 Kitware Robot Resolution open => moved


Copyright © 2000 - 2018 MantisBT Team