File indexing completed on 2026-07-28 09:17:35
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _AIS_MultipleConnectedInteractive_HeaderFile
0018 #define _AIS_MultipleConnectedInteractive_HeaderFile
0019
0020 #include <AIS_InteractiveObject.hxx>
0021 #include <AIS_KindOfInteractive.hxx>
0022
0023
0024
0025
0026
0027
0028 class AIS_MultipleConnectedInteractive : public AIS_InteractiveObject
0029 {
0030 DEFINE_STANDARD_RTTIEXT(AIS_MultipleConnectedInteractive, AIS_InteractiveObject)
0031 public:
0032
0033
0034 Standard_EXPORT AIS_MultipleConnectedInteractive();
0035
0036
0037
0038
0039
0040 Handle(AIS_InteractiveObject) Connect(const Handle(AIS_InteractiveObject)& theAnotherObj,
0041 const Handle(TopLoc_Datum3D)& theLocation,
0042 const Handle(Graphic3d_TransformPers)& theTrsfPers)
0043 {
0044 return connect(theAnotherObj, theLocation, theTrsfPers);
0045 }
0046
0047 virtual AIS_KindOfInteractive Type() const Standard_OVERRIDE
0048 {
0049 return AIS_KindOfInteractive_Object;
0050 }
0051
0052 virtual Standard_Integer Signature() const Standard_OVERRIDE { return 1; }
0053
0054
0055 Standard_EXPORT Standard_Boolean HasConnection() const;
0056
0057
0058 Standard_EXPORT void Disconnect(const Handle(AIS_InteractiveObject)& theInteractive);
0059
0060
0061 Standard_EXPORT void DisconnectAll();
0062
0063
0064
0065 Standard_EXPORT virtual Standard_Boolean AcceptShapeDecomposition() const Standard_OVERRIDE;
0066
0067
0068 virtual const Handle(SelectMgr_EntityOwner)& GetAssemblyOwner() const Standard_OVERRIDE
0069 {
0070 return myAssemblyOwner;
0071 }
0072
0073
0074 virtual Handle(SelectMgr_EntityOwner) GlobalSelOwner() const Standard_OVERRIDE
0075 {
0076 return myAssemblyOwner;
0077 }
0078
0079
0080 Standard_EXPORT virtual void SetContext(const Handle(AIS_InteractiveContext)& theCtx)
0081 Standard_OVERRIDE;
0082
0083 public:
0084
0085
0086
0087
0088 Handle(AIS_InteractiveObject) Connect(const Handle(AIS_InteractiveObject)& theAnotherObj)
0089 {
0090 return connect(theAnotherObj,
0091 theAnotherObj->LocalTransformationGeom(),
0092 theAnotherObj->TransformPersistence());
0093 }
0094
0095
0096
0097
0098
0099 Handle(AIS_InteractiveObject) Connect(const Handle(AIS_InteractiveObject)& theAnotherObj,
0100 const gp_Trsf& theLocation)
0101 {
0102 return connect(theAnotherObj,
0103 new TopLoc_Datum3D(theLocation),
0104 theAnotherObj->TransformPersistence());
0105 }
0106
0107
0108
0109
0110
0111 Handle(AIS_InteractiveObject) Connect(const Handle(AIS_InteractiveObject)& theAnotherObj,
0112 const gp_Trsf& theLocation,
0113 const Handle(Graphic3d_TransformPers)& theTrsfPers)
0114 {
0115 return connect(theAnotherObj, new TopLoc_Datum3D(theLocation), theTrsfPers);
0116 }
0117
0118 protected:
0119
0120
0121
0122
0123
0124
0125 Standard_EXPORT virtual void Compute(const Handle(PrsMgr_PresentationManager)& thePrsMgr,
0126 const Handle(Prs3d_Presentation)& thePrs,
0127 const Standard_Integer theMode) Standard_OVERRIDE;
0128
0129
0130
0131
0132
0133 Standard_EXPORT virtual Handle(AIS_InteractiveObject) connect(
0134 const Handle(AIS_InteractiveObject)& theInteractive,
0135 const Handle(TopLoc_Datum3D)& theLocation,
0136 const Handle(Graphic3d_TransformPers)& theTrsfPers);
0137
0138 private:
0139
0140 Standard_EXPORT virtual void ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,
0141 const Standard_Integer aMode) Standard_OVERRIDE;
0142
0143 protected:
0144 Handle(SelectMgr_EntityOwner) myAssemblyOwner;
0145 };
0146
0147 DEFINE_STANDARD_HANDLE(AIS_MultipleConnectedInteractive, AIS_InteractiveObject)
0148
0149 #endif