|
OpenLexocad
27.0
|
A SubElement extends an Element. Together with the (parent) Element it describes an entity with multiple geometries. The spatial structure of SubElements is defined by their parent Elements. More...
#include <SubElement.h>
Public Member Functions | |
| virtual | ~SubElement (void) |
Misc | |
| std::shared_ptr< Element > | getElement () const |
| std::shared_ptr< SubElement > | copy () const |
Representation | |
| bool | setGeometry (std::shared_ptr< Geometry > geo) |
| std::shared_ptr< Geometry > | getGeometry () const |
| Geom::Trsf | getGeometryToWorldTransform () const |
| Geom::Bnd_Box | getBoundingBox () const |
Placement | |
| Geom::Ax2 | getLocalPlacement () const |
| void | setLocalPlacement (const Geom::Ax2 &pos) |
| Geom::Trsf | getTransform () const |
| Geom::Trsf | getLocalToWorldTransform () const |
| void | setTransform (const Geom::Trsf &t) |
| void | translate (const Geom::Vec &aVec, Geom::CoordSpace aCoordSpace=Geom::CoordSpace::WCS) |
| void | rotate (const Geom::Ax1 &axis, double angle, Geom::CoordSpace aCoordSpace=Geom::CoordSpace::WCS) |
| bool | getLocalAxes (Geom::Ax2 &localAxes) |
| void | setLocalAxes (const Geom::Dir &zHeight, const Geom::Dir &xLength) |
Topology | |
| pConstShape | getShape () const |
| pConstShape | getLocalShape () const |
Rendering | |
| void | setOglMaterial (const Draw::OglMaterial &mat, int faceIndex=-1) |
| Draw::OglMaterial | getOglMaterial () const |
| void | setAmbientColor (const Base::Color &aCol) |
| void | setDiffuseColor (const Base::Color &aCol) |
| void | setSpecularColor (const Base::Color &aCol) |
| void | setEmissiveColor (const Base::Color &aCol) |
| void | setReflectiveColor (const Base::Color &aCol) |
| void | setShininess (int aVal) |
| void | setTransparency (int aVal) |
| void | setDrawStyle (const Draw::DrawStyle &ds) |
| Draw::DrawStyle | getDrawStyle () const |
| void | setLineWidth (float width) |
| void | setTexture (const Draw::Texture2 &tex, int faceIndex=-1) |
| void | setLengthAndCrossTexture (const Draw::Texture2 &lengthTexture, const Draw::Texture2 &crossTexture, const Draw::Texture2Transform &lengthTextureTrsf=Draw::Texture2Transform(), const Draw::Texture2Transform &crossTextureTrsf=Draw::Texture2Transform()) |
Attributes | |
| void | setPositionNb (long value) |
| long | getPositionNb () const |
| bool | isVisible () const |
| void | setVisible (bool onoff) |
| void | setAssociatedMaterial (std::shared_ptr< Material > aMaterial) |
| std::shared_ptr< Material > | getAssociatedMaterial () const |
| void | removeAssociatedMaterial () |
Python | |
| bool | registerPythonClass (const std::string &aClassName, const std::string &aParentClassName) |
| virtual Base::GlobalId | getGlobalClassId () const |
Properties | |
| std::shared_ptr< PropertyInteger > | registerPropertyInteger (const std::string &aName, int aDefaultValue, Property::Visible aVisible=Property::VISIBLE, Property::Editable aEditable=Property::EDITABLE, int aTranslationId=-1) |
| std::shared_ptr< PropertyEnum > | registerPropertyEnum (const std::string &aName, int aDefaultValue, Property::Visible aVisible=Property::VISIBLE, Property::Editable aEditable=Property::EDITABLE, int aTranslationId=-1) |
| std::shared_ptr< PropertyDouble > | registerPropertyDouble (const std::string &aName, double aDefaultValue, Property::Visible aVisible=Property::VISIBLE, Property::Editable aEditable=Property::EDITABLE, int aTranslationId=-1) |
| std::shared_ptr< PropertyButton > | registerPropertyButton (const std::string &aName, Property::Visible aVisible=Property::VISIBLE, Property::Editable aEditable=Property::EDITABLE, int aTranslationId=-1) |
| std::shared_ptr< PropertyBool > | registerPropertyBool (const std::string &aName, bool aDefaultValue, Property::Visible aVisible=Property::VISIBLE, Property::Editable aEditable=Property::EDITABLE, int aTranslationId=-1) |
| std::shared_ptr< PropertyString > | registerPropertyString (const std::string &aName, Base::String aDefaultValue, Property::Visible aVisible=Property::VISIBLE, Property::Editable aEditable=Property::EDITABLE, int aTranslationId=-1) |
| std::shared_ptr< PropertyColor > | registerPropertyColor (const std::string &aName, Base::Color aDefaultValue, Property::Visible aVisible=Property::VISIBLE, Property::Editable aEditable=Property::EDITABLE, int aTranslationId=-1) |
| std::shared_ptr< OpenLxApp::Property > | getProperty (const std::string &aName) const |
| std::map< std::string, std::shared_ptr< Property > > | getPropertyMap () const |
| std::shared_ptr< PropertyInteger > | getPropertyInteger (const std::string &aName) const |
| std::shared_ptr< PropertyEnum > | getPropertyEnum (const std::string &aName) const |
| std::shared_ptr< PropertyDouble > | getPropertyDouble (const std::string &aName) const |
| std::shared_ptr< PropertyButton > | getPropertyButton (const std::string &aName) const |
| std::shared_ptr< PropertyBool > | getPropertyBool (const std::string &aName) const |
| std::shared_ptr< PropertyString > | getPropertyString (const std::string &aName) const |
| std::shared_ptr< PropertyColor > | getPropertyColor (const std::string &aName) const |
| bool | isRegisteredProperty (const std::string &aName) const |
| virtual void | onPropertyChanged (const std::string &aPropertyName) |
| virtual void | onScaling (const Geom::Vec &aVec, const Geom::Pnt &aScaleBasePnt) |
| virtual void | translateAfterScaled (const Geom::Vec &aVec, const Geom::Pnt &aScaleBasePnt) |
| void | setStandardManipulatorPolicy (const Core::StandardManipulatorPolicy &aPolicy) |
| void | setPropertyHeader (const Base::String &aDefaultName, int aTranslationId) |
| void | setPropertyGroupName (const Base::String &aDefaultName, int aTranslationId) |
| Base::String | getPropertyHeader () const |
| Base::String | getPropertyGroupName () const |
Public Member Functions inherited from OpenLxApp::Root | |
| void | setUserName (const Base::String &aName) |
| Base::String | getUserName () const |
| virtual | ~Root (void) |
| Base::GlobalId | getGlobalId () const |
| bool | setGlobalId (const Base::GlobalId &aGlobalId) |
Public Member Functions inherited from OpenLxApp::DocObject | |
| std::shared_ptr< Document > | getDocument () const |
| bool | isNew () const |
| bool | isUpdated () const |
| bool | isValid () const |
| bool | hasErrors () const |
| void | touch () |
| LxIfc4::LxIfc4EntityEnum | getEntityType () const |
| std::string | getEntityTypeAsString () const |
| std::shared_ptr< Core::DbgInfo > | getDbgInfo () const |
| DocObject (Core::DocObject *aObject) | |
| virtual | ~DocObject (void) |
| Core::DocObject * | __getObj__ () const |
Public Member Functions inherited from Core::DocObjectObserver | |
| virtual | ~DocObjectObserver () |
Protected Member Functions | |
| void | onChange (Core::DocObject *aCaller, const Core::DocObjectObserverMsg &aReason) override |
| SubElement () | |
Protected Member Functions inherited from OpenLxApp::Root | |
| Root () | |
Protected Member Functions inherited from OpenLxApp::DocObject | |
| DocObject () | |
Additional Inherited Members | |
Protected Attributes inherited from OpenLxApp::DocObject | |
| Core::DocObject * | _coreObj = nullptr |
A SubElement extends an Element. Together with the (parent) Element it describes an entity with multiple geometries. The spatial structure of SubElements is defined by their parent Elements.
|
virtual |
|
inlineprotected |
| std::shared_ptr<SubElement> OpenLxApp::SubElement::copy | ( | ) | const |
| std::shared_ptr<Material> OpenLxApp::SubElement::getAssociatedMaterial | ( | ) | const |
| Geom::Bnd_Box OpenLxApp::SubElement::getBoundingBox | ( | ) | const |
| Draw::DrawStyle OpenLxApp::SubElement::getDrawStyle | ( | ) | const |
| std::shared_ptr<Element> OpenLxApp::SubElement::getElement | ( | ) | const |
| std::shared_ptr<Geometry> OpenLxApp::SubElement::getGeometry | ( | ) | const |
| Geom::Trsf OpenLxApp::SubElement::getGeometryToWorldTransform | ( | ) | const |
|
virtual |
| bool OpenLxApp::SubElement::getLocalAxes | ( | Geom::Ax2 & | localAxes | ) |
| Geom::Ax2 OpenLxApp::SubElement::getLocalPlacement | ( | ) | const |
| pConstShape OpenLxApp::SubElement::getLocalShape | ( | ) | const |
| Geom::Trsf OpenLxApp::SubElement::getLocalToWorldTransform | ( | ) | const |
| Draw::OglMaterial OpenLxApp::SubElement::getOglMaterial | ( | ) | const |
| long OpenLxApp::SubElement::getPositionNb | ( | ) | const |
| std::shared_ptr<OpenLxApp::Property> OpenLxApp::SubElement::getProperty | ( | const std::string & | aName | ) | const |
| std::shared_ptr<PropertyBool> OpenLxApp::SubElement::getPropertyBool | ( | const std::string & | aName | ) | const |
| std::shared_ptr<PropertyButton> OpenLxApp::SubElement::getPropertyButton | ( | const std::string & | aName | ) | const |
| std::shared_ptr<PropertyColor> OpenLxApp::SubElement::getPropertyColor | ( | const std::string & | aName | ) | const |
| std::shared_ptr<PropertyDouble> OpenLxApp::SubElement::getPropertyDouble | ( | const std::string & | aName | ) | const |
| std::shared_ptr<PropertyEnum> OpenLxApp::SubElement::getPropertyEnum | ( | const std::string & | aName | ) | const |
| Base::String OpenLxApp::SubElement::getPropertyGroupName | ( | ) | const |
| Base::String OpenLxApp::SubElement::getPropertyHeader | ( | ) | const |
| std::shared_ptr<PropertyInteger> OpenLxApp::SubElement::getPropertyInteger | ( | const std::string & | aName | ) | const |
| std::map<std::string, std::shared_ptr<Property> > OpenLxApp::SubElement::getPropertyMap | ( | ) | const |
| std::shared_ptr<PropertyString> OpenLxApp::SubElement::getPropertyString | ( | const std::string & | aName | ) | const |
| pConstShape OpenLxApp::SubElement::getShape | ( | ) | const |
| Geom::Trsf OpenLxApp::SubElement::getTransform | ( | ) | const |
| bool OpenLxApp::SubElement::isRegisteredProperty | ( | const std::string & | aName | ) | const |
| bool OpenLxApp::SubElement::isVisible | ( | ) | const |
|
overrideprotectedvirtual |
Reimplemented from Core::DocObjectObserver.
|
virtual |
|
virtual |
| std::shared_ptr<PropertyBool> OpenLxApp::SubElement::registerPropertyBool | ( | const std::string & | aName, |
| bool | aDefaultValue, | ||
| Property::Visible | aVisible = Property::VISIBLE, |
||
| Property::Editable | aEditable = Property::EDITABLE, |
||
| int | aTranslationId = -1 |
||
| ) |
| std::shared_ptr<PropertyButton> OpenLxApp::SubElement::registerPropertyButton | ( | const std::string & | aName, |
| Property::Visible | aVisible = Property::VISIBLE, |
||
| Property::Editable | aEditable = Property::EDITABLE, |
||
| int | aTranslationId = -1 |
||
| ) |
| std::shared_ptr<PropertyColor> OpenLxApp::SubElement::registerPropertyColor | ( | const std::string & | aName, |
| Base::Color | aDefaultValue, | ||
| Property::Visible | aVisible = Property::VISIBLE, |
||
| Property::Editable | aEditable = Property::EDITABLE, |
||
| int | aTranslationId = -1 |
||
| ) |
| std::shared_ptr<PropertyDouble> OpenLxApp::SubElement::registerPropertyDouble | ( | const std::string & | aName, |
| double | aDefaultValue, | ||
| Property::Visible | aVisible = Property::VISIBLE, |
||
| Property::Editable | aEditable = Property::EDITABLE, |
||
| int | aTranslationId = -1 |
||
| ) |
| std::shared_ptr<PropertyEnum> OpenLxApp::SubElement::registerPropertyEnum | ( | const std::string & | aName, |
| int | aDefaultValue, | ||
| Property::Visible | aVisible = Property::VISIBLE, |
||
| Property::Editable | aEditable = Property::EDITABLE, |
||
| int | aTranslationId = -1 |
||
| ) |
| std::shared_ptr<PropertyInteger> OpenLxApp::SubElement::registerPropertyInteger | ( | const std::string & | aName, |
| int | aDefaultValue, | ||
| Property::Visible | aVisible = Property::VISIBLE, |
||
| Property::Editable | aEditable = Property::EDITABLE, |
||
| int | aTranslationId = -1 |
||
| ) |
| std::shared_ptr<PropertyString> OpenLxApp::SubElement::registerPropertyString | ( | const std::string & | aName, |
| Base::String | aDefaultValue, | ||
| Property::Visible | aVisible = Property::VISIBLE, |
||
| Property::Editable | aEditable = Property::EDITABLE, |
||
| int | aTranslationId = -1 |
||
| ) |
| bool OpenLxApp::SubElement::registerPythonClass | ( | const std::string & | aClassName, |
| const std::string & | aParentClassName | ||
| ) |
| void OpenLxApp::SubElement::removeAssociatedMaterial | ( | ) |
| void OpenLxApp::SubElement::rotate | ( | const Geom::Ax1 & | axis, |
| double | angle, | ||
| Geom::CoordSpace | aCoordSpace = Geom::CoordSpace::WCS |
||
| ) |
| void OpenLxApp::SubElement::setAmbientColor | ( | const Base::Color & | aCol | ) |
| void OpenLxApp::SubElement::setAssociatedMaterial | ( | std::shared_ptr< Material > | aMaterial | ) |
| void OpenLxApp::SubElement::setDiffuseColor | ( | const Base::Color & | aCol | ) |
| void OpenLxApp::SubElement::setDrawStyle | ( | const Draw::DrawStyle & | ds | ) |
| void OpenLxApp::SubElement::setEmissiveColor | ( | const Base::Color & | aCol | ) |
| bool OpenLxApp::SubElement::setGeometry | ( | std::shared_ptr< Geometry > | geo | ) |
| void OpenLxApp::SubElement::setLengthAndCrossTexture | ( | const Draw::Texture2 & | lengthTexture, |
| const Draw::Texture2 & | crossTexture, | ||
| const Draw::Texture2Transform & | lengthTextureTrsf = Draw::Texture2Transform(), |
||
| const Draw::Texture2Transform & | crossTextureTrsf = Draw::Texture2Transform() |
||
| ) |
| void OpenLxApp::SubElement::setLineWidth | ( | float | width | ) |
| void OpenLxApp::SubElement::setLocalPlacement | ( | const Geom::Ax2 & | pos | ) |
| void OpenLxApp::SubElement::setOglMaterial | ( | const Draw::OglMaterial & | mat, |
| int | faceIndex = -1 |
||
| ) |
| void OpenLxApp::SubElement::setPositionNb | ( | long | value | ) |
| void OpenLxApp::SubElement::setPropertyGroupName | ( | const Base::String & | aDefaultName, |
| int | aTranslationId | ||
| ) |
| void OpenLxApp::SubElement::setPropertyHeader | ( | const Base::String & | aDefaultName, |
| int | aTranslationId | ||
| ) |
| void OpenLxApp::SubElement::setReflectiveColor | ( | const Base::Color & | aCol | ) |
| void OpenLxApp::SubElement::setShininess | ( | int | aVal | ) |
| void OpenLxApp::SubElement::setSpecularColor | ( | const Base::Color & | aCol | ) |
| void OpenLxApp::SubElement::setStandardManipulatorPolicy | ( | const Core::StandardManipulatorPolicy & | aPolicy | ) |
| void OpenLxApp::SubElement::setTexture | ( | const Draw::Texture2 & | tex, |
| int | faceIndex = -1 |
||
| ) |
| void OpenLxApp::SubElement::setTransform | ( | const Geom::Trsf & | t | ) |
| void OpenLxApp::SubElement::setTransparency | ( | int | aVal | ) |
| void OpenLxApp::SubElement::setVisible | ( | bool | onoff | ) |
| void OpenLxApp::SubElement::translate | ( | const Geom::Vec & | aVec, |
| Geom::CoordSpace | aCoordSpace = Geom::CoordSpace::WCS |
||
| ) |
|
virtual |