Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:03:25

0001 // Copyright (c) 2013-2014 OPEN CASCADE SAS
0002 //
0003 // This file is part of Open CASCADE Technology software library.
0004 //
0005 // This library is free software; you can redistribute it and/or modify it under
0006 // the terms of the GNU Lesser General Public License version 2.1 as published
0007 // by the Free Software Foundation, with special exception defined in the file
0008 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0009 // distribution for complete text of the license and disclaimer of any warranty.
0010 //
0011 // Alternatively, this file may be used under the terms of Open CASCADE
0012 // commercial license or contractual agreement.
0013 
0014 #ifndef DsgPrs_DatumPrs_HeaderFile
0015 #define DsgPrs_DatumPrs_HeaderFile
0016 
0017 #include <Prs3d_Drawer.hxx>
0018 #include <Prs3d_Presentation.hxx>
0019 #include <Prs3d_Root.hxx>
0020 
0021 //! A framework for displaying an XYZ trihedron.
0022 class DsgPrs_DatumPrs : public Prs3d_Root
0023 {
0024 public:
0025 
0026   DEFINE_STANDARD_ALLOC
0027 
0028   //! Draw XYZ axes at specified location with attributes defined by the attribute manager theDrawer:
0029   //! - Prs3d_DatumAspect defines arrow, line and length trihedron axis parameters,
0030   //! - Prs3d_TextAspect defines displayed text.
0031   //! The thihedron origin and axis directions are defined by theDatum coordinate system.
0032   //! DsgPrs_XYZAxisPresentation framework is used to create graphical primitives for each axis.
0033   //! Axes are marked with "X", "Y", "Z" text.
0034   //! @param thePresentation [out] the modified presentation
0035   //! @param theDatum [in] the source of trihedron position
0036   //! @param theDrawer [in] the provider of display attributes
0037   Standard_EXPORT static void Add (const Handle(Prs3d_Presentation)& thePresentation, const gp_Ax2& theDatum,
0038                                    const Handle(Prs3d_Drawer)& theDrawer);
0039 
0040 };
0041 #endif