|
| static int | getAISDefaultWidth () |
| | Returns default value of AIS presentation. More...
|
| |
| static gp_Pnt | convertClickToPoint (QPoint thePoint, HandlettheView) |
| | Converts the 2D screen point to the 3D point on the view according to the point of view. More...
|
| |
| static void | convertTo2D (const gp_Pnt &thePoint, FeaturePtr theSketch, HandlettheView, double &theX, double &theY) |
| | Converts the 3D point to the projected coordinates on the sketch plane. More...
|
| |
| static std::shared_ptr< GeomAPI_Pnt2d > | convertTo2D (FeaturePtr theSketch, const std::shared_ptr< GeomAPI_Pnt > &thePnt) |
| | Converts the 3D point to the projected coordinates on the sketch plane. More...
|
| |
| static std::shared_ptr< GeomAPI_Pnt > | convertTo3D (const double theX, const double theY, FeaturePtr theSketch) |
| | Converts the 2D projected coordinates on the sketch plane to the 3D point. More...
|
| |
| static std::shared_ptr< ModelAPI_Document > | document () |
| | Returns pointer to the root document. More...
|
| |
| static void | setFeatureValue (FeaturePtr theFeature, double theX, const std::string &theAttribute) |
| | Save the double to the feature. More...
|
| |
| static double | featureValue (FeaturePtr theFeature, const std::string &theAttribute, bool &isValid) |
| | Returns the feature double value if it is. More...
|
| |
| static FeaturePtr | feature (FeaturePtr theFeature, const std::string &theAttribute, const std::string &theKind) |
| | Find a feature in the attribute of the given feature. More...
|
| |
| static void | createConstraint (CompositeFeaturePtr theSketch, std::shared_ptr< GeomDataAPI_Point2D > thePoint1, std::shared_ptr< GeomDataAPI_Point2D > thePoint2) |
| | Creates a constraint on two points. More...
|
| |
| static std::shared_ptr< GeomAPI_Pln > | sketchPlane (CompositeFeaturePtr theSketch) |
| | Create a sketch plane instance. More...
|
| |
| static void | nullifySketchPlane (CompositeFeaturePtr theSketch) |
| | Create a sketch plane instance. More...
|
| |
| static std::pair< bool, gp_Ax3 > | getWorldCSAt (const GeomAPI_Face &theFace, double U, double V) |
| |
| static std::pair< bool, gp_Pnt > | getWorldPointByUV (const GeomAPI_Face &theFace, double U, double V) |
| |
| static std::pair< bool, Bnd_Box > | getBBoxAtCS (const GeomAPI_Shape &theShape, const gp_Ax3 theCS) |
| | Fills bounding box, which is aligned according to theCS. Returns the smallest possible box only for GeomAPI_Plns, for other shapes returns unaligned transformed bounding box (so its dimensions are bigger than the smallest)! More...
|
| |
| static std::shared_ptr< ModelAPI_AttributeDouble > | sketchPlaneDefaultSize (CompositeFeaturePtr theSketch) |
| |
| static std::shared_ptr< ModelAPI_AttributeBoolean > | sketchPlaneAxesEnabled (CompositeFeaturePtr theSketch) |
| |
| static std::shared_ptr< ModelAPI_AttributeBoolean > | sketchPlaneSubstrateEnabled (CompositeFeaturePtr theSketch) |
| |
| static std::shared_ptr< ModelAPI_AttributeString > | sketchPlaneGridType (CompositeFeaturePtr theSketch) |
| |
|
static void | setSketchPlaneGridType (CompositeFeaturePtr theSketch, SketchPlaneGridType::Enum theType) |
| |
|
static SketchPlaneGridType::Enum | getSketchPlaneGridType (CompositeFeaturePtr theSketch) |
| |
| static std::shared_ptr< ModelAPI_AttributeDouble > | sketchPlaneRectangularGridStepX (CompositeFeaturePtr theSketch) |
| |
| static std::shared_ptr< ModelAPI_AttributeDouble > | sketchPlaneRectangularGridStepY (CompositeFeaturePtr theSketch) |
| |
| static std::shared_ptr< ModelAPI_AttributeDouble > | sketchPlaneRectangularGridOffsetAngle (CompositeFeaturePtr theSketch) |
| |
| static std::shared_ptr< ModelAPI_AttributeDouble > | sketchPlaneRectangularGridOffsetX (CompositeFeaturePtr theSketch) |
| |
| static std::shared_ptr< ModelAPI_AttributeDouble > | sketchPlaneRectangularGridOffsetY (CompositeFeaturePtr theSketch) |
| |
| static std::shared_ptr< ModelAPI_AttributeDouble > | sketchPlaneCircularGridStepR (CompositeFeaturePtr theSketch) |
| |
| static std::shared_ptr< ModelAPI_AttributeInteger > | sketchPlaneCircularGridNumOfAngSegments (CompositeFeaturePtr theSketch) |
| |
| static std::shared_ptr< ModelAPI_AttributeDouble > | sketchPlaneCircularGridOffsetAngle (CompositeFeaturePtr theSketch) |
| |
| static std::shared_ptr< ModelAPI_AttributeDouble > | sketchPlaneCircularGridOffsetX (CompositeFeaturePtr theSketch) |
| |
| static std::shared_ptr< ModelAPI_AttributeDouble > | sketchPlaneCircularGridOffsetY (CompositeFeaturePtr theSketch) |
| |
| static std::shared_ptr< GeomAPI_Pnt > | point3D (std::shared_ptr< GeomAPI_Pnt2d > thePoint2D, CompositeFeaturePtr theSketch) |
| | Create a point 3D on a basis of point 2D and sketch feature. More...
|
| |
| static std::shared_ptr< ModelAPI_Result > | findFixedObjectByExternal (const TopoDS_Shape &theShape, const ObjectPtr &theObject, CompositeFeaturePtr theSketch) |
| | Finds a line (arc or circle) by given edge. More...
|
| |
| static std::shared_ptr< ModelAPI_Result > | createFixedObjectByExternal (const std::shared_ptr< GeomAPI_Shape > &theShape, const ObjectPtr &theObject, CompositeFeaturePtr theSketch, const bool theTemporary, FeaturePtr &theCreatedFeature) |
| | Creates a line (arc or circle) by given edge Created line will have fixed constraint. More...
|
| |
| static bool | isContainPresentation (const QList< std::shared_ptr< ModuleBase_ViewerPrs >> &theSelected, const std::shared_ptr< ModuleBase_ViewerPrs > &thePrs) |
| | Checks whether the list of selected presentations contains the given one. More...
|
| |
| static std::pair< AttributePtr, int > | findAttributeBy2dPoint (ObjectPtr theObj, const TopoDS_Shape theShape, FeaturePtr theSketch) |
| | Find attribute of object which corresponds to the given shape. More...
|
| |
| static std::shared_ptr< GeomAPI_Shape > | findShapeBy2DPoint (const AttributePtr &theAttribute, ModuleBase_IWorkshop *theWorkshop) |
| | Finds an attribute value in attribute reference attribute value. More...
|
| |
| static std::shared_ptr< GeomAPI_Pnt2d > | getPoint (std::shared_ptr< ModelAPI_Feature > &theFeature, const std::string &theAttribute) |
| | Returns point of coincidence feature. More...
|
| |
| static std::shared_ptr< GeomAPI_Pnt2d > | getPnt2d (QMouseEvent *theEvent, ModuleBase_IViewWindow *theWindow, const FeaturePtr &theSketch) |
| | Convertes parameters into a geom point. More...
|
| |
| static std::shared_ptr< GeomAPI_Pnt2d > | getPnt2d (const Handle &&theView, const TopoDS_Shape &theShape, const FeaturePtr &theSketch) |
| | Returns point 2d from selected shape. More...
|
| |
| static FeaturePtr | findFirstCoincidence (const FeaturePtr &theFeature, std::shared_ptr< GeomAPI_Pnt2d > thePoint) |
| | Gets all references to the feature, take coincidence constraint features, get point 2d attributes and compare the point value to be equal with the given. More...
|
| |
| static void | findCoincidences (FeaturePtr theStartCoin, QList< FeaturePtr > &theList, QList< FeaturePtr > &theCoincidencies, std::string theAttr, QList< bool > &theIsAttributes) |
| | Returns list of features connected in a councedence feature point. More...
|
| |
|
static FeaturePtr | findRefsToMeFeature (FeaturePtr theFeature, const std::string &theFeatureId) |
| |
| static std::shared_ptr< GeomAPI_Pnt2d > | getCoincedencePoint (FeaturePtr theStartCoin) |
| | Returns point of a coincedence. More...
|
| |
| static void | sendSubFeaturesEvent (const CompositeFeaturePtr &theComposite, const Events_ID theId) |
| | Sends redisplay event for all sub-features of the composite. Flush it. More...
|
| |
| static bool | isAuxiliarySketchEntity (const ObjectPtr &theObject) |
| | Returns true if the object is a sketch entity, where auxiliary attribute has true value. More...
|
| |
| static bool | isIncludeIntoSketchResult (const ObjectPtr &theObject) |
| | Returns true if the object is a sketch entity produced by projection or intersection feature and if it should not be included into the sketch result. More...
|
| |
|
static ResultPtr | createFixedByExternalCenter (const ObjectPtr &theObject, const std::shared_ptr< GeomAPI_Edge > &theEdge, ModelAPI_AttributeSelection::CenterType theType, const CompositeFeaturePtr &theSketch, bool theTemporary, FeaturePtr &theCreatedFeature) |
| |
|
static void | getFirstAndLastIndexInFolder (const ObjectPtr &theFolder, int &theFirst, int &theLast) |
| |
| static void | getDefaultColor (ObjectPtr theObject, const bool isEmptyColorValid, std::vector< int > &theColor) |
| | Returns default color value for the given object. More...
|
| |
| static double | getDefaultDeflection (const ObjectPtr &theObject) |
| | Returns default deflection value for the given object. More...
|
| |
| static double | getDefaultTransparency () |
| | Returns default transparency value. More...
|
| |
| static QCursor | getOperationCursor () |
| | Returns cursor according to (SKETCH_TAB_NAME, "operation_cursor") property value. More...
|
| |
The operation for the sketch feature creation.