File indexing completed on 2025-01-18 10:02:55
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _AIS_PlaneTrihedron_HeaderFile
0018 #define _AIS_PlaneTrihedron_HeaderFile
0019
0020 #include <AIS_InteractiveObject.hxx>
0021 #include <TCollection_AsciiString.hxx>
0022
0023 class AIS_Line;
0024 class AIS_Point;
0025 class Geom_Plane;
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038
0039
0040
0041
0042
0043
0044 class AIS_PlaneTrihedron : public AIS_InteractiveObject
0045 {
0046 DEFINE_STANDARD_RTTIEXT(AIS_PlaneTrihedron, AIS_InteractiveObject)
0047 public:
0048
0049
0050
0051 Standard_EXPORT AIS_PlaneTrihedron(const Handle(Geom_Plane)& aPlane);
0052
0053
0054 Standard_EXPORT Handle(Geom_Plane) Component();
0055
0056
0057 Standard_EXPORT void SetComponent (const Handle(Geom_Plane)& aPlane);
0058
0059
0060 Standard_EXPORT Handle(AIS_Line) XAxis() const;
0061
0062
0063 Standard_EXPORT Handle(AIS_Line) YAxis() const;
0064
0065
0066 Standard_EXPORT Handle(AIS_Point) Position() const;
0067
0068
0069 Standard_EXPORT void SetLength (const Standard_Real theLength);
0070
0071
0072 Standard_EXPORT Standard_Real GetLength() const;
0073
0074
0075 Standard_EXPORT Standard_Boolean AcceptDisplayMode (const Standard_Integer aMode) const Standard_OVERRIDE;
0076
0077 virtual Standard_Integer Signature() const Standard_OVERRIDE { return 4; }
0078
0079
0080 virtual AIS_KindOfInteractive Type() const Standard_OVERRIDE { return AIS_KindOfInteractive_Datum; }
0081
0082
0083 Standard_EXPORT virtual void SetColor (const Quantity_Color& theColor) Standard_OVERRIDE;
0084
0085 void SetXLabel (const TCollection_AsciiString& theLabel) { myXLabel = theLabel; }
0086
0087 void SetYLabel (const TCollection_AsciiString& theLabel) { myYLabel = theLabel; }
0088
0089 protected:
0090
0091 Standard_EXPORT virtual void Compute (const Handle(PrsMgr_PresentationManager)& theprsMgr,
0092 const Handle(Prs3d_Presentation)& thePrs,
0093 const Standard_Integer theMode) Standard_OVERRIDE;
0094
0095 private:
0096
0097 Standard_EXPORT virtual void ComputeSelection (const Handle(SelectMgr_Selection)& theSel,
0098 const Standard_Integer theMode) Standard_OVERRIDE;
0099
0100 private:
0101
0102 Handle(Geom_Plane) myPlane;
0103 Handle(AIS_InteractiveObject) myShapes[3];
0104 TCollection_AsciiString myXLabel;
0105 TCollection_AsciiString myYLabel;
0106
0107 };
0108
0109 DEFINE_STANDARD_HANDLE(AIS_PlaneTrihedron, AIS_InteractiveObject)
0110
0111 #endif