1 // Copyright (c) 2013-2014 OPEN CASCADE SAS
3 // This file is part of Open CASCADE Technology software library.
5 // This library is free software; you can redistribute it and/or modify it under
6 // the terms of the GNU Lesser General Public License version 2.1 as published
7 // by the Free Software Foundation, with special exception defined in the file
8 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
9 // distribution for complete text of the license and disclaimer of any warranty.
11 // Alternatively, this file may be used under the terms of Open CASCADE
12 // commercial license or contractual agreement.
14 #ifndef DsgPrs_DatumPrs_HeaderFile
15 #define DsgPrs_DatumPrs_HeaderFile
17 #include <Prs3d_Drawer.hxx>
18 #include <Prs3d_Presentation.hxx>
19 #include <Prs3d_Root.hxx>
21 //! A framework for displaying an XYZ trihedron.
22 class DsgPrs_DatumPrs : public Prs3d_Root
28 //! Draw XYZ axes at specified location with attributes defined by the attribute manager theDrawer:
29 //! - Prs3d_DatumAspect defines arrow, line and length trihedron axis parameters,
30 //! - Prs3d_TextAspect defines displayed text.
31 //! The thihedron origin and axis directions are defined by theDatum coordinate system.
32 //! DsgPrs_XYZAxisPresentation framework is used to create graphical primitives for each axis.
33 //! Axes are marked with "X", "Y", "Z" text.
34 //! @param thePresentation [out] the modified presentation
35 //! @param theDatum [in] the source of trihedron position
36 //! @param theDrawer [in] the provider of display attributes
37 Standard_EXPORT static void Add (const Handle(Prs3d_Presentation)& thePresentation, const gp_Ax2& theDatum,
38 const Handle(Prs3d_Drawer)& theDrawer);