Skip to content

ColorArray Support for Geometry Representations

Adding support for the color array name property of geometry representation revealed a number of issues:

  • Extra steps such as updating the lookup table, rescaling range based on new array etc, need to be performed for the representation to be ready until the next rendering
  • A new render is required when such a property is touched.

ParaView master handles these requirements with a special widget for this property. Which hides the logic in the Qt layer.

In this MR we avoid any logic in the UI and map ColorArrayName to a simple select switch so the UI side is simplified.

On the backend side we introduce the annotate_proxy="STRING_VALUE" attribute in the XML Proxy definitions which adds an annotation to the parent proxy of a property every time the value property is modified. This then allows to check for the existence of these annotations in our ApplyController each time Apply() is called. This mechanism could be easily extended in the future with any kind of annotations and proxies.

Edited by Christos Tsolakis

Merge request reports