[Paraview] How to get a vtkClientServerID of a already created
vtkobject in dataserver
Utkarsh Ayachit
utkarsh.ayachit at kitware.com
Thu Aug 17 12:02:37 EDT 2006
Typically, all proxies that represent VTK filters have an "Input"
property. Look any proxy definition in
Server/ServerManager/Resources/filters.xml. You will have to add an
"Input" property to your cutter proxy as well (If you are using the
Cutter provided by paraview, it already has an input property). Now on
the client side, I am assuming you have access to the reader proxy as
well as the cutter proxy. To set the reader as the input to the cutter
one simply does:
vtkSMInputProperty::SafeDownCast(
cutterProxy->GetProperty("Input"))->AddProxy(readerProxy);
This will setup the pipeline on the data server (or where were the vtk
objects might actually be).
Generally speaking, one does not have access to the vtkClientServerID in
the VTK filters created on the servers. vtkSMProxy provides API to
access the IDs for the VTK objects it stands for:
vtkSMProxy::GetNumberOfIDs() and vtkSMProxy::GetID(unsigned int). Thus,
the ServerManager and ParaView client are aware of and can access the IDs.
Utkarsh.
vpessoa at lncc.br wrote:
> Hi all.
>
> I have an unusual problem here...
>
> I've created my custom DICOMImageReader. That reader, invokes by xml a widget
> that have the cutters and widgets so I can visualize my vtkImageData.
> My C++ Widget and server cutter filter comunicates with each other perfectly.
> The problem is at the comunication inside the DataServer. When I click on the
> Accept button, my cutter just have no reference of my reader, sou I can run the
> cutter->SetInput(reader->GetOutput()).
>
> Well, my question is: How can I get the reference of this reader from inside of
> my cutter filter (pointer reference), on my server managers
> (vtkClientServerID), or
> even on my PV's.
>
> Is there a way of getting at least a list of existing objects at the servers?
>
> Thank you all for your time and colaboration.
> [ ]'s
> ----------------------------------------
> Atencisamente,
> Vinicius Pessôa
> Laboratório Nacional de Computação Científica
> +55 (24) 2233-6098
> +55 (24) 8803-7061
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview
>
More information about the ParaView
mailing list