[vtkusers] Re: question about vtkActors
Anja Ende
anja.ende at googlemail.com
Tue Oct 10 09:39:50 EDT 2006
Ok, another thing I noticed is that the 2d and 3d actors do not co-exist
within the same renderer.
I have something like:
vtkPNGReader * Image = vtkPNGReader::New();
Image->SetFileName("/home/anja/image.png");
Image->Update();
vtkImageActor * actor = vtkImageActor::New();
actor->SetInput(Image->GetOutput());
actor->PickableOn();
Now, I am adding 2 actors to the renderer as:
// 2d actor
this->m_renderer->AddActor(this->m_actor2D);
and...
this->m_renderer->AddActor(actor);
All I see on the screen is my huge image (scaled) and not the underlying 2D
actor now...
Is it not at all possible to control these aspects of 3d actors? For
example, I do not want the actor to interpolate. I have a reslicer which
does the interpolation and I do not want to interpolate again... Is it not
possible to turn it these things off or have an easy way to position these
actors?? Quite confusing....
Cheers,
Anja
On 10/10/06, Anja Ende <anja.ende at googlemail.com> wrote:
>
> Hi everyone,
>
> I have been trying to convert all my 2D actors to vtkActor as I just
> cannot seem to get the prop picking to work.
>
> However, I am having a really hard time getting the actors to be placed
> where I want them to be:
>
> In particular, 2 affects are really annoying:
>
> - The actor seems to scale itself to fill the view. I guess it wants to
> place itself in such a way that all other actors are visible. Is there a way
> to override it. I do not want my images to be scaled!
>
> - Second is the positioning of the actor. Can I simply specify an x, y
> screen position and the actor places itself at that point or is it
> completely hopeless and I need to redo half the rendering engine of vtk? :P
>
> By the way, anyone knows what is going on with the search today? I only am
> getting blank pages back.
>
> Thanks. I hope someone can help me.
>
> Cheers,
>
> Anja
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20061010/c404485d/attachment.htm>
More information about the vtkusers
mailing list