6 #include <Draw/DrawStyle.h> 7 #include <Draw/Texture2.h> 8 #include <Draw/Texture2Transform.h> 43 public std::enable_shared_from_this<SubElement>
53 std::shared_ptr<Element> getElement()
const;
54 std::shared_ptr<SubElement> copy()
const;
59 bool setGeometry(std::shared_ptr<Geometry> geo);
60 std::shared_ptr<Geometry> getGeometry()
const;
61 Geom::Trsf getGeometryToWorldTransform()
const;
68 void setLocalPlacement(
const Geom::Ax2& pos);
86 void setOglMaterial(
const Draw::OglMaterial& mat,
int faceIndex = -1);
87 Draw::OglMaterial getOglMaterial()
const;
94 void setShininess(
int aVal);
95 void setTransparency(
int aVal);
97 void setDrawStyle(
const Draw::DrawStyle& ds);
98 Draw::DrawStyle getDrawStyle()
const;
99 void setLineWidth(
float width);
100 void setTexture(
const Draw::Texture2& tex,
int faceIndex = -1);
101 void setLengthAndCrossTexture(
const Draw::Texture2& lengthTexture,
102 const Draw::Texture2& crossTexture,
103 const Draw::Texture2Transform& lengthTextureTrsf = Draw::Texture2Transform(),
104 const Draw::Texture2Transform& crossTextureTrsf = Draw::Texture2Transform());
109 void setPositionNb(
long value);
110 long getPositionNb()
const;
112 bool isVisible()
const;
113 void setVisible(
bool onoff);
118 void setAssociatedMaterial(std::shared_ptr<Material> aMaterial);
119 std::shared_ptr<Material> getAssociatedMaterial()
const;
120 void removeAssociatedMaterial();
125 bool registerPythonClass(
const std::string& aClassName,
const std::string& aParentClassName);
131 std::shared_ptr<PropertyInteger> registerPropertyInteger(
const std::string& aName,
135 int aTranslationId = -1);
136 std::shared_ptr<PropertyEnum> registerPropertyEnum(
const std::string& aName,
140 int aTranslationId = -1);
142 std::shared_ptr<PropertyDouble> registerPropertyDouble(
const std::string& aName,
143 double aDefaultValue,
146 int aTranslationId = -1);
148 std::shared_ptr<PropertyButton> registerPropertyButton(
const std::string& aName,
151 int aTranslationId = -1);
153 std::shared_ptr<PropertyBool> registerPropertyBool(
const std::string& aName,
157 int aTranslationId = -1);
159 std::shared_ptr<PropertyString> registerPropertyString(
const std::string& aName,
163 int aTranslationId = -1);
165 std::shared_ptr<PropertyColor> registerPropertyColor(
const std::string& aName,
169 int aTranslationId = -1);
171 std::shared_ptr<OpenLxApp::Property> getProperty(
const std::string& aName)
const;
172 std::map<std::string, std::shared_ptr<Property>> getPropertyMap()
const;
173 std::shared_ptr<PropertyInteger> getPropertyInteger(
const std::string& aName)
const;
174 std::shared_ptr<PropertyEnum> getPropertyEnum(
const std::string& aName)
const;
175 std::shared_ptr<PropertyDouble> getPropertyDouble(
const std::string& aName)
const;
176 std::shared_ptr<PropertyButton> getPropertyButton(
const std::string& aName)
const;
177 std::shared_ptr<PropertyBool> getPropertyBool(
const std::string& aName)
const;
178 std::shared_ptr<PropertyString> getPropertyString(
const std::string& aName)
const;
179 std::shared_ptr<PropertyColor> getPropertyColor(
const std::string& aName)
const;
180 bool isRegisteredProperty(
const std::string& aName)
const;
182 virtual void onPropertyChanged(
const std::string& aPropertyName);
184 virtual void translateAfterScaled(
const Geom::Vec& aVec,
const Geom::Pnt& aScaleBasePnt);
187 void setPropertyHeader(
const Base::String& aDefaultName,
int aTranslationId);
188 void setPropertyGroupName(
const Base::String& aDefaultName,
int aTranslationId);
Definition: Property.h:41
Defines a non-persistent 3D Cartesian point.
Definition: Pnt.h:42
Editable
Definition: Property.h:38
#define PROXY_HEADER(_openlexocadclass_, _corelexocadclass_, _type_)
Definition: Globals.h:149
Visible
Definition: Property.h:32
Definition: Property.h:35
SubElement()
Definition: SubElement.h:197
A Utf-16 (windows) or ucs4 (unix) encoded string class.
Definition: String.h:29
#define OPENLXAPP_EXPORT
Definition: OpenLxApp_defines.h:12
Definition: GlobalId.h:32
Definition: ActiveScript.h:9
Definition: StandardManipulatorPolicy.h:9
Defines a non-persistent vector in 3D space.
Definition: Vec.h:45
std::shared_ptr< Topo::Shape const > pConstShape
Definition: Variant.h:81
Root is the base class of all BIM related entities. All BIM entities can be identified by a Globally ...
Definition: Root.h:20
Definition: DocObjectObserver.h:25
Definition: DocObject.h:28
A SubElement extends an Element. Together with the (parent) Element it describes an entity with multi...
Definition: SubElement.h:39
CoordSpace
Definition: GeomEnums.h:8
Definition: DocObjectObserver.h:10