[Paraview] Can a module display a string in its GUI?

Berk Geveci berk.geveci at gmail.com
Fri Jul 21 10:25:31 EDT 2006


Unfortunately, the only way to do this is to add a new sub-class of
vtkPVWidget or vtkPVSource. We will try to make this easier in ParaView 3.

-Berk

On 7/12/06, Kent Eschenberg <eschenbe at psc.edu> wrote:
>
> Utkarsh,
>
> No! Do I call this from RequestData? The documentation for VTK doesn't
> cover vtkSMProxy, of course. Can you direct me towards documentation? Or
> will reading the source be sufficient?
>
> Thanks!
> Kent
> Pittsburgh Supercomputing Center
>
>
> --On 07/12/2006 11:28:41 AM -0400 utkarsh.ayachit at kitware.com wrote:
>
>
> > Any information property needs to be explicitly updated by calling
> > vtkSMProxy::UpdatePropertyInformation() or its overload. Are you calling
> > UpdatePropertyInformation every time the module updates?
> >
> > Utkarsh.
> >
> >
> > Kent Eschenberg wrote:
> >> Can a module display a dynamic string in its GUI? I couldn't find an
> example of this in the supplied XML.
> >>
> >> The XML for my module's GUI uses a StringEntry widget while the XML for
> the module's SM uses
> >>
> >>          <StringVectorProperty
> >>             name="ShowReport"
> >>             command="GetReport"
> >>             number_of_elements="1"
> >>             information_only="1"
> >>          >
> >>             <SimpleStringInformationHelper/>
> >>          </StringVectorProperty>
> >>
> >> The interface for the command is
> >>
> >>       char *GetReport( void );
> >>
> >> where the body is in the cxx file. The initial value is displayed but
> subsequent changes are not. Prints added to the "RequestData" and
> "GetReport" routines show that "GetReport" is called only once, not every
> time the module updates.
> >>
> >> My system:
> >>
> >>    OS: 2.6.14-1.1656_FC4 i686
> >>    Compiler: 4.0.2 20051125 (Red Hat 4.0.2-8)
> >>    ParaView: 2.4.3
> >>
> >> Thanks in advance for any advice!
> >>
> >> Kent
> >> Pittsburgh Supercomputing Center
> >
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/paraview/attachments/20060721/63f9c4bf/attachment.html


More information about the ParaView mailing list