-
-
Notifications
You must be signed in to change notification settings - Fork 385
Add wrapper for SelectMgr_FrustumBuiler,SelectMgr_ToleranceMap,Select… #1387
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…Mgr_ViewerSelector,SelectMgr_SensitiveEntitySet see #1380
Reviewer's Guide by SourceryThis pull request adds wrapper implementations for several previously unwrapped SelectMgr classes: SelectMgr_FrustumBuilder, SelectMgr_ToleranceMap, SelectMgr_ViewerSelector, and SelectMgr_SensitiveEntitySet. The implementation includes class definitions, methods, and their corresponding Python bindings. Class diagram for SelectMgr_FrustumBuilderclassDiagram
class SelectMgr_FrustumBuilder {
+SelectMgr_FrustumBuilder()
+Graphic3d_Camera Camera()
+void InvalidateViewport()
+gp_Pnt ProjectPntOnViewPlane(float theX, float theY, float theZ)
+void SetCamera(Graphic3d_Camera theCamera)
+void SetViewport(float theX, float theY, float theWidth, float theHeight)
+void SetWindowSize(int theWidth, int theHeight)
+float SignedPlanePntDist(SelectMgr_Vec3 theEq, SelectMgr_Vec3 thePnt)
+void WindowSize(int &OutValue, int &OutValue)
}
Class diagram for SelectMgr_ToleranceMapclassDiagram
class SelectMgr_ToleranceMap {
+SelectMgr_ToleranceMap()
+void Add(int theTolerance)
+int CustomTolerance()
+void Decrement(int theTolerance)
+bool IsCustomTolSet()
+void ResetDefaults()
+void SetCustomTolerance(int theTolerance)
+int Tolerance()
}
Class diagram for SelectMgr_ViewerSelectorclassDiagram
class SelectMgr_ViewerSelector {
+SelectMgr_ViewerSelector()
+void AddSelectableObject(SelectMgr_SelectableObject theObject)
+void AddSelectionToObject(SelectMgr_SelectableObject theObject, SelectMgr_Selection theSelection)
+void AllowOverlapDetection(bool theIsToAllow)
+void Clear()
+void ClearPicked()
+void ClearSensitive(V3d_View theView)
+bool Contains(SelectMgr_SelectableObject theObject)
+int CustomPixelTolerance()
+float DepthTolerance()
+SelectMgr_TypeOfDepthTolerance DepthToleranceType()
+void DisplaySensitive(V3d_View theView)
+void DisplaySensitive(SelectMgr_Selection theSel, gp_Trsf theTrsf, V3d_View theView, bool theToClearOthers)
+std::string DumpJson(int depth)
+Select3D_BVHBuilder3d EntitySetBuilder()
+SelectMgr_SelectingVolumeManager GetManager()
+bool IsActive(SelectMgr_SelectableObject theSelectableObject, int theMode)
+bool IsInside(SelectMgr_SelectableObject theSelectableObject, int theMode)
+bool Modes(SelectMgr_SelectableObject theSelectableObject, TColStd_ListOfInteger theModeList, SelectMgr_StateOfSelection theWantedState)
+void MoveSelectableObject(SelectMgr_SelectableObject theObject)
+int NbPicked()
+SelectMgr_EntityOwner OnePicked()
+void Pick(int theXPix, int theYPix, V3d_View theView)
+void Pick(int theXPMin, int theYPMin, int theXPMax, int theYPMax, V3d_View theView)
+void Pick(TColgp_Array1OfPnt2d thePolyline, V3d_View theView)
+void Pick(gp_Ax1 theAxis, V3d_View theView)
+SelectMgr_EntityOwner Picked(int theRank)
+SelectMgr_SortCriterion PickedData(int theRank)
+Select3D_SensitiveEntity PickedEntity(int theRank)
+gp_Pnt PickedPoint(int theRank)
+int PixelTolerance()
+void QueueBVHBuild(Select3D_SensitiveEntity theEntity)
+void RebuildObjectsTree(bool theIsForce)
+void RebuildSensitivesTree(SelectMgr_SelectableObject theObject, bool theIsForce)
+bool RemovePicked(SelectMgr_SelectableObject theObject)
+void RemoveSelectableObject(SelectMgr_SelectableObject theObject)
+void RemoveSelectionOfObject(SelectMgr_SelectableObject theObject, SelectMgr_Selection theSelection)
+void ResetSelectionActivationStatus()
+SelectMgr_SelectableObjectSet SelectableObjects()
+float Sensitivity()
+void SetDepthTolerance(SelectMgr_TypeOfDepthTolerance theType, float theTolerance)
+void SetEntitySetBuilder(Select3D_BVHBuilder3d theBuilder)
+void SetPickClosest(bool theToPreferClosest)
+void SetPixelTolerance(int theTolerance)
+void SetToPrebuildBVH(bool theToPrebuild, int theThreadsNum)
+void SortResult()
+SelectMgr_StateOfSelection Status(SelectMgr_Selection theSelection)
+TCollection_AsciiString Status(SelectMgr_SelectableObject theSelectableObject)
+bool ToPickClosest()
+bool ToPrebuildBVH()
+void WaitForBVHBuild()
}
Class diagram for SelectMgr_SensitiveEntitySetclassDiagram
class SelectMgr_SensitiveEntitySet {
+SelectMgr_SensitiveEntitySet(Select3D_BVHBuilder3d theBuilder)
+void Append(SelectMgr_SensitiveEntity theEntity)
+void Append(SelectMgr_Selection theSelection)
+Select3D_BndBox3d Box(int theIndex)
+float Center(int theIndex, int theAxis)
+SelectMgr_SensitiveEntity GetSensitiveById(int theIndex)
+bool HasEntityWithPersistence()
+SelectMgr_MapOfOwners Owners()
+void Remove(SelectMgr_Selection theSelection)
+SelectMgr_IndexedMapOfHSensitive Sensitives()
+int Size()
+void Swap(int theIndex1, int theIndex2)
}
File-Level Changes
Assessment against linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @tpaviot - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Fix #1380
Summary by Sourcery
Add wrappers for several SelectMgr classes, including SelectMgr_FrustumBuilder, SelectMgr_ToleranceMap, SelectMgr_ViewerSelector, and SelectMgr_SensitiveEntitySet, to enhance functionality related to selection management and tolerance handling in the application.
New Features:
Enhancements: