[vtkusers] filter for shifting dataset?
Louis Desjardins
lost_bits1110 at hotmail.com
Tue Jul 13 16:43:02 EDT 2004
thanks for yoru reply,
so if i have a type of dataset which i am translating (say i am translating
the whole dataset), where does this fit into the pipeline,
i.e. i guess then where would I Get/Set the DataSet's PointSet..?
thanks again,
LD
>From: Luca Pallozzi Lavorante <lucapl at rc.unesp.br>
>To: Louis Desjardins <lost_bits1110 at hotmail.com>
>Subject: Re: [vtkusers] filter for shifting dataset?
>Date: Tue, 13 Jul 2004 10:47:25 -0300
>
>Hi Louis,
>you should do the following:
>
>Create a vtkTransform object, say "matrix"
>invoke matrix->Translate (tx, ty, tz) (see documentation)
>
>Create a vtkTransformFilter object, say "transform"
>invoke transform->SetTransform(matrix).
>
>That´s it. Now you just need to grab transform´s output which will be
>translated as specified in the "matrix" object. By the way, have a look at
>vtkTransform documentation to see the different matrix operations you can
>apply to the object´s geometry. It is very powerfull.
>
> greetings
>
> Luca
>
>
>Louis Desjardins wrote:
>
>>Thanks for your help,
>>I took a look at it, and need to pass in AbstractTransform somewhere..
>>however where in AbstractTransform (or subclasses) is the function where i
>>can define the kind of transform i want to do (translation etc..), or
>>maybe i need to set a matrix.. but i cant find wehre to set it.. =S
>>thanks again,
>>
>>
>>>From: Amy Henderson <amy.henderson at kitware.com>
>>>To: vtkusers at vtk.org
>>>Subject: Re: [vtkusers] filter for shifting dataset?
>>>Date: Tue, 13 Jul 2004 09:00:26 -0400
>>>
>>>Take a look at vtkTransformFilter.
>>>
>>>- Amy
>>>
>>>At 08:57 AM 7/13/2004, Louis Desjardins wrote:
>>>
>>>>Hi,
>>>>
>>>>Is there a filter that exists that will shift my dataset over somewhere
>>>>(translate it), (rather than just using Actor->SetPosition)
>>>>
>>>>Thanks..!
>>>
>
_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar get it now!
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
More information about the vtkusers
mailing list