Python reference: ViewFilter

The class ViewFilter is the Python interface to the view filter object. This class is used in conjunction with the ViewParameters object to control which components of a model are drawn.

The class encapsulates the following functions from the C API:

The standard pattern for using a view filter object is as follows:

  1. Create the filter object.
  2. Call the Add method to define each item of the filter.
  3. Assign the filter object to the Filter attribute of the ViewParameters object.

Construction

ViewFilter()

The constructor creates a new, empty view filter object.

Attributes and methods

Add

Add(propertyName, action, namePattern, typePattern)

The parameters are the four text values that define a view filter item.