[vtkusers] Re : [vtk 5.8.0] vtkCubeAxesActor and SetZAxisRange Problem
R M
mlokida at yahoo.fr
Fri Dec 9 09:06:05 EST 2011
Sometimes, I have a vtk error with the vtkCubeAxesActor and the SetZAxisRangeBut since, I don't set directly the text, is there a bug in this class ?
ERROR: In E:\libs\vtk\vtk-5.8.0\Hybrid\vtkVectorText.cxx, line 1728
vtkVectorText (06CD0F50): Text is not set!
ERROR: In E:\libs\vtk\vtk-5.8.0\Filtering\vtkExecutive.cxx, line 756
vtkStreamingDemandDrivenPipeline (03ED3C98): Algorithm
vtkVectorText(06CD0F50) returned failure for request: vtkInformation
(06C48910)
Debug: Off
Modified Time: 5134599
Reference Count: 1
Registered Events: (none)
Request: REQUEST_DATA
FORWARD_DIRECTION: 0
ALGORITHM_AFTER_FORWARD: 1
FROM_OUTPUT_PORT: 0
Thank you.
________________________________
De : R M <mlokida at yahoo.fr>
À : R M <mlokida at yahoo.fr>; "vtkusers at vtk.org" <vtkusers at vtk.org>
Envoyé le : Jeudi 8 Décembre 2011 17h08
Objet : Re : [vtkusers] [vtk 5.8.0] vtkCubeAxesActor and SetZAxisRange Problem
Can someone tell me if I do something wrong with my code or if it's a bug ?
Thank you.
________________________________
De : R M <mlokida at yahoo.fr>
À : "vtkusers at vtk.org" <vtkusers at vtk.org>
Envoyé le : Jeudi 8 Décembre 2011 10h20
Objet : [vtkusers] [vtk 5.8.0] vtkCubeAxesActor and SetZAxisRange Problem
Hello,
I have a display problem with SetZAxisRange of vtkCubeAxesActor (with vtk 5.8 on Linux and Windows).
I have a geometry that I scale along the Z axis (in order to have a better view). I want to plot bbox geometry info. So, I use vtkCubeAxesActo.
Moreover, I want to have Zmin and Zmax of my orignal geometry and not the scaled values. So, I use SetZAxisRange to set zmin and zmax of my geometry.
I set the actor bbox of my geometry to the the vtkCubeAxesActor (using SetBounds).
cubeAxesActor->SetBounds(pld->getActor()->GetBounds());
sp_cubeAxesActor->SetZAxisRange(geozMin, geozMax);
At each scaling, I set cubeAxesActor->SetBounds(pld->getActor()->GetBounds());
The bounds are OK but the Z Range is not updated when coming back to the orignal geometry scale. When rotating, the other displayed Z axis are Ok but the one with the Z range problem is always affected. In attachment there is a screenshot of the problem.
Any idea to resolve this problem ? Is it a bug ?
Thank you.
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20111209/2bc72c8a/attachment.htm>
More information about the vtkusers
mailing list