[vtkusers] Axis issues

Gerrick Bivins gbivins at objectreservoir.com
Tue Jul 1 09:43:05 EDT 2008


Ok. I understand what you are trying to do now. I don't think
vtkCubAxesActor gives you the access to underlying structures that you'd
need to customize the actor (Xaxis,Yaxis,Zaxis). It probably could be
modified to do so by adding some extra Get/Set methods to the interface.
Probably should log a bug/feature request.

I'm actually having the same problem you are having with the "offset" issue
but mine is occurring when I scale the CubeAxesActor. The class doesn't
provide an interface to set the range of values to label along the axes so
any modifications to it's placement, changes the values displayed!!! OUCH.
This should also probably be logged as a bug/feature request.

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

> 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