This class represents a structural element, i.e. More...
Public Member Functions | |
| def | __init__ (self) |
| def | addPart (self, newpart) |
| Add a part to the structural element. More... | |
| def | addOrientation (self, meshGroup, orientParams) |
| Add orientation information to a part in the structural element. More... | |
| def | build (self) |
| Build the geometric shapes and the markers corresponding to the different parts of the structural element, and add them to the study. More... | |
| def | display (self) |
| Display the structural element in the geom view. More... | |
Static Public Member Functions | |
| def | showElement (theSObject) |
| Display the structural element corresponding to the study object theSObject. More... | |
Static Public Attributes | |
| string | MAIN_FOLDER_NAME = "Structural Elements" |
Private Member Functions | |
| def | _getSObject (self) |
| Find or create the study object corresponding to the structural element. More... | |
Private Attributes | |
| _parts | |
| _shapeDict | |
| _id | |
| _studyEditor | |
| _SObject | |
Static Private Attributes | |
| int | _counter = 1 |
This class represents a structural element, i.e.
a set of geometrical objects built along geometrical primitives. Structural elements are normally created by the class StructuralElementManager, so this class should not be instantiated directly in the general case.
| def __init__ | ( | self | ) |
|
private |
Find or create the study object corresponding to the structural element.
This object is a Geom Folder named "SE_N" where N is a numerical ID.
References SubShapeID._id, StructuralElement._id, StructuralElement._SObject, StructuralElementManager._studyEditor, StructuralElement._studyEditor, and geomtools.getGeompy().
| def addPart | ( | self, | |
| newpart | |||
| ) |
Add a part to the structural element.
| newpart | (StructuralElementPart) the part to add to the structural element. |
References StructuralElement._parts, and StructuralElement._shapeDict.
| def addOrientation | ( | self, | |
| meshGroup, | |||
| orientParams | |||
| ) |
Add orientation information to a part in the structural element.
This information will be used to build the corresponding markers.
| meshGroup | (string) the name of a geometrical primitive. The orientation information will apply to the structural element part built along this primitive. |
| orientParams | (dictionary) parameters defining the orientation of the structural element part. Those parameters are detailed in class orientation.Orientation1D. |
References StructuralElement._parts.
| def build | ( | self | ) |
Build the geometric shapes and the markers corresponding to the different parts of the structural element, and add them to the study.
References StructuralElement._getSObject(), StructuralElement._parts, and geomtools.getGeompy().
| def display | ( | self | ) |
Display the structural element in the geom view.
References StructuralElement._SObject.
|
static |
Display the structural element corresponding to the study object theSObject.
|
staticprivate |
|
static |
|
private |
|
private |
|
private |
|
private |
|
private |