Go to the documentation of this file.
5 #include <Draw/DrawStyle.h>
6 #include <Draw/Texture2.h>
7 #include <Draw/Texture2Transform.h>
26 class ExternalPythonTypeObject;
27 class SpatialStructureElement;
42 public std::enable_shared_from_this<Product>
92 void setTexture(
const Draw::Texture2& tex,
int faceIndex = -1);
94 const Draw::Texture2& crossTexture,
95 const Draw::Texture2Transform& lengthTextureTrsf = Draw::Texture2Transform(),
96 const Draw::Texture2Transform& crossTextureTrsf = Draw::Texture2Transform());
126 int aTranslationId = -1);
131 int aTranslationId = -1);
134 double aDefaultValue,
137 int aTranslationId = -1);
142 int aTranslationId = -1);
148 int aTranslationId = -1);
154 int aTranslationId = -1);
160 int aTranslationId = -1);
162 std::shared_ptr<OpenLxApp::Property>
getProperty(
const std::string& aName)
const;
pConstShape getLocalShape() const
Definition: ActiveScript.h:10
long getPositionNb() const
Geom::Ax2 getLocalPlacement() const
The Product is an abstract representation of any object that relates to a geometric or spatial contex...
Definition: Product.h:45
Base::String getPropertyGroupName() const
void setOglMaterial(const Draw::OglMaterial &mat, int faceIndex=-1)
void setPositionNb(long value)
void setSpatialStructure(std::shared_ptr< SpatialStructureElement > aSpatialStructureElement)
std::shared_ptr< PropertySet > getPropertySetByName(const Base::String &aName) const
#define FORWARD_DECL(x, y)
Definition: Globals.h:93
std::shared_ptr< PropertyBool > getPropertyBool(const std::string &aName) const
pConstShape getShape() const
std::shared_ptr< PropertyButton > getPropertyButton(const std::string &aName) const
void setSpecularColor(const Base::Color &aCol)
Geom::Trsf getLocalToWorldTransform() const
Base::String getPropertyHeader() const
std::shared_ptr< OpenLxApp::Property > getProperty(const std::string &aName) const
void setAmbientColor(const Base::Color &aCol)
void setTransform(const Geom::Trsf &t)
void setDiffuseColor(const Base::Color &aCol)
void updatePythonProductVersion()
Definition: DocObjectObserver.h:9
Defines a non-persistent vector in 3D space.
Definition: Vec.h:41
virtual int getScriptVersion()
Definition: GlobalId.h:28
#define PROXY_HEADER_ABSTRACT(_openlexocadclass_, _corelexocadclass_, _type_)
Definition: Globals.h:137
void onChange(Core::DocObject *aCaller, const Core::DocObjectObserverMsg &aReason) override
std::shared_ptr< PropertyDouble > getPropertyDouble(const std::string &aName) const
virtual bool setGeometry(std::shared_ptr< Geometry > geo)
void setReflectiveColor(const Base::Color &aCol)
void setLineWidth(float width)
Definition: StandardManipulatorPolicy.h:8
Editable
Definition: Property.h:36
std::vector< std::shared_ptr< PropertyUser > > getPropertyUser() const
void setExternalPythonTypeObject(ExternalPythonTypeObject *aObj)
void rotate(const Geom::Ax1 &axis, double angle, Geom::CoordSpace aCoordSpace=Geom::CoordSpace::WCS)
virtual void convertFromOldVersion(int pythonProductVersion)
bool getLocalAxes(Geom::Ax2 &localAxes)
virtual void onPropertyChanged(const std::string &aPropertyName)
void setVisible(bool onoff)
void setLocalPlacement(const Geom::Ax2 &pos)
std::shared_ptr< Topo::Shape const > pConstShape
Definition: Variant.h:65
void setPropertyGroupName(const Base::String &aDefaultName, int aTranslationId)
std::shared_ptr< PropertyEnum > registerPropertyEnum(const std::string &aName, int aDefaultValue, Property::Visible aVisible=Property::VISIBLE, Property::Editable aEditable=Property::EDITABLE, int aTranslationId=-1)
Draw::DrawStyle getDrawStyle() 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::vector< Base::String > getPropertySetNames() const
void setTransparency(int aVal)
Definition: DocObject.h:54
bool isRegisteredProperty(const std::string &aName) const
std::map< std::string, std::shared_ptr< Property > > getPropertyMap() const
bool registerPythonClass(const std::string &aClassName, const std::string &aParentClassName)
void setPropertyHeader(const Base::String &aDefaultName)
Geom::Trsf getTransform() const
Defines a non-persistent 3D Cartesian point.
Definition: Pnt.h:44
void setPropertyGroupName(const Base::String &aDefaultName)
std::shared_ptr< PropertyBool > registerPropertyBool(const std::string &aName, bool aDefaultValue, Property::Visible aVisible=Property::VISIBLE, Property::Editable aEditable=Property::EDITABLE, int aTranslationId=-1)
CoordSpace
Definition: GeomEnums.h:6
void setStandardManipulatorPolicy(const Core::StandardManipulatorPolicy &aPolicy)
void setShininess(int aVal)
std::shared_ptr< PropertyColor > getPropertyColor(const std::string &aName) const
DEPRECATED. Do not use!
Definition: ExternalPythonTypeObject.h:19
void translate(const Geom::Vec &aVec, Geom::CoordSpace aCoordSpace=Geom::CoordSpace::WCS)
An IfcObject is the generalization of any semantically treated thing or process. Objects are things a...
Definition: Object.h:47
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< PropertyInteger > getPropertyInteger(const std::string &aName) const
Geom::Trsf getGeometryToWorldTransform() const
void setLengthAndCrossTexture(const Draw::Texture2 &lengthTexture, const Draw::Texture2 &crossTexture, const Draw::Texture2Transform &lengthTextureTrsf=Draw::Texture2Transform(), const Draw::Texture2Transform &crossTextureTrsf=Draw::Texture2Transform())
void setTexture(const Draw::Texture2 &tex, int faceIndex=-1)
Definition: DocObjectObserver.h:24
void setLocalAxes(const Geom::Dir &zHeight, const Geom::Dir &xLength)
virtual Base::GlobalId getGlobalClassId() const
Visible
Definition: Property.h:30
virtual void onScaling(const Geom::Vec &aVec, const Geom::Pnt &aScaleBasePnt)
std::shared_ptr< PropertyUser > getPropertyUser(const std::string &aName) const
std::shared_ptr< SpatialStructureElement > getSpatialStructure() const
void removeExternalTypeObject()
std::shared_ptr< PropertyButton > registerPropertyButton(const std::string &aName, Property::Visible aVisible=Property::VISIBLE, Property::Editable aEditable=Property::EDITABLE, int aTranslationId=-1)
void setEmissiveColor(const Base::Color &aCol)
Geom::Bnd_Box getBoundingBox() const
A Utf-16 (windows) or ucs4 (unix) encoded string class.
Definition: String.h:18
ExternalPythonTypeObject * getExternalPythonTypeObject() const
std::shared_ptr< Geometry > getGeometry() const
@ VISIBLE
Definition: Property.h:32
std::shared_ptr< PropertyInteger > registerPropertyInteger(const std::string &aName, int aDefaultValue, Property::Visible aVisible=Property::VISIBLE, Property::Editable aEditable=Property::EDITABLE, int aTranslationId=-1)
@ EDITABLE
Definition: Property.h:38
std::shared_ptr< PropertyString > getPropertyString(const std::string &aName) const
void setPropertyHeader(const Base::String &aDefaultName, int aTranslationId)
void setDrawStyle(const Draw::DrawStyle &ds)
virtual void translateAfterScaled(const Geom::Vec &aVec, const Geom::Pnt &aScaleBasePnt)
Draw::OglMaterial getOglMaterial() const
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< PropertyEnum > getPropertyEnum(const std::string &aName) const