6 #include <Draw/DrawStyle.h> 7 #include <Draw/Texture2.h> 8 #include <Draw/Texture2Transform.h> 39 public std::enable_shared_from_this<SubElement>
49 std::shared_ptr<Element> getElement()
const;
50 std::shared_ptr<SubElement> copy()
const;
55 bool setGeometry(std::shared_ptr<Geometry> geo);
56 std::shared_ptr<Geometry> getGeometry()
const;
57 Geom::Trsf getGeometryToWorldTransform()
const;
64 void setLocalPlacement(
const Geom::Ax2& pos);
82 void setOglMaterial(
const Draw::OglMaterial& mat,
int faceIndex = -1);
83 Draw::OglMaterial getOglMaterial()
const;
90 void setShininess(
int aVal);
91 void setTransparency(
int aVal);
93 void setDrawStyle(
const Draw::DrawStyle& ds);
94 Draw::DrawStyle getDrawStyle()
const;
95 void setLineWidth(
float width);
96 void setTexture(
const Draw::Texture2& tex,
int faceIndex = -1);
97 void setLengthAndCrossTexture(
const Draw::Texture2& lengthTexture,
98 const Draw::Texture2& crossTexture,
99 const Draw::Texture2Transform& lengthTextureTrsf = Draw::Texture2Transform(),
100 const Draw::Texture2Transform& crossTextureTrsf = Draw::Texture2Transform());
105 void setPositionNb(
long value);
106 long getPositionNb()
const;
108 bool isVisible()
const;
109 void setVisible(
bool onoff);
114 void setAssociatedMaterial(std::shared_ptr<Material> aMaterial);
115 std::shared_ptr<Material> getAssociatedMaterial()
const;
116 void removeAssociatedMaterial();
121 bool registerPythonClass(
const std::string& aClassName,
const std::string& aParentClassName);
127 std::shared_ptr<PropertyInteger> registerPropertyInteger(
const std::string& aName,
131 int aTranslationId = -1);
132 std::shared_ptr<PropertyEnum> registerPropertyEnum(
const std::string& aName,
136 int aTranslationId = -1);
138 std::shared_ptr<PropertyDouble> registerPropertyDouble(
const std::string& aName,
139 double aDefaultValue,
142 int aTranslationId = -1);
144 std::shared_ptr<PropertyButton> registerPropertyButton(
const std::string& aName,
147 int aTranslationId = -1);
149 std::shared_ptr<PropertyBool> registerPropertyBool(
const std::string& aName,
153 int aTranslationId = -1);
155 std::shared_ptr<PropertyString> registerPropertyString(
const std::string& aName,
159 int aTranslationId = -1);
161 std::shared_ptr<PropertyColor> registerPropertyColor(
const std::string& aName,
165 int aTranslationId = -1);
167 std::shared_ptr<OpenLxApp::Property> getProperty(
const std::string& aName)
const;
168 std::map<std::string, std::shared_ptr<Property>> getPropertyMap()
const;
169 std::shared_ptr<PropertyInteger> getPropertyInteger(
const std::string& aName)
const;
170 std::shared_ptr<PropertyEnum> getPropertyEnum(
const std::string& aName)
const;
171 std::shared_ptr<PropertyDouble> getPropertyDouble(
const std::string& aName)
const;
172 std::shared_ptr<PropertyButton> getPropertyButton(
const std::string& aName)
const;
173 std::shared_ptr<PropertyBool> getPropertyBool(
const std::string& aName)
const;
174 std::shared_ptr<PropertyString> getPropertyString(
const std::string& aName)
const;
175 std::shared_ptr<PropertyColor> getPropertyColor(
const std::string& aName)
const;
176 bool isRegisteredProperty(
const std::string& aName)
const;
178 virtual void onPropertyChanged(
const std::string& aPropertyName);
180 virtual void translateAfterScaled(
const Geom::Vec& aVec,
const Geom::Pnt& aScaleBasePnt);
183 void setPropertyHeader(
const Base::String& aDefaultName,
int aTranslationId);
184 void setPropertyGroupName(
const Base::String& aDefaultName,
int aTranslationId);
Definition: Property.h:38
Defines a non-persistent 3D Cartesian point.
Definition: Pnt.h:43
Editable
Definition: Property.h:35
#define PROXY_HEADER(_openlexocadclass_, _corelexocadclass_, _type_)
Definition: Globals.h:146
Visible
Definition: Property.h:29
Definition: Property.h:32
SubElement()
Definition: SubElement.h:193
A Utf-16 (windows) or ucs4 (unix) encoded string class.
Definition: String.h:23
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
Root is the base class of all BIM related entities. All BIM entities can be identified by a Globally ...
Definition: Root.h:19
Definition: DocObjectObserver.h:24
Definition: DocObject.h:51
A SubElement extends an Element. Together with the (parent) Element it describes an entity with multi...
Definition: SubElement.h:35
CoordSpace
Definition: GeomEnums.h:5
Definition: DocObjectObserver.h:9