Working with Visual Property Editors

Visual Property Editors for your own layers

An API is provided to implement your own layer property panels. Such panels are typically needed when you implement your own layer, extending the AbstractLayer2D class. To provide layer property panels to your own layers, follow these 3 steps:

  • create a panel object
  • create an editor object implementing com.interactive.intviewerapi.IObjectEditorNode
  • make your layer class implement com.interactive.intviewerapi.util.IObjectEditorNodeProvider

A sample implementation is provided for triangle mesh 2D layers. A similar implementation can be done for any 3D object or any IVisual.

Visual Property Editors for existing layers

You can plugin your own property editor by extending the VisualPropertyEditor class. To provide layer property panels to an existing layer, follow these 3 steps:

  • create a panel object
  • create an editor object extending com.interactive.intviewerapi.VisualPropertyEditor. Make sure this class has an empty constructor and overrides getInstance()
  • register this object in the layer.xml file

A sample implementation is provided for triangle mesh 2D layers. A similar implementation can be done for any 3D object or any IVisual.

When building a property editor, consider using these reusable components.