[vtkusers] axes on imagedata graph

Louis Desjardins lost_bits1110 at hotmail.com
Wed Jul 27 12:55:36 EDT 2005


thanks amy, however what if my image data set  has positive and negative y 
values? So how can I tell it it where the (0,0) corner is?

for example lets say what I show below is my imagedata set wehre # is some 
value and * is where (0,0) is. So then how can I set my axes at this point?

# # # # # # # # # #
# # # # # # # # # #
# # # # # # # # # #
# # # * # # # # # #
# # # # # # # # # #
# # # # # # # # # #

I also want to be able to change the axes so I may instead now want it to be 
here:

# # # # # # # # # #
# # # # # # # # # #
# # # # # # # # # #
# # # # # # # # # #
* # # # # # # # # #
# # # # # # # # # #

Just as an example..
anywyas let me know if I make (or dont make) any sense.. :s
Any help is greatly appreciated
Thank you

LD

>From: Amy Squillacote <amy.squillacote at kitware.com>
>To: "Louis Desjardins" <lost_bits1110 at hotmail.com>, vtkusers at vtk.org
>Subject: Re: [vtkusers] axes on imagedata graph
>Date: Wed, 27 Jul 2005 11:22:54 -0400
>
>Hi Louis,
>
>Did you try the SetInput method of vtkCubeAxesActor2D?  If you pass your 
>vtkImageData as the parameter for that method, then the vtkCubeAxesActor2D 
>will use the bounding box of this data set to draw the axes.
>
>- Amy
>
>At 11:07 AM 7/27/2005, Louis Desjardins wrote:
>>Hello experts,
>>
>>So I have created a spectrogram using the vtkImageData dataset.  I then 
>>use vtkCubeAxesActor2D to create an axes over the imagedata. I have 
>>positioned the axes through trial and error so that the x-axis corresponds 
>>to the y=0 location on my imagedata..
>>
>>However there must be a better way to do this?
>>
>>Thank you!
>>LD
>>
>>
>>_______________________________________________
>>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