From: Jonathan S. <jjs...@us...> - 2007-10-17 14:38:19
|
Update of /cvsroot/octaviz/octaviz/Scripts In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv19597 Modified Files: vtkGetDataRoot.m vtk_clear.m vtk_contour.m Log Message: work on contour view and Z axis visibility Index: vtkGetDataRoot.m =================================================================== RCS file: /cvsroot/octaviz/octaviz/Scripts/vtkGetDataRoot.m,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- vtkGetDataRoot.m 25 Feb 2007 19:29:52 -0000 1.5 +++ vtkGetDataRoot.m 17 Oct 2007 14:38:16 -0000 1.6 @@ -37,7 +37,7 @@ env_data_root = getenv("VTK_DATA_ROOT"); ## set at Octaviz's compile time - oct_data_root = "@VTK_DATA_ROOT@"; + oct_data_root = ""; ## locally set path local_data_root = "/usr/share/VTKData"; Index: vtk_clear.m =================================================================== RCS file: /cvsroot/octaviz/octaviz/Scripts/vtk_clear.m,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- vtk_clear.m 29 Dec 2006 04:45:27 -0000 1.4 +++ vtk_clear.m 17 Oct 2007 14:38:17 -0000 1.5 @@ -44,6 +44,9 @@ ++i; endwhile + f.axes.XAxisVisibilityOn(); + f.axes.YAxisVisibilityOn(); + f.axes.ZAxisVisibilityOn(); vtk_update(f); endfunction Index: vtk_contour.m =================================================================== RCS file: /cvsroot/octaviz/octaviz/Scripts/vtk_contour.m,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- vtk_contour.m 11 Oct 2007 14:36:57 -0000 1.3 +++ vtk_contour.m 17 Oct 2007 14:38:17 -0000 1.4 @@ -134,7 +134,10 @@ f = vtk_figure(0); f.renderer.AddActor(contActor); - f.axes.YAxisVisibilityOff(); % turn off the "Z" axes (but use YAxis command!? is this a bug?) + %% turn off "Z" axis and set camera + f.renderer.GetActiveCamera().SetPosition(0,0,1); + f.renderer.GetActiveCamera().SetViewUp(0,1,0); + f.axes.YAxisVisibilityOff(); % this is buggy... JJS 10/17/07 vtk_update(f); endfunction |