// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
-
-#include <Prs3d_LineAspect.hxx>
#include <Prs3d_PlaneAspect.hxx>
-#include <Standard_Type.hxx>
-IMPLEMENT_STANDARD_RTTIEXT(Prs3d_PlaneAspect,Prs3d_BasicAspect)
+IMPLEMENT_STANDARD_RTTIEXT(Prs3d_PlaneAspect, Prs3d_BasicAspect)
+// =======================================================================
+// function : Prs3d_PlaneAspect
+// purpose :
+// =======================================================================
Prs3d_PlaneAspect::Prs3d_PlaneAspect()
-{
- myEdgesAspect = new Prs3d_LineAspect(Quantity_NOC_GREEN,Aspect_TOL_SOLID,1.);
- myIsoAspect = new Prs3d_LineAspect(Quantity_NOC_GRAY75,Aspect_TOL_SOLID,0.5);
- myArrowAspect = new Prs3d_LineAspect(Quantity_NOC_PEACHPUFF,Aspect_TOL_SOLID,1.);
- myDrawCenterArrow = Standard_False;
- myDrawEdgesArrows = Standard_False;
- myDrawEdges = Standard_True;
- myDrawIso = Standard_False;
- myIsoDistance = 0.5;
- myPlaneXLength= 1.;
- myPlaneYLength= 1.;
- myArrowsLength= 0.02;
- myArrowsSize=0.1;
- myArrowsAngle=M_PI/8.;
-}
-
-Handle(Prs3d_LineAspect) Prs3d_PlaneAspect::EdgesAspect() const
-{
- return myEdgesAspect;
-}
-
-Handle(Prs3d_LineAspect) Prs3d_PlaneAspect::IsoAspect() const
-{
- return myIsoAspect;
-}
-
-Handle(Prs3d_LineAspect) Prs3d_PlaneAspect::ArrowAspect() const
-{
- return myArrowAspect;
-}
-
-void Prs3d_PlaneAspect::SetDisplayCenterArrow(const Standard_Boolean draw)
-{
- myDrawCenterArrow = draw;
-}
-
-void Prs3d_PlaneAspect::SetDisplayEdgesArrows(const Standard_Boolean draw)
-{
- myDrawEdgesArrows = draw;
-}
-
-void Prs3d_PlaneAspect::SetDisplayEdges(const Standard_Boolean draw)
-{
- myDrawEdges = draw;
-}
-
-void Prs3d_PlaneAspect::SetDisplayIso(const Standard_Boolean draw)
-{
- myDrawIso = draw;
-}
-
-Standard_Boolean Prs3d_PlaneAspect::DisplayCenterArrow() const
-{
- return myDrawCenterArrow;
-}
-
-Standard_Boolean Prs3d_PlaneAspect::DisplayEdgesArrows() const
-{
- return myDrawEdgesArrows;
-}
-
-Standard_Boolean Prs3d_PlaneAspect::DisplayEdges() const
-{
- return myDrawEdges;
-}
-
-Standard_Boolean Prs3d_PlaneAspect::DisplayIso() const
-{
- return myDrawIso;
-}
-
-void Prs3d_PlaneAspect::SetPlaneLength(const Quantity_Length lX,
- const Quantity_Length lY)
-{
- myPlaneXLength = lX;
- myPlaneYLength = lY;
-}
-
-Quantity_Length Prs3d_PlaneAspect::PlaneXLength() const
-{
- return myPlaneXLength;
-}
-
-Quantity_Length Prs3d_PlaneAspect::PlaneYLength() const
-{
- return myPlaneYLength;
-}
-
-void Prs3d_PlaneAspect::SetIsoDistance(const Quantity_Length l)
-{
- myIsoDistance = l;
-}
-
-Quantity_Length Prs3d_PlaneAspect::IsoDistance() const
-{
- return myIsoDistance;
-}
-
-void Prs3d_PlaneAspect::SetArrowsLength(const Quantity_Length L)
-{
- myArrowsLength = L;
-}
-
-Quantity_Length Prs3d_PlaneAspect::ArrowsLength() const
-{
- return myArrowsLength;
-}
-
-void Prs3d_PlaneAspect::SetArrowsSize(const Quantity_Length L)
-{
- myArrowsSize = L;
-}
-
-Quantity_Length Prs3d_PlaneAspect::ArrowsSize() const
-{
- return myArrowsSize;
-}
-
-void Prs3d_PlaneAspect::SetArrowsAngle(const Quantity_PlaneAngle ang)
-{
- myArrowsAngle = ang;
+: myEdgesAspect (new Prs3d_LineAspect (Quantity_NOC_GREEN, Aspect_TOL_SOLID, 1.0)),
+ myIsoAspect (new Prs3d_LineAspect (Quantity_NOC_GRAY75, Aspect_TOL_SOLID, 0.5)),
+ myArrowAspect (new Prs3d_LineAspect (Quantity_NOC_PEACHPUFF, Aspect_TOL_SOLID, 1.0)),
+ myArrowsLength(0.02),
+ myArrowsSize (0.1),
+ myArrowsAngle (M_PI / 8.0),
+ myPlaneXLength(1.0),
+ myPlaneYLength(1.0),
+ myIsoDistance (0.5),
+ myDrawCenterArrow (Standard_False),
+ myDrawEdgesArrows (Standard_False),
+ myDrawEdges (Standard_True),
+ myDrawIso (Standard_False)
+{
+ //
}
-
-Quantity_Length Prs3d_PlaneAspect::ArrowsAngle() const
-{
- return myArrowsAngle;
-}
-
-
-
-
-
-
-
-
-
-
-
-