Warning, file /include/opencascade/Draw_Box.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 _Draw_Box_HeaderFile
0018 #define _Draw_Box_HeaderFile
0019
0020 #include <Standard.hxx>
0021
0022 #include <Bnd_OBB.hxx>
0023 #include <Draw_Color.hxx>
0024 #include <Draw_Drawable3D.hxx>
0025 class Draw_Display;
0026
0027
0028 class Draw_Box;
0029 DEFINE_STANDARD_HANDLE(Draw_Box, Draw_Drawable3D)
0030
0031
0032 class Draw_Box : public Draw_Drawable3D
0033 {
0034 public:
0035
0036
0037 Standard_EXPORT Draw_Box(const Bnd_OBB& theOBB,
0038 const Draw_Color& theColor);
0039
0040
0041 Standard_EXPORT void DrawOn (Draw_Display& theDis) const Standard_OVERRIDE;
0042
0043 DEFINE_STANDARD_RTTIEXT(Draw_Box,Draw_Drawable3D)
0044
0045 protected:
0046
0047
0048 void ToWCS(const Standard_Real theX,
0049 const Standard_Real theY,
0050 const Standard_Real theZ,
0051 gp_Pnt& theP) const;
0052
0053
0054 void MoveX(const Standard_Real theShift, gp_Pnt& thePt) const;
0055
0056
0057 void MoveY(const Standard_Real theShift, gp_Pnt& thePt) const;
0058
0059
0060 void MoveZ(const Standard_Real theShift, gp_Pnt& thePt) const;
0061
0062 private:
0063
0064
0065 Bnd_OBB myOBB;
0066
0067
0068 Draw_Color myColor;
0069 };
0070
0071 #endif