[Paraview-developers] [EXTERNAL] Adding a fmtlib to ParaView/VTK
Utkarsh Ayachit
utkarsh.ayachit at kitware.com
Mon Mar 19 15:12:04 EDT 2018
Something like that. We may want to build a registry of keywords
available to users in various contexts, e.g. time, timestep,
number_of_timesteps etc.
On Mon, Mar 19, 2018 at 1:31 PM, Cory Quammen <cory.quammen at kitware.com> wrote:
> 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.
More information about the Paraview-developers
mailing list