[vtkusers] vtkImageActor->SetPosition()

Amy Henderson amy.henderson at kitware.com
Wed Nov 3 09:47:02 EST 2004


One other thought...  You could try using vtkActor2D instead of 
vtkImageActor; it has a SetPosition method, but the coordinates for setting 
the position are in 2D.
- Amy

At 09:35 AM 11/3/2004, Amy Henderson wrote:
>At 04:56 AM 11/3/2004, =?ISO-8859-2?Q?Michnay_Bal=E1zs?= wrote:
>>Dear VTK Users,
>>in the Class Reference of vtkImageActor there's a SetPosition method,
>>which moves the image to the given coordinates. That's exactly what
>>I'd like to use but the following statement results an error (SetPosition -
>>  unknown identifier)
>>
>>m_iactor = vtkImageActor::New()
>>...
>>m_iactor->SetPosition(...);  <- causes error message.
>>
>>The interesting part is that the documentation on my machine doesn't
>>list SetPosition as a member of the vtkImageActor class... I'm using VTK
>>4.2... (as far as I know...)
>
>Evidently your documentation is from the development version of VTK, and 
>the version of your copy of VTK is 4.2 (or maybe 4.4).  A few months ago 
>(since the last release), the superclass of vtkImageActor wa changed from 
>vtkProp to vtkProp3D.  vtkProp3D is the class that has the SetPosition 
>method; vtkProp does not.
>
>- Amy
>
>
>_______________________________________________
>This is the private VTK discussion list. Please keep messages on-topic. 
>Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtkusers






More information about the vtkusers mailing list