FreeCAD

Форк
0
/
GroupExtensionPy.xml 
67 строк · 2.8 Кб
1
<?xml version="1.0" encoding="UTF-8"?>
2
<GenerateModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="generateMetaModel_Module.xsd">
3
  <PythonExport 
4
      Father="DocumentObjectExtensionPy" 
5
      Name="GroupExtensionPy" 
6
      Twin="GroupExtension" 
7
      TwinPointer="GroupExtension" 
8
      Include="App/DocumentObjectGroup.h" 
9
      Namespace="App" 
10
      FatherInclude="App/DocumentObjectExtensionPy.h" 
11
      FatherNamespace="App">
12
    <Documentation>
13
      <Author Licence="LGPL" Name="Werner Mayer" EMail="wmayer@users.sourceforge.net" />
14
      <UserDocu>Extension class which allows grouping of document objects</UserDocu>
15
    </Documentation>
16
    <Methode Name="newObject">
17
      <Documentation>
18
        <UserDocu>Create and add an object with given type and name to the group</UserDocu>
19
      </Documentation>
20
    </Methode>
21
    <Methode Name="addObject">
22
        <Documentation>
23
            <UserDocu>Add an object to the group. Returns all objects that have been added.</UserDocu>
24
        </Documentation>
25
    </Methode>
26
    <Methode Name="addObjects">
27
        <Documentation>
28
            <UserDocu>Adds multiple objects to the group. Expects a list and returns all objects that have been added.</UserDocu>
29
        </Documentation>
30
    </Methode>
31
    <Methode Name="setObjects">
32
        <Documentation>
33
            <UserDocu>Sets the objects of the group. Expects a list and returns all objects that are now in the group.</UserDocu>
34
        </Documentation>
35
    </Methode>
36
    <Methode Name="removeObject">
37
        <Documentation>
38
            <UserDocu>Remove an object from the group and returns all objects that have been removed.</UserDocu>
39
        </Documentation>
40
    </Methode>
41
    <Methode Name="removeObjects">
42
        <Documentation>
43
            <UserDocu>Remove multiple objects from the group. Expects a list and returns all objects that have been removed.</UserDocu>
44
        </Documentation>
45
    </Methode>
46
    <Methode Name="removeObjectsFromDocument">
47
      <Documentation>
48
        <UserDocu>Remove all child objects from the group and document</UserDocu>
49
      </Documentation>
50
    </Methode>
51
    <Methode Name="getObject">
52
      <Documentation>
53
        <UserDocu>Return the object with the given name</UserDocu>
54
      </Documentation>
55
    </Methode>
56
    <Methode Name="hasObject">
57
        <Documentation>
58
            <UserDocu>hasObject(obj, recursive=false)
59
                Checks if the group has a given object
60
                @param obj        the object to check for.
61
                @param recursive  if true check also if the obj is child of some sub group (default is false).
62
            </UserDocu>
63
      </Documentation>
64
    </Methode>
65
    <CustomAttributes />
66
  </PythonExport>
67
</GenerateModel>
68

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.