Samples/Properties/PropertyViewManager.py
15 def AddPropertyToViewList(pOwner, pPropertyName, pViewList, pHierarchy, pSetOpen=False):
16 lProperty = pOwner.PropertyList.Find(pPropertyName)
17 lView = pViewList.AddPropertyView(lProperty, pHierarchy)
20 lView.SetOpen(pSetOpen,
True)
36 lViewList = lMgr.CreatePropertyList(lModel, FBPropertyViewType.kFBViewByObject,
'PythonCreatedView')
38 AddPropertyToViewList(lModel,
'Show', lViewList,
'Visibility Options')
40 AddPropertyToViewList(lModel,
'Visibility', lViewList,
'Visibility Options')
42 AddPropertyToViewList(lModel,
'Visibility Inheritance', lViewList,
'Visibility Options.Visibility',
True)
45 AddPropertyToViewList(lModel,
'Translation (Lcl)', lViewList,
'Transformation Options')
46 AddPropertyToViewList(lModel,
'Rotation (Lcl)', lViewList,
'Transformation Options')
47 AddPropertyToViewList(lModel,
'Scaling (Lcl)', lViewList,
'Transformation Options')
48 AddPropertyToViewList(lModel,
'Quaternion Rotation', lViewList,
'Transformation Options')
51 lModel.Selected =
True
54 lMgr.RefreshPropertyViews()