[Smtk-developers] cmb_v4 update

David Thompson david.thompson at kitware.com
Thu Dec 4 21:07:08 EST 2014


Hi Yumin,

>> Just pushed something to cmb_v4, which will allow controlling display properties of model entities by right-click context menu in 3D render view. I still need to add UI components inside smtk so that user can also control visibility and setting color from the model tree view, but at least for now, you can use the context menu in the render view.
>> 
> I forgot to mention that the display controls in the context menu is based on which model entity you right-clicked on in the view, if you don't click on any entity (geometry), the context menu will only contains "Show All Models".

This looks great! And the "universal operators" branch I've merged into SMTK includes a model operator ("set property") that can be used to change the color and other modeling-entity properties, even across remote bridges. So it should be possible to keep the Qt UI and ParaView UI in sync, although that will also require  redraw events to be emitted when the operator is run.

I would have changed pqModelBuilderViewContextMenuBehavior::setBlockColor (and the other methods that change the visibility and opacity) so that they invoke the operator, but I don't see how to obtain the SMTK UUID associated the block in question. Can you give me a call tomorrow so we can discuss how to make that work?

	Thanks,
	David


More information about the Smtk-developers mailing list