File indexing completed on 2025-01-18 10:04:40
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _Prs3d_PlaneAspect_HeaderFile
0018 #define _Prs3d_PlaneAspect_HeaderFile
0019
0020 #include <Prs3d_LineAspect.hxx>
0021
0022
0023 class Prs3d_PlaneAspect : public Prs3d_BasicAspect
0024 {
0025 DEFINE_STANDARD_RTTIEXT(Prs3d_PlaneAspect, Prs3d_BasicAspect)
0026 public:
0027
0028
0029 Standard_EXPORT Prs3d_PlaneAspect();
0030
0031
0032 const Handle(Prs3d_LineAspect)& EdgesAspect() const { return myEdgesAspect; }
0033
0034
0035 const Handle(Prs3d_LineAspect)& IsoAspect() const { return myIsoAspect; }
0036
0037
0038 const Handle(Prs3d_LineAspect)& ArrowAspect() const { return myArrowAspect; }
0039
0040 void SetArrowsLength (const Standard_Real theLength) { myArrowsLength = theLength; }
0041
0042
0043 Standard_Real ArrowsLength() const { return myArrowsLength; }
0044
0045
0046 void SetArrowsSize (const Standard_Real theSize) { myArrowsSize = theSize; }
0047
0048
0049 Standard_Real ArrowsSize() const { return myArrowsSize; }
0050
0051
0052
0053 void SetArrowsAngle (const Standard_Real theAngle) { myArrowsAngle = theAngle; }
0054
0055
0056
0057 Standard_Real ArrowsAngle() const { return myArrowsAngle; }
0058
0059
0060 void SetDisplayCenterArrow (const Standard_Boolean theToDraw) { myDrawCenterArrow = theToDraw; }
0061
0062
0063 Standard_Boolean DisplayCenterArrow() const { return myDrawCenterArrow; }
0064
0065
0066 void SetDisplayEdgesArrows (const Standard_Boolean theToDraw) { myDrawEdgesArrows = theToDraw; }
0067
0068
0069 Standard_Boolean DisplayEdgesArrows() const { return myDrawEdgesArrows; }
0070
0071 void SetDisplayEdges (const Standard_Boolean theToDraw) { myDrawEdges = theToDraw; }
0072
0073 Standard_Boolean DisplayEdges() const { return myDrawEdges; }
0074
0075
0076 void SetDisplayIso (const Standard_Boolean theToDraw) { myDrawIso = theToDraw; }
0077
0078
0079 Standard_Boolean DisplayIso() const { return myDrawIso; }
0080
0081 void SetPlaneLength (const Standard_Real theLX, const Standard_Real theLY)
0082 {
0083 myPlaneXLength = theLX;
0084 myPlaneYLength = theLY;
0085 }
0086
0087
0088 Standard_Real PlaneXLength() const { return myPlaneXLength; }
0089
0090
0091 Standard_Real PlaneYLength() const { return myPlaneYLength; }
0092
0093
0094 void SetIsoDistance (const Standard_Real theL) { myIsoDistance = theL; }
0095
0096
0097 Standard_Real IsoDistance() const { return myIsoDistance; }
0098
0099
0100 Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const Standard_OVERRIDE;
0101
0102 protected:
0103
0104 Handle(Prs3d_LineAspect) myEdgesAspect;
0105 Handle(Prs3d_LineAspect) myIsoAspect;
0106 Handle(Prs3d_LineAspect) myArrowAspect;
0107 Standard_Real myArrowsLength;
0108 Standard_Real myArrowsSize;
0109 Standard_Real myArrowsAngle;
0110 Standard_Real myPlaneXLength;
0111 Standard_Real myPlaneYLength;
0112 Standard_Real myIsoDistance;
0113 Standard_Boolean myDrawCenterArrow;
0114 Standard_Boolean myDrawEdgesArrows;
0115 Standard_Boolean myDrawEdges;
0116 Standard_Boolean myDrawIso;
0117
0118 };
0119
0120 DEFINE_STANDARD_HANDLE(Prs3d_PlaneAspect, Prs3d_BasicAspect)
0121
0122 #endif