Warning, file /include/opencascade/AIS_MultipleConnectedInteractive.hxx was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
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
0035 Standard_EXPORT AIS_MultipleConnectedInteractive();
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 { return AIS_KindOfInteractive_Object; }
0048
0049 virtual Standard_Integer Signature() const Standard_OVERRIDE { return 1; }
0050
0051
0052 Standard_EXPORT Standard_Boolean HasConnection() const;
0053
0054
0055 Standard_EXPORT void Disconnect (const Handle(AIS_InteractiveObject)& theInteractive);
0056
0057
0058 Standard_EXPORT void DisconnectAll();
0059
0060
0061
0062 Standard_EXPORT virtual Standard_Boolean AcceptShapeDecomposition() const Standard_OVERRIDE;
0063
0064
0065 virtual const Handle(SelectMgr_EntityOwner)& GetAssemblyOwner() const Standard_OVERRIDE { return myAssemblyOwner; }
0066
0067
0068 virtual Handle(SelectMgr_EntityOwner) GlobalSelOwner() const Standard_OVERRIDE { return myAssemblyOwner; }
0069
0070
0071 Standard_EXPORT virtual void SetContext (const Handle(AIS_InteractiveContext)& theCtx) Standard_OVERRIDE;
0072
0073 public:
0074
0075
0076
0077
0078 Handle(AIS_InteractiveObject) Connect (const Handle(AIS_InteractiveObject)& theAnotherObj)
0079 {
0080 return connect (theAnotherObj, theAnotherObj->LocalTransformationGeom(), theAnotherObj->TransformPersistence());
0081 }
0082
0083
0084
0085
0086 Handle(AIS_InteractiveObject) Connect (const Handle(AIS_InteractiveObject)& theAnotherObj,
0087 const gp_Trsf& theLocation)
0088 {
0089 return connect (theAnotherObj, new TopLoc_Datum3D (theLocation), theAnotherObj->TransformPersistence());
0090 }
0091
0092
0093
0094
0095 Handle(AIS_InteractiveObject) Connect (const Handle(AIS_InteractiveObject)& theAnotherObj,
0096 const gp_Trsf& theLocation,
0097 const Handle(Graphic3d_TransformPers)& theTrsfPers)
0098 {
0099 return connect (theAnotherObj, new TopLoc_Datum3D (theLocation), theTrsfPers);
0100 }
0101
0102 protected:
0103
0104
0105
0106
0107
0108
0109
0110 Standard_EXPORT virtual void Compute (const Handle(PrsMgr_PresentationManager)& thePrsMgr,
0111 const Handle(Prs3d_Presentation)& thePrs,
0112 const Standard_Integer theMode) Standard_OVERRIDE;
0113
0114
0115
0116
0117 Standard_EXPORT virtual Handle(AIS_InteractiveObject) connect (const Handle(AIS_InteractiveObject)& theInteractive,
0118 const Handle(TopLoc_Datum3D)& theLocation,
0119 const Handle(Graphic3d_TransformPers)& theTrsfPers);
0120
0121 private:
0122
0123
0124 Standard_EXPORT virtual void ComputeSelection (const Handle(SelectMgr_Selection)& aSelection, const Standard_Integer aMode) Standard_OVERRIDE;
0125
0126 protected:
0127
0128 Handle(SelectMgr_EntityOwner) myAssemblyOwner;
0129
0130 };
0131
0132 DEFINE_STANDARD_HANDLE(AIS_MultipleConnectedInteractive, AIS_InteractiveObject)
0133
0134 #endif