bb88f3ff |
1 | // Copyright (c) 2013-2014 OPEN CASCADE SAS |
2 | // |
3 | // This file is part of Open CASCADE Technology software library. |
4 | // |
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. |
10 | // |
11 | // Alternatively, this file may be used under the terms of Open CASCADE |
12 | // commercial license or contractual agreement. |
13 | |
5bd54bef |
14 | #ifndef DsgPrs_DatumPrs_HeaderFile |
15 | #define DsgPrs_DatumPrs_HeaderFile |
bb88f3ff |
16 | |
bb88f3ff |
17 | #include <Prs3d_Drawer.hxx> |
18 | #include <Prs3d_Presentation.hxx> |
19 | #include <Prs3d_Root.hxx> |
20 | |
21 | //! A framework for displaying an XYZ trihedron. |
22 | class DsgPrs_DatumPrs : public Prs3d_Root |
23 | { |
24 | public: |
25 | |
26 | DEFINE_STANDARD_ALLOC |
27 | |
28 | //! Draw XYZ axes at specified location with attributes defined by the attribute manager theDrawer: |
54adc5e9 |
29 | //! - Prs3d_DatumAspect defines arrow, line and length trihedron axis parameters, |
bb88f3ff |
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); |
39 | |
40 | }; |
41 | #endif |