Go to the documentation of this file.
6 #include <Draw/DrawStyle.h>
7 #include <Draw/Texture2.h>
8 #include <Draw/Texture2Transform.h>
39 public std::enable_shared_from_this<SubElement>
50 std::shared_ptr<SubElement>
copy()
const;
96 void setTexture(
const Draw::Texture2& tex,
int faceIndex = -1);
98 const Draw::Texture2& crossTexture,
99 const Draw::Texture2Transform& lengthTextureTrsf = Draw::Texture2Transform(),
100 const Draw::Texture2Transform& crossTextureTrsf = Draw::Texture2Transform());
131 int aTranslationId = -1);
136 int aTranslationId = -1);
139 double aDefaultValue,
142 int aTranslationId = -1);
147 int aTranslationId = -1);
153 int aTranslationId = -1);
159 int aTranslationId = -1);
165 int aTranslationId = -1);
167 std::shared_ptr<OpenLxApp::Property>
getProperty(
const std::string& aName)
const;
Definition: ActiveScript.h:10
pConstShape getShape() const
void removeAssociatedMaterial()
void setTransform(const Geom::Trsf &t)
std::shared_ptr< PropertyInteger > registerPropertyInteger(const std::string &aName, int aDefaultValue, Property::Visible aVisible=Property::VISIBLE, Property::Editable aEditable=Property::EDITABLE, int aTranslationId=-1)
void setLocalPlacement(const Geom::Ax2 &pos)
Base::String getPropertyHeader() const
void setShininess(int aVal)
bool setGeometry(std::shared_ptr< Geometry > geo)
bool registerPythonClass(const std::string &aClassName, const std::string &aParentClassName)
Geom::Bnd_Box getBoundingBox() const
std::shared_ptr< PropertyInteger > getPropertyInteger(const std::string &aName) const
virtual Base::GlobalId getGlobalClassId() const
Definition: DocObjectObserver.h:9
Defines a non-persistent vector in 3D space.
Definition: Vec.h:41
Definition: GlobalId.h:28
void setPropertyHeader(const Base::String &aDefaultName, int aTranslationId)
void setStandardManipulatorPolicy(const Core::StandardManipulatorPolicy &aPolicy)
virtual void translateAfterScaled(const Geom::Vec &aVec, const Geom::Pnt &aScaleBasePnt)
std::shared_ptr< SubElement > copy() const
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< PropertyString > getPropertyString(const std::string &aName) const
Geom::Trsf getLocalToWorldTransform() const
std::shared_ptr< PropertyButton > getPropertyButton(const std::string &aName) const
std::shared_ptr< PropertyBool > getPropertyBool(const std::string &aName) const
void setDrawStyle(const Draw::DrawStyle &ds)
void setLengthAndCrossTexture(const Draw::Texture2 &lengthTexture, const Draw::Texture2 &crossTexture, const Draw::Texture2Transform &lengthTextureTrsf=Draw::Texture2Transform(), const Draw::Texture2Transform &crossTextureTrsf=Draw::Texture2Transform())
Definition: StandardManipulatorPolicy.h:8
Editable
Definition: Property.h:36
virtual ~SubElement(void)
void setDiffuseColor(const Base::Color &aCol)
std::shared_ptr< Topo::Shape const > pConstShape
Definition: Variant.h:65
A SubElement extends an Element. Together with the (parent) Element it describes an entity with multi...
Definition: SubElement.h:41
void setEmissiveColor(const Base::Color &aCol)
void setPositionNb(long value)
void translate(const Geom::Vec &aVec, Geom::CoordSpace aCoordSpace=Geom::CoordSpace::WCS)
void setAmbientColor(const Base::Color &aCol)
virtual int getScriptVersion()
std::shared_ptr< PropertyColor > getPropertyColor(const std::string &aName) const
std::map< std::string, std::shared_ptr< Property > > getPropertyMap() const
Draw::DrawStyle getDrawStyle() const
Geom::Trsf getTransform() const
std::shared_ptr< Geometry > getGeometry() const
Definition: DocObject.h:54
Geom::Trsf getGeometryToWorldTransform() const
void setVisible(bool onoff)
void setSpecularColor(const Base::Color &aCol)
bool getLocalAxes(Geom::Ax2 &localAxes)
void setReflectiveColor(const Base::Color &aCol)
virtual void convertFromOldVersion(int pythonProductVersion)
SubElement()
Definition: SubElement.h:196
Defines a non-persistent 3D Cartesian point.
Definition: Pnt.h:44
void setOglMaterial(const Draw::OglMaterial &mat, int faceIndex=-1)
void setPropertyGroupName(const Base::String &aDefaultName, int aTranslationId)
virtual void onScaling(const Geom::Vec &aVec, const Geom::Pnt &aScaleBasePnt)
Draw::OglMaterial getOglMaterial() const
CoordSpace
Definition: GeomEnums.h:6
std::shared_ptr< Material > getAssociatedMaterial() const
Base::String getPropertyGroupName() const
Geom::Ax2 getLocalPlacement() const
std::shared_ptr< PropertyEnum > registerPropertyEnum(const std::string &aName, int aDefaultValue, Property::Visible aVisible=Property::VISIBLE, Property::Editable aEditable=Property::EDITABLE, int aTranslationId=-1)
void onChange(Core::DocObject *aCaller, const Core::DocObjectObserverMsg &aReason) override
void updatePythonProductVersion()
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< PropertyEnum > getPropertyEnum(const std::string &aName) const
std::shared_ptr< OpenLxApp::Property > getProperty(const std::string &aName) const
pConstShape getLocalShape() const
Definition: DocObjectObserver.h:24
virtual void onPropertyChanged(const std::string &aPropertyName)
Root is the base class of all BIM related entities. All BIM entities can be identified by a Globally ...
Definition: Root.h:20
std::shared_ptr< PropertyDouble > getPropertyDouble(const std::string &aName) const
void setTransparency(int aVal)
std::shared_ptr< PropertyDouble > registerPropertyDouble(const std::string &aName, double aDefaultValue, Property::Visible aVisible=Property::VISIBLE, Property::Editable aEditable=Property::EDITABLE, int aTranslationId=-1)
Visible
Definition: Property.h:30
bool isRegisteredProperty(const std::string &aName) const
std::shared_ptr< Element > getElement() const
void setLocalAxes(const Geom::Dir &zHeight, const Geom::Dir &xLength)
A Utf-16 (windows) or ucs4 (unix) encoded string class.
Definition: String.h:18
std::shared_ptr< PropertyBool > registerPropertyBool(const std::string &aName, bool aDefaultValue, Property::Visible aVisible=Property::VISIBLE, Property::Editable aEditable=Property::EDITABLE, int aTranslationId=-1)
@ VISIBLE
Definition: Property.h:32
@ EDITABLE
Definition: Property.h:38
void setTexture(const Draw::Texture2 &tex, int faceIndex=-1)
void setAssociatedMaterial(std::shared_ptr< Material > aMaterial)
void rotate(const Geom::Ax1 &axis, double angle, Geom::CoordSpace aCoordSpace=Geom::CoordSpace::WCS)
long getPositionNb() const
void setLineWidth(float width)
#define PROXY_HEADER(_openlexocadclass_, _corelexocadclass_, _type_)
Definition: Globals.h:146
std::shared_ptr< PropertyButton > registerPropertyButton(const std::string &aName, Property::Visible aVisible=Property::VISIBLE, Property::Editable aEditable=Property::EDITABLE, int aTranslationId=-1)