+ /// Returns true is sketch element is under the rigid constraint
+ SKETCHPLUGIN_EXPORT virtual bool isFixed() {return false;}
+
+ inline bool isExternal() const
+ {
+ AttributeSelectionPtr aAttr = data()->selection(EXTERNAL_ID());
+ if (aAttr)
+ return aAttr->context();
+ return false;
+ }
+
+ /// Customize presentation of the feature
+ virtual void customisePresentation(AISObjectPtr thePrs)
+ {
+ // if this is an edge
+ if (thePrs->getShapeType() == 6)
+ thePrs->setWidth(3);
+ // if this is a vertex
+ //else if (thePrs->getShapeType() == 7)
+ // thePrs->setPointMarker(6, 2.);
+ }
+
+ /// Returns the sketch of this feature
+ SketchPlugin_Sketch* sketch();