|
|
|||
File indexing completed on 2026-10-02 09:11:54
0001 // Created on: 1998-09-07 0002 // Created by: Denis PASCAL 0003 // Copyright (c) 1998-1999 Matra Datavision 0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS 0005 // 0006 // This file is part of Open CASCADE Technology software library. 0007 // 0008 // This library is free software; you can redistribute it and/or modify it under 0009 // the terms of the GNU Lesser General Public License version 2.1 as published 0010 // by the Free Software Foundation, with special exception defined in the file 0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT 0012 // distribution for complete text of the license and disclaimer of any warranty. 0013 // 0014 // Alternatively, this file may be used under the terms of Open CASCADE 0015 // commercial license or contractual agreement. 0016 0017 #ifndef _DDataStd_DrawDriver_HeaderFile 0018 #define _DDataStd_DrawDriver_HeaderFile 0019 0020 #include <Standard.hxx> 0021 #include <Standard_Type.hxx> 0022 0023 #include <Standard_Transient.hxx> 0024 #include <Draw_ColorKind.hxx> 0025 class Draw_Drawable3D; 0026 class TDF_Label; 0027 class TDataXtd_Constraint; 0028 class TopoDS_Shape; 0029 0030 //! Root class of drivers to build draw variables from TDF_Label. 0031 //! Priority rule to display standard attributes is : 0032 //! * 1 Constraint 0033 //! * 2 Object 0034 //! * 3 Datum (Point,Axis,Plane) 0035 //! * 4 Geometry 0036 //! * 5 NamedShape 0037 class DDataStd_DrawDriver : public Standard_Transient 0038 { 0039 0040 public: 0041 //! access to the current DrawDriver 0042 //! ================================ 0043 Standard_EXPORT static void Set(const occ::handle<DDataStd_DrawDriver>& DD); 0044 0045 Standard_EXPORT static occ::handle<DDataStd_DrawDriver> Get(); 0046 0047 //! next method is called by DrawPresentation (may be redefined) 0048 //! ============================================================ 0049 Standard_EXPORT DDataStd_DrawDriver(); 0050 0051 //! reusable methods (may used when redefined <Drawable>) 0052 //! ===================================================== 0053 Standard_EXPORT virtual occ::handle<Draw_Drawable3D> Drawable(const TDF_Label& L) const; 0054 0055 Standard_EXPORT occ::handle<Draw_Drawable3D> DrawableConstraint( 0056 const occ::handle<TDataXtd_Constraint>& C) const; 0057 0058 Standard_EXPORT occ::handle<Draw_Drawable3D> DrawableShape(const TDF_Label& L, 0059 const Draw_ColorKind color, 0060 const bool current = true) const; 0061 0062 //! May be used for temporary display of a shape 0063 Standard_EXPORT static occ::handle<Draw_Drawable3D> DrawableShape(const TopoDS_Shape& s, 0064 const Draw_ColorKind color); 0065 0066 DEFINE_STANDARD_RTTIEXT(DDataStd_DrawDriver, Standard_Transient) 0067 }; 0068 0069 #endif // _DDataStd_DrawDriver_HeaderFile
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|