Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-17 09:21:48

0001 // Created on: 1997-01-08
0002 // Created by: VAUTHIER Jean-Claude
0003 // Copyright (c) 1997-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 _QADNaming_HeaderFile
0018 #define _QADNaming_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 #include <Standard_CString.hxx>
0025 #include <TopoDS_Shape.hxx>
0026 #include <NCollection_List.hxx>
0027 #include <Standard_Integer.hxx>
0028 #include <Draw_Interpretor.hxx>
0029 class TopoDS_Shape;
0030 class TDF_Data;
0031 class TCollection_AsciiString;
0032 class TDF_Label;
0033 
0034 class QADNaming
0035 {
0036 public:
0037   DEFINE_STANDARD_ALLOC
0038 
0039   Standard_EXPORT static TopoDS_Shape CurrentShape(const char* const            ShapeEntry,
0040                                                    const occ::handle<TDF_Data>& Data);
0041 
0042   Standard_EXPORT static void GetShape(const char* const               ShapeEntry,
0043                                        const occ::handle<TDF_Data>&    Data,
0044                                        NCollection_List<TopoDS_Shape>& Shapes);
0045 
0046   //! theStatus = 0  Not found,
0047   //! theStatus = 1  One shape,
0048   //! theStatus = 2  More than one shape.
0049   Standard_EXPORT static TCollection_AsciiString GetEntry(const TopoDS_Shape&          Shape,
0050                                                           const occ::handle<TDF_Data>& Data,
0051                                                           int&                         theStatus);
0052 
0053   //! returns label by first two arguments (df and entry string)
0054   Standard_EXPORT static bool Entry(void* const theArguments, TDF_Label& theLabel);
0055 
0056   Standard_EXPORT static void AllCommands(Draw_Interpretor& DI);
0057 
0058   //! commands relatives to NamedShape
0059   Standard_EXPORT static void BasicCommands(Draw_Interpretor& DI);
0060 
0061   //! loading NamedShape to the Data Framework
0062   Standard_EXPORT static void BuilderCommands(Draw_Interpretor& DI);
0063 
0064   //! loading NamedShape to the Data Framework
0065   Standard_EXPORT static void IteratorsCommands(Draw_Interpretor& DI);
0066 
0067   Standard_EXPORT static void ToolsCommands(Draw_Interpretor& DI);
0068 
0069   //! commands relatives to Naming
0070   Standard_EXPORT static void SelectionCommands(Draw_Interpretor& DI);
0071 };
0072 
0073 #endif // _QADNaming_HeaderFile