[vtkusers] Axis issues

Sarah Macumber S.Macumber at QuestReliability.com
Fri Jun 27 16:45:18 EDT 2008


Thanks Biv for your suggestions.
 
I am looking to set the text properties not the format of the displayed text string.  Basically I am looking for the way to connect a vtkTextProperty to the vtkCubeAxesActor because my text is showing up tiny.
 
Also changing the offset doesn't move the entire prop in the scene.  It just seperates the axes so they wont over lap.
 
Help appreciated,
Sarah

________________________________

From: vtkusers-bounces at vtk.org on behalf of Gerrick Bivins
Sent: Fri 6/27/2008 2:31 PM
To: Sarah Macumber; VTK-users
Subject: Re: [vtkusers] Axis issues



What version of VTK are you using? I'm on the 5.2 branch. In there, a bunch
of customization methods for setting text properties for each axis, title
and ticks. Checkout:
http://www.vtk.org/doc/nightly/html/classvtkCubeAxesActor.html

I'm setting my fonts something  like:
cubeAxis.SetXLabelFormat("%6.4g");
cubeAxis.SetYLabelFormat("%6.4g");
cubeAxis.SetZLabelFormat("%6.4g");

To offset the origin you could try:
cubeAxis.SetCornerOffset( offset );

biv


On 6/27/08 12:42 PM, "Sarah Macumber" <S.Macumber at QuestReliability.com>
wrote:

> Do you know how to set the text properties of this actor or how to shift it
> off the origin? The Set Origin doesn't seem to be working.
> 
> Thanks, Sarah
>
> ________________________________
>
> From: Gerrick Bivins [mailto:gbivins at objectreservoir.com]
> Sent: Thu 6/26/2008 10:29 PM
> To: Sarah Macumber; VTK-users
> Subject: Re: [vtkusers] Axis issues
>
>
>
> If you want the axis to stick to your dataset, you can try vtkCubeAxesActor.
> There are still some quirky things there (I run across them when scaling my
> data) I was able to work around it and the axes stay attached to dataset
> bounds correctly when navigating around.
> biv
>
> On 6/26/08 7:37 PM, "Sarah Macumber" <S.Macumber at QuestReliability.com>
> wrote:
>
>> Hi,
>>
>> I am having problems with setting up 3D axes with tick marks.  When I use
>> vtkAxisActor it disapears if I am rotating / zooming in certain directions.
>> If I use vtkAxisActor2D when I rotate the axis it can come "unhinged" from
>> where it should be.  Has anyone else seen such wierd behavior with the axis
>> objects when you zoom / rotate?
>>
>> Thanks in advance,
>> Sarah
>> _______________________________________________
>> This is the private VTK discussion list.
>> Please keep messages on-topic. Check the FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
>

_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers





More information about the vtkusers mailing list