Request: Make certain methods related to tick labels in vtkAxis virtual

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Request: Make certain methods related to tick labels in vtkAxis virtual

pdhahn
Please make the following "generate" methods related to tick labels in vtkAxis virtual so they can be overridden in a subclass:

GenerateSimpleLabel(), GenerateSprintfLabel(), GenerateLabelFormat(), GenerateLogSpacedLinearTicks()

These methods all  can call this->TickLabels->InsertNextValue( ... ) with a label that they create.

This would allow better control over tick label generation by re-implementing these in a subclass that handles additional kinds of "notation" and corresponding tick labels, as opposed to having to use the custom tick labels mechanism. In particular, date-time (timestamp) tick labels.
Reply | Threaded
Open this post in threaded view
|

Re: Request: Make certain methods related to tick labels in vtkAxis virtual

Andy Bauer
Hi,

Feel free to add that change into VTK yourself. There are developer instructions at https://gitlab.kitware.com/vtk/vtk/blob/master/Documentation/dev/git/develop.md that can help guide you through the process.

Best,
Andy

On Sat, Aug 26, 2017 at 12:47 PM, pdhahn <[hidden email]> wrote:
Please make the following "generate" methods related to tick labels in
vtkAxis virtual so they can be overridden in a subclass:

GenerateSimpleLabel(), GenerateSprintfLabel(), GenerateLabelFormat(),
GenerateLogSpacedLinearTicks()

These methods allĀ  can call this->TickLabels->InsertNextValue( ... ) with a
label that they create.

This would allow better control over tick label generation by
re-implementing these in a subclass that handles additional kinds of
"notation" and corresponding tick labels, as opposed to having to use the
custom tick labels mechanism. In particular, date-time (timestamp) tick
labels.




--
View this message in context: http://vtk.1045678.n5.nabble.com/Request-Make-certain-methods-related-to-tick-labels-in-vtkAxis-virtual-tp5744594.html
Sent from the VTK - Dev mailing list archive at Nabble.com.
_______________________________________________
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=vtk-developers

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtk-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=vtk-developers

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtk-developers