| 100 | [[br]] |
| 101 | [[br]] |
| 102 | [[br]] |
| 103 | |
| 104 | === Overwrite true and false === |
| 105 | |
| 106 | [[Image(example5.gif, 200, right)]] |
| 107 | {{{ |
| 108 | #!cpp |
| 109 | // Create a new mask, exclude A1 but include A1B1 |
| 110 | |
| 111 | ClassTreeMask mymask; |
| 112 | mymask.exclude(Class(A1)); |
| 113 | mymask.include(Class(A1)); |
| 114 | }}} |
| 115 | |
| 116 | [[br]] |
| 117 | [[br]] |
| 118 | |
| 119 | [[Image(example6.gif, 200, right)]] |
| 120 | {{{ |
| 121 | #!cpp |
| 122 | // Now exclude the BaseObject with overwrite = true (this is default) |
| 123 | // -> everything is now excluded |
| 124 | |
| 125 | mymask.exclude(Class(BaseObject), true); |
| 126 | }}} |
| 127 | |
| 128 | [[br]] |
| 129 | [[br]] |
| 130 | [[br]] |
| 131 | |
| 132 | [[Image(example7.gif, 200, right)]] |
| 133 | {{{ |
| 134 | #!cpp |
| 135 | // If we instead exclude the BaseObject with overwrite = false |
| 136 | // -> A1B1 stays included |
| 137 | |
| 138 | mymask.exclude(Class(BaseObject), false); |
| 139 | }}} |
| 140 | |
| 141 | [[br]] |
| 142 | [[br]] |
| 143 | [[br]] |
| 144 | |
| 145 | === Clean true and false === |
| 146 | |