MantisBT - ParaView
View Issue Details
0005521ParaView(No Category)public2007-08-16 15:362011-01-13 17:00
Alan Scott 
Utkarsh Ayachit 
highfeaturealways
closedfixed 
 
3.43.4 
0005521: Add a ruler source/filter
A user has requested that we add a ruler type feature to ParaView. This user wants to know how far two cells, points, or objects are from each other.
No tags attached.
Issue History
2007-08-16 15:36Alan ScottNew Issue
2007-08-16 19:00Alan ScottNote Added: 0008494
2007-08-29 16:00Berk GeveciStatusbacklog => tabled
2008-02-18 15:18Alan ScottNote Added: 0010548
2008-02-18 15:18Alan ScottPrioritynormal => high
2008-02-18 15:18Alan ScottCategory => 3.2
2008-04-14 17:10Berk GeveciAssigned To => Berk Geveci
2008-04-14 17:10Berk GeveciCategory => 3.4
2008-05-15 13:57Utkarsh AyachitNote Added: 0011947
2008-05-15 13:57Utkarsh AyachitAssigned ToBerk Geveci => Utkarsh Ayachit
2008-05-16 15:56Utkarsh AyachitStatustabled => @80@
2008-05-16 15:56Utkarsh AyachitResolutionopen => fixed
2008-05-16 15:56Utkarsh AyachitNote Added: 0011974
2008-05-21 22:50Alan ScottStatus@80@ => @20@
2008-05-21 22:50Alan ScottResolutionfixed => reopened
2008-05-21 22:50Alan ScottNote Added: 0012060
2008-05-21 22:54Alan ScottNote Added: 0012061
2008-05-22 07:42Utkarsh AyachitNote Added: 0012068
2008-05-30 14:55Utkarsh AyachitStatus@20@ => @80@
2008-05-30 14:55Utkarsh AyachitResolutionreopened => fixed
2008-05-30 14:55Utkarsh AyachitNote Added: 0012167
2008-06-02 18:58Alan ScottStatus@80@ => @20@
2008-06-02 18:58Alan ScottResolutionfixed => reopened
2008-06-02 18:58Alan ScottNote Added: 0012192
2008-06-02 18:59Alan ScottNote Added: 0012193
2008-06-06 09:42Utkarsh AyachitStatus@20@ => @80@
2008-06-06 09:42Utkarsh AyachitResolutionreopened => fixed
2008-06-06 09:42Utkarsh AyachitNote Added: 0012271
2008-06-09 20:51Alan ScottStatus@80@ => closed
2008-06-09 20:51Alan ScottNote Added: 0012296
2009-05-13 13:58Utkarsh AyachitTarget Version => 3.4
2009-05-13 13:59Utkarsh AyachitFixed in Version => 3.4
2011-01-13 17:00Source_changeset_attached => VTK master a2bd8391
2011-01-13 17:00Source_changeset_attached => VTK master 020ef709
2011-06-16 13:10Zack GalbreathCategory => (No Category)

Notes
(0008494)
Alan Scott   
2007-08-16 19:00   
In ParaView 2.6, you do this with the icon that looks like a ruler. It is a line source. You place the ends of the line on a surface by hitting the 'p' key. The length is displayed right below the x,y, and z of point 1 and point 2 (on the Parameters tab).

PV 3.0 has a line source, but 1) you cannot place the ends easily on the top of a surface, and 2) it does not display the length of the line.
(0010548)
Alan Scott   
2008-02-18 15:18   
I am changing this to High priority. We have had multiple requests that we have some type of ruler function. We need to at least implement either this feature, or 5422.
(0011947)
Utkarsh Ayachit   
2008-05-15 13:57   
Change line source to show length information somewhere.
(0011974)
Utkarsh Ayachit   
2008-05-16 15:56   
A new "Ruler" source has been added.
(0012060)
Alan Scott   
2008-05-21 22:50   
I'm pretty sure this is messing up the cube axis. Thus, asking for feedback on this bug.

Please run exactly as follows:

* Client/server - 6 servers. XP client.
* Open disk_out_ref.exo. Apply.
* Sources/ Ruler. (Don't hit apply)
* On bottom of cylinder, hit a 'p'.
* On top of cylinder, hit a 'p'.
(Note, it would sure be nice to document somehow that you could hit a p here.)
(Note, it would sure be nice to auto-accept here.)
* Apply.
* Display tab/ Show cube axes. The axes are located inside of the cylinder.
(0012061)
Alan Scott   
2008-05-21 22:54   
Ah-hah. Lots of the junk above doesn't have to be done - the cube axes for the ruler is always weird. Turns out that it is putting the cube axes around the ruler itself. Does this make sense - should we just leave it, or should we turn off the Show Cube Axes for the ruler (and does that make sense)?
(0012068)
Utkarsh Ayachit   
2008-05-22 07:42   
Berk was suggesting we don't create any representation for the ruler. In otherwords, the display tab will never be enabled for the ruler, hence one will never see the cube-axes. Does that work?

I am guessing, however, the cube-axes has issues dealing with 1D data. So that is a bug we'd surely want to fix at some point.
(0012167)
Utkarsh Ayachit   
2008-05-30 14:55   
We can no longer apply cube-axes to the ruler.
(0012192)
Alan Scott   
2008-06-02 18:58   
Very nice.

Now, when we turn on the ruler, and hit Apply (the button goes green), a seperate window opens up - with only the ruler in it.

XP client/ 6 pvservers
Open can.exo, apply.
Sources/ Ruler/ apply.
(0012193)
Alan Scott   
2008-06-02 18:59   
Oh yes - when you close the separate window, PV crashes.
(0012271)
Utkarsh Ayachit   
2008-06-06 09:42   
* vtkLineRepresentation was not passing the renderer to the internal
  representations, consequently, when the view was destroyed the internal
  representations had a dangling pointer which led to segfaults.
* pqDisplayPolicy was create a new render view even when the render view could
  not show the current source. This was resulting the a new 3D view being
  created when a ruler source was created. Fixed that.

/cvsroot/ParaView3/ParaView3/Qt/Core/pqDisplayPolicy.cxx,v <-- Qt/Core/pqDisplayPolicy.cxx
new revision: 1.38; previous revision: 1.37
/cvsroot/ParaView3/ParaView3/VTK/Widgets/vtkLineRepresentation.cxx,v <-- VTK/Widgets/vtkLineRepresentation.cxx
new revision: 1.11; previous revision: 1.10
/cvsroot/ParaView3/ParaView3/VTK/Widgets/vtkLineRepresentation.h,v <-- VTK/Widgets/vtkLineRepresentation.h
new revision: 1.6; previous revision: 1.5
(0012296)
Alan Scott   
2008-06-09 20:51   
Great new feature.

Tested local client. Blackrose is down.