From: Jonathan S. <jjs...@us...> - 2005-04-21 17:04:32
|
Update of /cvsroot/octaviz/octaviz/Scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25186 Modified Files: vtkGetDataRoot.m vtk_axis.m vtk_figure.m Log Message: working on axes functionality Index: vtk_figure.m =================================================================== RCS file: /cvsroot/octaviz/octaviz/Scripts/vtk_figure.m,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- vtk_figure.m 31 Mar 2005 17:40:21 -0000 1.8 +++ vtk_figure.m 21 Apr 2005 17:04:23 -0000 1.9 @@ -169,11 +169,11 @@ axes.SetAxisTitleTextProperty(tprop); axes.SetAxisLabelTextProperty(tprop); axes.SetViewProp( outline_actor ); - axes.GetXAxisActor2D().AdjustLabelsOn(); - axes.GetYAxisActor2D().AdjustLabelsOn(); - axes.GetZAxisActor2D().AdjustLabelsOn(); - axes.SetInertia(10); - axes.ScalingOn(); + ##axes.GetXAxisActor2D().AdjustLabelsOn(); # discovered a case where the axis label is off by ~25% when this is used; JJS 4/5/05 + ##axes.GetYAxisActor2D().AdjustLabelsOn(); + ##axes.GetZAxisActor2D().AdjustLabelsOn(); + axes.SetInertia(10); + axes.ScalingOn(); renderer.AddActor(axes); ren_win = vtkRenderWindow; Index: vtkGetDataRoot.m =================================================================== RCS file: /cvsroot/octaviz/octaviz/Scripts/vtkGetDataRoot.m,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- vtkGetDataRoot.m 21 Sep 2004 22:50:44 -0000 1.1.1.1 +++ vtkGetDataRoot.m 21 Apr 2005 17:04:22 -0000 1.2 @@ -1,5 +1,7 @@ -function f = vtkGetDataRoot();; - -f = "/usr/share/vtkdata";;; +function f = vtkGetDataRoot() -endfunction;; \ No newline at end of file + ## I guess this is a locally set variable; should put this in documents + ## f = "/usr/share/vtkdata"; + f = "/usr/local/share/vtk/VTKData-release-4-4"; + +endfunction Index: vtk_axis.m =================================================================== RCS file: /cvsroot/octaviz/octaviz/Scripts/vtk_axis.m,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- vtk_axis.m 23 Oct 2004 18:47:58 -0000 1.2 +++ vtk_axis.m 21 Apr 2005 17:04:23 -0000 1.3 @@ -36,3 +36,11 @@ vtk_update(f); endfunction + + +## to set arbitrary ranges on the axes +##f.axes.UseRangesOn +##f.axes.SetRanges(xl,xh,yl,yh,zl,zh) + +## to set arbitrary scaling???? +##f.renderer.GetProps.GetLastProp.SetScale(xscale,yscale,zscale) \ No newline at end of file |