[Paraview-developers] [EXTERNAL] Adding a fmtlib to ParaView/VTK

Cory Quammen cory.quammen at kitware.com
Mon Mar 19 13:31:08 EDT 2018


Yeah, looks nice.

So the idea would be instead of writing

${TIME}

one could write

${TIME:.2f}

or even just

{TIME:.2f}

to produce a formated TIME value?

On Mon, Mar 19, 2018 at 1:10 PM, Scott, W Alan <wascott at sandia.gov> wrote:

> +1
>
> > -----Original Message-----
> > From: Paraview-developers [mailto:paraview-developers-
> > bounces at public.kitware.com] On Behalf Of Utkarsh Ayachit
> > Sent: Monday, March 19, 2018 9:45 AM
> > To: ParaView Developers <paraview-developers at paraview.org>
> > Subject: [EXTERNAL] [Paraview-developers] Adding a fmtlib to ParaView/VTK
> >
> > Folks,
> >
> > I was reviewing MR [1] which got me thinking that we have no standard
> rules
> > for formatting strings. It would be great it there was uniform mechanism
> that
> > we can train users on to build strings from fields or numbers which
> ability to
> > specify precision etc.
> >
> > I've seen fmtlib [2] used before and given that it's formatting syntax
> is similar
> > to that available in Python, it may be a good choice to adopt.
> >
> > I am thinking all places were we convert numbers to labels e.g.
> > Annotation Time filter/source, Chart titles, Python Annotation filter,
> etc. can
> > support such format strings.
> >
> > Thoughts?
> >
> > Utkarsh
> >
> > [1] https://gitlab.kitware.com/paraview/paraview/merge_requests/2323
> > [2] http://fmtlib.net/latest/index.html
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Search the list archives at: http://markmail.org/search/?q=Paraview-
> > developers
> >
> > Follow this link to subscribe/unsubscribe:
> > https://public.kitware.com/mailman/listinfo/paraview-developers
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Search the list archives at: http://markmail.org/search/?q=
> Paraview-developers
>
> Follow this link to subscribe/unsubscribe:
> https://public.kitware.com/mailman/listinfo/paraview-developers
>



-- 
Cory Quammen
Staff R&D Engineer
Kitware, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/paraview-developers/attachments/20180319/ffad8503/attachment.html>


More information about the Paraview-developers mailing list