//! Creates new selecting volume with pixel toletance set to 2,
//! orthographic camera and empty frustum builder
- SelectMgr_BaseFrustum();
+ Standard_EXPORT SelectMgr_BaseFrustum();
virtual ~SelectMgr_BaseFrustum() {}
//! Passes camera projection and orientation matrices to builder
- void SetCamera (const Handle(Graphic3d_Camera)& theCamera);
+ Standard_EXPORT void SetCamera (const Handle(Graphic3d_Camera)& theCamera);
//! Passes camera projection and orientation matrices to builder
- void SetCamera (const Graphic3d_Mat4d& theProjection,
- const Graphic3d_Mat4d& theWorldView,
- const Standard_Integer theIsOrthographic,
- const Graphic3d_WorldViewProjState& theWVPState = Graphic3d_WorldViewProjState());
+ Standard_EXPORT void SetCamera (const Graphic3d_Mat4d& theProjection,
+ const Graphic3d_Mat4d& theWorldView,
+ const Standard_Integer theIsOrthographic,
+ const Graphic3d_WorldViewProjState& theWVPState = Graphic3d_WorldViewProjState());
//! @return current camera projection transformation common for all selecting volumes
- const Graphic3d_Mat4d& ProjectionMatrix() const;
+ Standard_EXPORT const Graphic3d_Mat4d& ProjectionMatrix() const;
//! @return current camera world view transformation common for all selecting volumes
- const Graphic3d_Mat4d& WorldViewMatrix() const;
+ Standard_EXPORT const Graphic3d_Mat4d& WorldViewMatrix() const;
//! @return current camera world view projection transformation state
- const Graphic3d_WorldViewProjState& WorldViewProjState() const;
+ Standard_EXPORT const Graphic3d_WorldViewProjState& WorldViewProjState() const;
- void SetPixelTolerance (const Standard_Real theTol);
+ Standard_EXPORT void SetPixelTolerance (const Standard_Real theTol);
- void SetWindowSize (const Standard_Integer theWidth, const Standard_Integer theHeight);
+ Standard_EXPORT void SetWindowSize (const Standard_Integer theWidth,
+ const Standard_Integer theHeight);
//! Passes viewport parameters to builder
- void SetViewport (const Standard_Real theX,
- const Standard_Real theY,
- const Standard_Real theWidth,
- const Standard_Real theHeight);
+ Standard_EXPORT void SetViewport (const Standard_Real theX,
+ const Standard_Real theY,
+ const Standard_Real theWidth,
+ const Standard_Real theHeight);
//! Nullifies the builder created in the constructor and copies the pointer given
- void SetBuilder (const Handle(SelectMgr_FrustumBuilder)& theBuilder);
+ Standard_EXPORT void SetBuilder (const Handle(SelectMgr_FrustumBuilder)& theBuilder);
//! Builds volume according to the point and given pixel tolerance
virtual NCollection_Handle<SelectMgr_BaseFrustum> Scale (const Standard_Real /*theScaleFactor*/) { return NULL; }
//! SAT intersection test between defined volume and given axis-aligned box
- virtual Standard_Boolean Overlaps (const BVH_Box<Standard_Real, 3>& theBndBox,
- Standard_Real& theDepth);
+ Standard_EXPORT virtual Standard_Boolean Overlaps (const BVH_Box<Standard_Real, 3>& theBndBox,
+ Standard_Real& theDepth);
//! Returns true if selecting volume is overlapped by axis-aligned bounding box
//! with minimum corner at point theMinPt and maximum at point theMaxPt
- virtual Standard_Boolean Overlaps (const SelectMgr_Vec3& theBoxMin,
- const SelectMgr_Vec3& theBoxMax,
- Standard_Boolean* theInside = NULL);
+ Standard_EXPORT virtual Standard_Boolean Overlaps (const SelectMgr_Vec3& theBoxMin,
+ const SelectMgr_Vec3& theBoxMax,
+ Standard_Boolean* theInside = NULL);
//! Intersection test between defined volume and given point
- virtual Standard_Boolean Overlaps (const gp_Pnt& thePt,
- Standard_Real& theDepth);
+ Standard_EXPORT virtual Standard_Boolean Overlaps (const gp_Pnt& thePt,
+ Standard_Real& theDepth);
//! SAT intersection test between defined volume and given ordered set of points,
//! representing line segments. The test may be considered of interior part or
//! boundary line defined by segments depending on given sensitivity type
- virtual Standard_Boolean Overlaps (const Handle(TColgp_HArray1OfPnt)& theArrayOfPts,
- Select3D_TypeOfSensitivity theSensType,
- Standard_Real& theDepth);
+ Standard_EXPORT virtual Standard_Boolean Overlaps (const Handle(TColgp_HArray1OfPnt)& theArrayOfPts,
+ Select3D_TypeOfSensitivity theSensType,
+ Standard_Real& theDepth);
//! Checks if line segment overlaps selecting frustum
- virtual Standard_Boolean Overlaps (const gp_Pnt& thePt1,
- const gp_Pnt& thePt2,
- Standard_Real& theDepth);
+ Standard_EXPORT virtual Standard_Boolean Overlaps (const gp_Pnt& thePt1,
+ const gp_Pnt& thePt2,
+ Standard_Real& theDepth);
//! SAT intersection test between defined volume and given triangle. The test may
//! be considered of interior part or boundary line defined by triangle vertices
//! depending on given sensitivity type
- virtual Standard_Boolean Overlaps (const gp_Pnt& thePt1,
- const gp_Pnt& thePt2,
- const gp_Pnt& thePt3,
- Select3D_TypeOfSensitivity theSensType,
- Standard_Real& theDepth);
+ Standard_EXPORT virtual Standard_Boolean Overlaps (const gp_Pnt& thePt1,
+ const gp_Pnt& thePt2,
+ const gp_Pnt& thePt3,
+ Select3D_TypeOfSensitivity theSensType,
+ Standard_Real& theDepth);
//! Measures distance between 3d projection of user-picked
//! screen point and given point theCOG
- virtual Standard_Real DistToGeometryCenter (const gp_Pnt& theCOG);
+ Standard_EXPORT virtual Standard_Real DistToGeometryCenter (const gp_Pnt& theCOG);
- virtual SelectMgr_Vec3 DetectedPoint (const Standard_Real theDepth) const;
+ Standard_EXPORT virtual SelectMgr_Vec3 DetectedPoint (const Standard_Real theDepth) const;
//! Checks if the point of sensitive in which selection was detected belongs
//! to the region defined by clipping planes
- virtual Standard_Boolean IsClipped (const Graphic3d_SequenceOfHClipPlane& thePlanes,
- const Standard_Real theDepth);
+ Standard_EXPORT virtual Standard_Boolean IsClipped (const Graphic3d_SequenceOfHClipPlane& thePlanes,
+ const Standard_Real theDepth);
DEFINE_STANDARD_RTTI(SelectMgr_BaseFrustum, Standard_Transient)
//! Returns true if selecting volume is overlapped by axis-aligned bounding box
//! with minimum corner at point theMinPt and maximum at point theMaxPt
- Standard_Boolean hasOverlap (const SelectMgr_Vec3& theBoxMin,
- const SelectMgr_Vec3& theBoxMax,
- Standard_Boolean* theInside = NULL);
+ Standard_EXPORT Standard_Boolean hasOverlap (const SelectMgr_Vec3& theBoxMin,
+ const SelectMgr_Vec3& theBoxMax,
+ Standard_Boolean* theInside = NULL);
//! SAT intersection test between defined volume and given point
- Standard_Boolean hasOverlap (const gp_Pnt& thePnt);
+ Standard_EXPORT Standard_Boolean hasOverlap (const gp_Pnt& thePnt);
//! SAT intersection test between defined volume and given segment
- Standard_Boolean hasOverlap (const gp_Pnt& thePnt1,
- const gp_Pnt& thePnt2);
+ Standard_EXPORT Standard_Boolean hasOverlap (const gp_Pnt& thePnt1,
+ const gp_Pnt& thePnt2);
//! SAT intersection test between frustum given and planar convex polygon represented as ordered point set
- Standard_Boolean hasOverlap (const Handle(TColgp_HArray1OfPnt)& theArrayOfPnts,
- SelectMgr_Vec3& theNormal);
+ Standard_EXPORT Standard_Boolean hasOverlap (const Handle(TColgp_HArray1OfPnt)& theArrayOfPnts,
+ SelectMgr_Vec3& theNormal);
//! SAT intersection test between defined volume and given triangle
- Standard_Boolean hasOverlap (const gp_Pnt& thePnt1,
- const gp_Pnt& thePnt2,
- const gp_Pnt& thePnt3,
- SelectMgr_Vec3& theNormal);
+ Standard_EXPORT Standard_Boolean hasOverlap (const gp_Pnt& thePnt1,
+ const gp_Pnt& thePnt2,
+ const gp_Pnt& thePnt3,
+ SelectMgr_Vec3& theNormal);
private:
SelectMgr_FrustumBuilder();
//! Stores current world view transformation matrix
- void SetWorldViewMatrix (const Graphic3d_Mat4d& theWorldViewMatrix);
+ Standard_EXPORT void SetWorldViewMatrix (const Graphic3d_Mat4d& theWorldViewMatrix);
//! @return current world view transformation matrix
- const Graphic3d_Mat4d& WorldViewMatrix() const;
+ Standard_EXPORT const Graphic3d_Mat4d& WorldViewMatrix() const;
//! Stores current projection matrix
- void SetProjectionMatrix (const Graphic3d_Mat4d& theProjection);
+ Standard_EXPORT void SetProjectionMatrix (const Graphic3d_Mat4d& theProjection);
//! @return current projection matrix
- const Graphic3d_Mat4d& ProjectionMatrix() const;
+ Standard_EXPORT const Graphic3d_Mat4d& ProjectionMatrix() const;
//! Stores current world view projection matrix state for the orientation and projection matrices
- void SetWorldViewProjState (const Graphic3d_WorldViewProjState& theState);
+ Standard_EXPORT void SetWorldViewProjState (const Graphic3d_WorldViewProjState& theState);
//! @return current world view projection state
- const Graphic3d_WorldViewProjState& WorldViewProjState() const;
+ Standard_EXPORT const Graphic3d_WorldViewProjState& WorldViewProjState() const;
//! Stores current window width and height
- void SetWindowSize (const Standard_Integer theWidth,
- const Standard_Integer theHeight);
+ Standard_EXPORT void SetWindowSize (const Standard_Integer theWidth,
+ const Standard_Integer theHeight);
//! Stores current viewport coordinates
- void SetViewport (const Standard_Real theX,
- const Standard_Real theY,
- const Standard_Real theWidth,
- const Standard_Real theHeight);
+ Standard_EXPORT void SetViewport (const Standard_Real theX,
+ const Standard_Real theY,
+ const Standard_Real theWidth,
+ const Standard_Real theHeight);
- void InvalidateViewport();
+ Standard_EXPORT void InvalidateViewport();
//! Calculates signed distance between plane with equation
//! theEq and point thePnt
- Standard_Real SignedPlanePntDist (const SelectMgr_Vec3& theEq,
- const SelectMgr_Vec3& thePnt) const;
+ Standard_EXPORT Standard_Real SignedPlanePntDist (const SelectMgr_Vec3& theEq,
+ const SelectMgr_Vec3& thePnt) const;
//! Projects 2d screen point onto view frustum plane:
//! theZ = 0 - near plane,
//! theZ = 1 - far plane
- SelectMgr_Vec3 ProjectPntOnViewPlane (const Standard_Real& theX,
- const Standard_Real& theY,
- const Standard_Real& theZ) const;
+ Standard_EXPORT SelectMgr_Vec3 ProjectPntOnViewPlane (const Standard_Real& theX,
+ const Standard_Real& theY,
+ const Standard_Real& theZ) const;
DEFINE_STANDARD_RTTI(SelectMgr_FrustumBuilder, Standard_Transient)
SelectMgr_RectangularFrustum() {};
//! Builds volume according to the point and given pixel tolerance
- virtual void Build (const gp_Pnt2d& thePoint) Standard_OVERRIDE;
+ Standard_EXPORT virtual void Build (const gp_Pnt2d& thePoint) Standard_OVERRIDE;
//! Builds volume according to the selected rectangle
- virtual void Build (const gp_Pnt2d& theMinPnt,
- const gp_Pnt2d& theMaxPnt) Standard_OVERRIDE;
+ Standard_EXPORT virtual void Build (const gp_Pnt2d& theMinPnt,
+ const gp_Pnt2d& theMaxPnt) Standard_OVERRIDE;
//! Returns a copy of the frustum transformed according to the matrix given
- virtual NCollection_Handle<SelectMgr_BaseFrustum> Transform (const gp_Trsf& theTrsf) Standard_OVERRIDE;
+ Standard_EXPORT virtual NCollection_Handle<SelectMgr_BaseFrustum> Transform (const gp_Trsf& theTrsf) Standard_OVERRIDE;
//! IMPORTANT: Makes sense only for frustum built on a single point!
//! Returns a copy of the frustum resized according to the scale factor given
- virtual NCollection_Handle<SelectMgr_BaseFrustum> Scale (const Standard_Real theScaleFactor) Standard_OVERRIDE;
+ Standard_EXPORT virtual NCollection_Handle<SelectMgr_BaseFrustum> Scale (const Standard_Real theScaleFactor) Standard_OVERRIDE;
// SAT Tests for different objects
//! SAT intersection test between defined volume and given axis-aligned box
- virtual Standard_Boolean Overlaps (const BVH_Box<Standard_Real, 3>& theBox,
- Standard_Real& theDepth) Standard_OVERRIDE;
+ Standard_EXPORT virtual Standard_Boolean Overlaps (const BVH_Box<Standard_Real, 3>& theBox,
+ Standard_Real& theDepth) Standard_OVERRIDE;
//! Returns true if selecting volume is overlapped by axis-aligned bounding box
//! with minimum corner at point theMinPt and maximum at point theMaxPt
- virtual Standard_Boolean Overlaps (const SelectMgr_Vec3& theBoxMin,
- const SelectMgr_Vec3& theBoxMax,
- Standard_Boolean* theInside = NULL) Standard_OVERRIDE;
+ Standard_EXPORT virtual Standard_Boolean Overlaps (const SelectMgr_Vec3& theBoxMin,
+ const SelectMgr_Vec3& theBoxMax,
+ Standard_Boolean* theInside = NULL) Standard_OVERRIDE;
//! Intersection test between defined volume and given point
- virtual Standard_Boolean Overlaps (const gp_Pnt& thePnt,
- Standard_Real& theDepth) Standard_OVERRIDE;
+ Standard_EXPORT virtual Standard_Boolean Overlaps (const gp_Pnt& thePnt,
+ Standard_Real& theDepth) Standard_OVERRIDE;
//! SAT intersection test between defined volume and given ordered set of points,
//! representing line segments. The test may be considered of interior part or
//! boundary line defined by segments depending on given sensitivity type
- virtual Standard_Boolean Overlaps (const Handle(TColgp_HArray1OfPnt)& theArrayOfPnts,
- Select3D_TypeOfSensitivity theSensType,
- Standard_Real& theDepth) Standard_OVERRIDE;
+ Standard_EXPORT virtual Standard_Boolean Overlaps (const Handle(TColgp_HArray1OfPnt)& theArrayOfPnts,
+ Select3D_TypeOfSensitivity theSensType,
+ Standard_Real& theDepth) Standard_OVERRIDE;
//! Checks if line segment overlaps selecting frustum
- virtual Standard_Boolean Overlaps (const gp_Pnt& thePnt1,
- const gp_Pnt& thePnt2,
- Standard_Real& theDepth) Standard_OVERRIDE;
+ Standard_EXPORT virtual Standard_Boolean Overlaps (const gp_Pnt& thePnt1,
+ const gp_Pnt& thePnt2,
+ Standard_Real& theDepth) Standard_OVERRIDE;
//! SAT intersection test between defined volume and given triangle. The test may
//! be considered of interior part or boundary line defined by triangle vertices
//! depending on given sensitivity type
- virtual Standard_Boolean Overlaps (const gp_Pnt& thePnt1,
- const gp_Pnt& thePnt2,
- const gp_Pnt& thePnt3,
- Select3D_TypeOfSensitivity theSensType,
- Standard_Real& theDepth) Standard_OVERRIDE;
+ Standard_EXPORT virtual Standard_Boolean Overlaps (const gp_Pnt& thePnt1,
+ const gp_Pnt& thePnt2,
+ const gp_Pnt& thePnt3,
+ Select3D_TypeOfSensitivity theSensType,
+ Standard_Real& theDepth) Standard_OVERRIDE;
//! Measures distance between 3d projection of user-picked
//! screen point and given point theCOG
- virtual Standard_Real DistToGeometryCenter (const gp_Pnt& theCOG) Standard_OVERRIDE;
+ Standard_EXPORT virtual Standard_Real DistToGeometryCenter (const gp_Pnt& theCOG) Standard_OVERRIDE;
//! Calculates the point on a view ray that was detected during the run of selection algo by given depth
- virtual SelectMgr_Vec3 DetectedPoint (const Standard_Real theDepth) const Standard_OVERRIDE;
+ Standard_EXPORT virtual SelectMgr_Vec3 DetectedPoint (const Standard_Real theDepth) const Standard_OVERRIDE;
//! Checks if the point of sensitive in which selection was detected belongs
//! to the region defined by clipping planes
- virtual Standard_Boolean IsClipped (const Graphic3d_SequenceOfHClipPlane& thePlanes,
- const Standard_Real theDepth) Standard_OVERRIDE;
+ Standard_EXPORT virtual Standard_Boolean IsClipped (const Graphic3d_SequenceOfHClipPlane& thePlanes,
+ const Standard_Real theDepth) Standard_OVERRIDE;
protected:
- void segmentSegmentDistance (const gp_Pnt& theSegPnt1,
- const gp_Pnt& theSegPnt2,
- Standard_Real& theDepth);
+ Standard_EXPORT void segmentSegmentDistance (const gp_Pnt& theSegPnt1,
+ const gp_Pnt& theSegPnt2,
+ Standard_Real& theDepth);
- void segmentPlaneIntersection (const SelectMgr_Vec3& thePlane,
- const gp_Pnt& thePntOnPlane,
- Standard_Real& theDepth);
+ Standard_EXPORT void segmentPlaneIntersection (const SelectMgr_Vec3& thePlane,
+ const gp_Pnt& thePntOnPlane,
+ Standard_Real& theDepth);
private:
}
//! Returns BVH tree for the given world view projection (builds it if necessary).
- const NCollection_Handle<BVH_Tree<Standard_Real, 3> >& BVH (const Graphic3d_Mat4d& theProjectionMatrix,
- const Graphic3d_Mat4d& theWorldViewMatrix,
- const Graphic3d_WorldViewProjState& theWVPState);
+ Standard_EXPORT const NCollection_Handle<BVH_Tree<Standard_Real, 3> >& BVH (const Graphic3d_Mat4d& theProjectionMatrix,
+ const Graphic3d_Mat4d& theWorldViewMatrix,
+ const Graphic3d_WorldViewProjState& theWVPState);
private:
//! The default setting 0 is the selection mode for a shape in its entirety.
Standard_EXPORT SelectMgr_Selection (const Standard_Integer theModeIdx = 0);
- ~SelectMgr_Selection();
+ Standard_EXPORT ~SelectMgr_Selection();
Standard_EXPORT void Destroy();
protected:
//! Returns sensitive entity stored by index theIdx in entites vector
- Handle(SelectMgr_SensitiveEntity)& GetEntityById (const Standard_Integer theIdx);
+ Standard_EXPORT Handle(SelectMgr_SensitiveEntity)& GetEntityById (const Standard_Integer theIdx);
private:
public:
//! Creates new inactive for selection object with base entity theEntity
- SelectMgr_SensitiveEntity (const Handle(SelectBasics_SensitiveEntity)& theEntity);
+ Standard_EXPORT SelectMgr_SensitiveEntity (const Handle(SelectBasics_SensitiveEntity)& theEntity);
~SelectMgr_SensitiveEntity() {}
//! Clears up all resources and memory
- void Clear();
+ Standard_EXPORT void Clear();
//! Returns related instance of SelectBasics class
Standard_EXPORT const Handle(SelectBasics_SensitiveEntity)& BaseSensitive() const;
//! Returns true if this entity belongs to the active selection
//! mode of parent object
- Standard_Boolean IsActiveForSelection() const;
+ Standard_EXPORT Standard_Boolean IsActiveForSelection() const;
//! Marks entity as inactive for selection
Standard_EXPORT void ResetSelectionActiveStatus() const;
public:
- SelectMgr_SensitiveEntitySet();
+ Standard_EXPORT SelectMgr_SensitiveEntitySet();
virtual ~SelectMgr_SensitiveEntitySet() {};
//! Adds new entity to the set and marks BVH tree for rebuild
- void Append (const Handle(SelectMgr_SensitiveEntity)& theEntity);
+ Standard_EXPORT void Append (const Handle(SelectMgr_SensitiveEntity)& theEntity);
//! Adds every entity of selection theSelection to the set and marks
//! BVH tree for rebuild
- void Append (const Handle(SelectMgr_Selection)& theSelection);
+ Standard_EXPORT void Append (const Handle(SelectMgr_Selection)& theSelection);
//! Removes every entity of selection theSelection from the set
//! and marks BVH tree for rebuild
- void Remove (const Handle(SelectMgr_Selection)& theSelection);
+ Standard_EXPORT void Remove (const Handle(SelectMgr_Selection)& theSelection);
//! Returns bounding box of entity with index theIdx
- virtual Select3D_BndBox3d Box (const Standard_Integer theIndex) const Standard_OVERRIDE;
+ Standard_EXPORT virtual Select3D_BndBox3d Box (const Standard_Integer theIndex) const Standard_OVERRIDE;
//! Returns geometry center of sensitive entity index theIdx
//! along the given axis theAxis
- virtual Standard_Real Center (const Standard_Integer theIndex,
- const Standard_Integer theAxis) const Standard_OVERRIDE;
+ Standard_EXPORT virtual Standard_Real Center (const Standard_Integer theIndex,
+ const Standard_Integer theAxis) const Standard_OVERRIDE;
//! Swaps items with indexes theIdx1 and theIdx2
- virtual void Swap (const Standard_Integer theIndex1,
- const Standard_Integer theIndex2) Standard_OVERRIDE;
+ Standard_EXPORT virtual void Swap (const Standard_Integer theIndex1,
+ const Standard_Integer theIndex2) Standard_OVERRIDE;
//! Returns the amount of entities
- virtual Standard_Integer Size() const Standard_OVERRIDE;
+ Standard_EXPORT virtual Standard_Integer Size() const Standard_OVERRIDE;
//! Returns the entity with index theIndex in the set
- const Handle(SelectMgr_SensitiveEntity)& GetSensitiveById (const Standard_Integer theIndex) const;
+ Standard_EXPORT const Handle(SelectMgr_SensitiveEntity)& GetSensitiveById (const Standard_Integer theIndex) const;
private:
//! theP2 and theP3 projections onto near and far view frustum planes
SelectMgr_TriangularFrustum() {};
- ~SelectMgr_TriangularFrustum();
+ Standard_EXPORT ~SelectMgr_TriangularFrustum();
//! Creates new triangular frustum with bases of triangles with vertices theP1, theP2 and theP3
//! projections onto near and far view frustum planes (only for triangular frustums)
- virtual void Build (const gp_Pnt2d& theP1,
- const gp_Pnt2d& theP2,
- const gp_Pnt2d& theP3) Standard_OVERRIDE;
+ Standard_EXPORT virtual void Build (const gp_Pnt2d& theP1,
+ const gp_Pnt2d& theP2,
+ const gp_Pnt2d& theP3) Standard_OVERRIDE;
//! Returns a copy of the frustum transformed according to the matrix given
- virtual NCollection_Handle<SelectMgr_BaseFrustum> Transform (const gp_Trsf& theTrsf) Standard_OVERRIDE;
+ Standard_EXPORT virtual NCollection_Handle<SelectMgr_BaseFrustum> Transform (const gp_Trsf& theTrsf) Standard_OVERRIDE;
// SAT Tests for different objects
//! SAT intersection test between defined volume and given axis-aligned box
- virtual Standard_Boolean Overlaps (const BVH_Box<Standard_Real, 3>& theBox,
- Standard_Real& theDepth) Standard_OVERRIDE;
+ Standard_EXPORT virtual Standard_Boolean Overlaps (const BVH_Box<Standard_Real, 3>& theBox,
+ Standard_Real& theDepth) Standard_OVERRIDE;
//! Returns true if selecting volume is overlapped by axis-aligned bounding box
//! with minimum corner at point theMinPt and maximum at point theMaxPt
- virtual Standard_Boolean Overlaps (const SelectMgr_Vec3& theMinPt,
- const SelectMgr_Vec3& theMaxPt,
- Standard_Boolean* theInside) Standard_OVERRIDE;
+ Standard_EXPORT virtual Standard_Boolean Overlaps (const SelectMgr_Vec3& theMinPt,
+ const SelectMgr_Vec3& theMaxPt,
+ Standard_Boolean* theInside) Standard_OVERRIDE;
//! Intersection test between defined volume and given point
- virtual Standard_Boolean Overlaps (const gp_Pnt& thePnt,
- Standard_Real& theDepth) Standard_OVERRIDE;
+ Standard_EXPORT virtual Standard_Boolean Overlaps (const gp_Pnt& thePnt,
+ Standard_Real& theDepth) Standard_OVERRIDE;
//! SAT intersection test between defined volume and given ordered set of points,
//! representing line segments. The test may be considered of interior part or
//! boundary line defined by segments depending on given sensitivity type
- virtual Standard_Boolean Overlaps (const Handle(TColgp_HArray1OfPnt)& theArrayOfPnts,
- Select3D_TypeOfSensitivity theSensType,
- Standard_Real& theDepth) Standard_OVERRIDE;
+ Standard_EXPORT virtual Standard_Boolean Overlaps (const Handle(TColgp_HArray1OfPnt)& theArrayOfPnts,
+ Select3D_TypeOfSensitivity theSensType,
+ Standard_Real& theDepth) Standard_OVERRIDE;
//! Checks if line segment overlaps selecting frustum
- virtual Standard_Boolean Overlaps (const gp_Pnt& thePnt1,
- const gp_Pnt& thePnt2,
- Standard_Real& theDepth) Standard_OVERRIDE;
+ Standard_EXPORT virtual Standard_Boolean Overlaps (const gp_Pnt& thePnt1,
+ const gp_Pnt& thePnt2,
+ Standard_Real& theDepth) Standard_OVERRIDE;
//! SAT intersection test between defined volume and given triangle. The test may
//! be considered of interior part or boundary line defined by triangle vertices
//! depending on given sensitivity type
- virtual Standard_Boolean Overlaps (const gp_Pnt& thePnt1,
- const gp_Pnt& thePnt2,
- const gp_Pnt& thePnt3,
- Select3D_TypeOfSensitivity theSensType,
- Standard_Real& theDepth) Standard_OVERRIDE;
+ Standard_EXPORT virtual Standard_Boolean Overlaps (const gp_Pnt& thePnt1,
+ const gp_Pnt& thePnt2,
+ const gp_Pnt& thePnt3,
+ Select3D_TypeOfSensitivity theSensType,
+ Standard_Real& theDepth) Standard_OVERRIDE;
//! Nullifies the handle to corresponding builder instance to prevent memory leaks
- void Clear();
+ Standard_EXPORT void Clear();
DEFINE_STANDARD_RTTI(SelectMgr_TriangularFrustum,Standard_Transient)
};
//! Meshes polygon bounded by polyline. Than organizes a set of triangular frustums,
//! where each triangle's projection onto near and far view frustum planes is
//! considered as a frustum base
- virtual void Build (const TColgp_Array1OfPnt2d& thePoints) Standard_OVERRIDE;
+ Standard_EXPORT virtual void Build (const TColgp_Array1OfPnt2d& thePoints) Standard_OVERRIDE;
//! Returns a copy of the frustum with all sub-volumes transformed according to the matrix given
- virtual NCollection_Handle<SelectMgr_BaseFrustum> Transform (const gp_Trsf& theTrsf) Standard_OVERRIDE;
+ Standard_EXPORT virtual NCollection_Handle<SelectMgr_BaseFrustum> Transform (const gp_Trsf& theTrsf) Standard_OVERRIDE;
- virtual Standard_Boolean Overlaps (const BVH_Box<Standard_Real, 3>& theBox,
- Standard_Real& theDepth) Standard_OVERRIDE;
+ Standard_EXPORT virtual Standard_Boolean Overlaps (const BVH_Box<Standard_Real, 3>& theBox,
+ Standard_Real& theDepth) Standard_OVERRIDE;
- virtual Standard_Boolean Overlaps (const SelectMgr_Vec3& theMinPnt,
- const SelectMgr_Vec3& theMaxPnt,
- Standard_Boolean* theInside) Standard_OVERRIDE;
+ Standard_EXPORT virtual Standard_Boolean Overlaps (const SelectMgr_Vec3& theMinPnt,
+ const SelectMgr_Vec3& theMaxPnt,
+ Standard_Boolean* theInside) Standard_OVERRIDE;
- virtual Standard_Boolean Overlaps (const gp_Pnt& thePt,
- Standard_Real& theDepth) Standard_OVERRIDE;
+ Standard_EXPORT virtual Standard_Boolean Overlaps (const gp_Pnt& thePt,
+ Standard_Real& theDepth) Standard_OVERRIDE;
- virtual Standard_Boolean Overlaps (const Handle(TColgp_HArray1OfPnt)& theArrayOfPts,
- Select3D_TypeOfSensitivity theSensType,
- Standard_Real& theDepth) Standard_OVERRIDE;
+ Standard_EXPORT virtual Standard_Boolean Overlaps (const Handle(TColgp_HArray1OfPnt)& theArrayOfPts,
+ Select3D_TypeOfSensitivity theSensType,
+ Standard_Real& theDepth) Standard_OVERRIDE;
- virtual Standard_Boolean Overlaps (const gp_Pnt& thePt1,
- const gp_Pnt& thePt2,
- Standard_Real& theDepth) Standard_OVERRIDE;
+ Standard_EXPORT virtual Standard_Boolean Overlaps (const gp_Pnt& thePt1,
+ const gp_Pnt& thePt2,
+ Standard_Real& theDepth) Standard_OVERRIDE;
- virtual Standard_Boolean Overlaps (const gp_Pnt& thePt1,
- const gp_Pnt& thePt2,
- const gp_Pnt& thePt3,
- Select3D_TypeOfSensitivity theSensType,
- Standard_Real& theDepth) Standard_OVERRIDE;
+ Standard_EXPORT virtual Standard_Boolean Overlaps (const gp_Pnt& thePt1,
+ const gp_Pnt& thePt2,
+ const gp_Pnt& thePt3,
+ Select3D_TypeOfSensitivity theSensType,
+ Standard_Real& theDepth) Standard_OVERRIDE;
private: