the head class of the 3d design More...
| cellList3d* | addCell() |
| cell3d * | currentCell |
| double | databaseunits |
| void | deleteAllCell() |
| void | deselectAll() |
| cellList3d* | firstCell |
| void | invertSelect() |
| bool | isEmpty() |
| bool | modified() |
| void | meshDeselect() |
| void | meshSelect() |
| void | openFile(string filename) |
| void | saveFile(string filename) |
| bool | booleanSelected(int op) |
| void | scaleFull() |
| void | selectAll() |
| void | selectVisible() |
| void | setModifyChanged() |
| void | setModifyAdded() |
| void | setModifySaved() |
| bool | showOrigin |
| void | showOriginToggle() |
| double | userunits |
| double | zScale |
A drawingField3d is the 3d design inside a layout3d window, reached as layout3d->drawing. Hierarchy matches 2d: firstCell lists all 3d cells, currentCell is the cell on screen. Coordinates are integers times databaseunits; userunits is what the widgets show. zScale stretches height so thin stacks are easier to see. Selection, Boolean on meshes, and load or save of the 3d file all go through this object. After you change geometry, setModifyChanged or setModifyAdded marks the design dirty so save will ask.
Example:
drawingField3d *d = layout3d->drawing;
d->openFile("/tmp/part.step");
d->scaleFull();
Adds a cell to the 3d drawing.
Returns: a pointer to the new cellList3d node.
The 3d view is hierarchical like the 2d layout. currentCell points to the displayed cell3d.
All coordinates are integers. Multiply by this factor to get metres.
Deletes every cell in the current design.
Clears the selection.
Head of the linked list of 3d cells.
Inverts the selection in the current cell: selected elements become unselected and the others become selected.
Returns: true if the design has no elements, otherwise false.
Returns: true if the design changed after the last save, otherwise false.
Deselects every mesh element.
Selects every mesh element.
Loads the 3d design from filename into the 3d editor.
Saves the 3d design to filename. The format is taken from the file extension.
Boolean operation on two selected meshes. op is 0 union, 1 difference, 2 intersection, 3 xor. The result replaces the first selected mesh.
Returns: true if the operation succeeded, otherwise false.
Fits the display scale to the size of the drawing so the whole design is visible.
Selects every element.
Selects every visible element.
Marks the design as modified.
Marks the design as modified by adding a shape.
Marks the design as saved (unmodified).
If true, the origin (0, 0, 0) is drawn as an arrow on each axis.
Toggles the origin arrows on or off.
Scale used to show sizes in the main widget (user units).
Extra scale of the z axis. Use it when the stack is thin compared with x and y, so height is easier to see.