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>
51 virtual bool setGeometry(std::shared_ptr<Geometry> geo);
52 std::shared_ptr<Geometry> getGeometry()
const;
53 Geom::Trsf getGeometryToWorldTransform()
const;
60 void setLocalPlacement(
const Geom::Ax2& pos);
78 void setOglMaterial(
const Draw::OglMaterial& mat,
int faceIndex = -1);
79 Draw::OglMaterial getOglMaterial()
const;
86 void setShininess(
int aVal);
87 void setTransparency(
int aVal);
89 void setDrawStyle(
const Draw::DrawStyle& ds);
90 Draw::DrawStyle getDrawStyle()
const;
91 void setLineWidth(
float width);
92 void setTexture(
const Draw::Texture2& tex,
int faceIndex = -1);
93 void setLengthAndCrossTexture(
const Draw::Texture2& lengthTexture,
94 const Draw::Texture2& crossTexture,
95 const Draw::Texture2Transform& lengthTextureTrsf = Draw::Texture2Transform(),
96 const Draw::Texture2Transform& crossTextureTrsf = Draw::Texture2Transform());
101 std::shared_ptr<SpatialStructureElement> getSpatialStructure()
const;
102 void setSpatialStructure(std::shared_ptr<SpatialStructureElement> aSpatialStructureElement);
107 void setPositionNb(
long value);
108 long getPositionNb()
const;
110 bool isVisible()
const;
111 void setVisible(
bool onoff);
116 bool registerPythonClass(
const std::string& aClassName,
const std::string& aParentClassName);
122 std::shared_ptr<PropertyInteger> registerPropertyInteger(
const std::string& aName,
126 int aTranslationId = -1);
127 std::shared_ptr<PropertyEnum> registerPropertyEnum(
const std::string& aName,
131 int aTranslationId = -1);
133 std::shared_ptr<PropertyDouble> registerPropertyDouble(
const std::string& aName,
134 double aDefaultValue,
137 int aTranslationId = -1);
139 std::shared_ptr<PropertyButton> registerPropertyButton(
const std::string& aName,
142 int aTranslationId = -1);
144 std::shared_ptr<PropertyBool> registerPropertyBool(
const std::string& aName,
148 int aTranslationId = -1);
150 std::shared_ptr<PropertyString> registerPropertyString(
const std::string& aName,
154 int aTranslationId = -1);
156 std::shared_ptr<PropertyColor> registerPropertyColor(
const std::string& aName,
160 int aTranslationId = -1);
162 std::shared_ptr<OpenLxApp::Property> getProperty(
const std::string& aName)
const;
163 std::map<std::string, std::shared_ptr<Property>> getPropertyMap()
const;
164 std::shared_ptr<PropertyInteger> getPropertyInteger(
const std::string& aName)
const;
165 std::shared_ptr<PropertyEnum> getPropertyEnum(
const std::string& aName)
const;
166 std::shared_ptr<PropertyDouble> getPropertyDouble(
const std::string& aName)
const;
167 std::shared_ptr<PropertyButton> getPropertyButton(
const std::string& aName)
const;
168 std::shared_ptr<PropertyBool> getPropertyBool(
const std::string& aName)
const;
169 std::shared_ptr<PropertyString> getPropertyString(
const std::string& aName)
const;
170 std::shared_ptr<PropertyColor> getPropertyColor(
const std::string& aName)
const;
171 bool isRegisteredProperty(
const std::string& aName)
const;
173 virtual void onPropertyChanged(
const std::string& aPropertyName);
175 virtual void translateAfterScaled(
const Geom::Vec& aVec,
const Geom::Pnt& aScaleBasePnt);
178 void setPropertyHeader(
const Base::String& aDefaultName,
int aTranslationId);
179 void setPropertyHeader(
const Base::String& aDefaultName);
180 void setPropertyGroupName(
const Base::String& aDefaultName,
int aTranslationId);
181 void setPropertyGroupName(
const Base::String& aDefaultName);
188 std::shared_ptr<PropertyUser> getPropertyUser(
const std::string& aName)
const;
189 std::vector<std::shared_ptr<PropertyUser>> getPropertyUser()
const;
190 std::vector<Base::String> getPropertySetNames()
const;
191 std::shared_ptr<PropertySet> getPropertySetByName(
const Base::String& aName)
const;
201 void removeExternalTypeObject();
The Product is an abstract representation of any object that relates to a geometric or spatial contex...
Definition: Product.h:37
An IfcObject is the generalization of any semantically treated thing or process. Objects are things a...
Definition: Object.h:46
Definition: Property.h:38
Defines a non-persistent 3D Cartesian point.
Definition: Pnt.h:43
Editable
Definition: Property.h:35
Visible
Definition: Property.h:29
Definition: Property.h:32
A Utf-16 (windows) or ucs4 (unix) encoded string class.
Definition: String.h:23
#define PROXY_HEADER_ABSTRACT(_openlexocadclass_, _corelexocadclass_, _type_)
Definition: Globals.h:137
Definition: GlobalId.h:29
Definition: ActiveScript.h:7
Definition: StandardManipulatorPolicy.h:9
Defines a non-persistent vector in 3D space.
Definition: Vec.h:44
std::shared_ptr< Topo::Shape const > pConstShape
Definition: Variant.h:77
#define FORWARD_DECL(x, y)
Definition: Globals.h:93
DEPRECATED. Do not use!
Definition: ExternalPythonTypeObject.h:18
Definition: DocObjectObserver.h:24
Definition: DocObject.h:51
CoordSpace
Definition: GeomEnums.h:5
Definition: DocObjectObserver.h:9