0031687: Draw Harness, ViewerTest - extend command vrenderparams with option updating...
[occt.git] / src / QADNaming / QADNaming.hxx
CommitLineData
42cf5bc1 1// Created on: 1997-01-08
2// Created by: VAUTHIER Jean-Claude
3// Copyright (c) 1997-1999 Matra Datavision
4// Copyright (c) 1999-2014 OPEN CASCADE SAS
5//
6// This file is part of Open CASCADE Technology software library.
7//
8// This library is free software; you can redistribute it and/or modify it under
9// the terms of the GNU Lesser General Public License version 2.1 as published
10// by the Free Software Foundation, with special exception defined in the file
11// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12// distribution for complete text of the license and disclaimer of any warranty.
13//
14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
16
17#ifndef _QADNaming_HeaderFile
18#define _QADNaming_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_DefineAlloc.hxx>
22#include <Standard_Handle.hxx>
23
24#include <Standard_CString.hxx>
25#include <TopTools_ListOfShape.hxx>
26#include <Standard_Integer.hxx>
27#include <Standard_Boolean.hxx>
28#include <Standard_Address.hxx>
29#include <Draw_Interpretor.hxx>
30class TopoDS_Shape;
31class TDF_Data;
32class TCollection_AsciiString;
33class TDF_Label;
34
35
36
37class QADNaming
38{
39public:
40
41 DEFINE_STANDARD_ALLOC
42
43
44 Standard_EXPORT static TopoDS_Shape CurrentShape (const Standard_CString ShapeEntry, const Handle(TDF_Data)& Data);
45
46 Standard_EXPORT static void GetShape (const Standard_CString ShapeEntry, const Handle(TDF_Data)& Data, TopTools_ListOfShape& Shapes);
47
9fd2d2c3 48 //! theStatus = 0 Not found,
49 //! theStatus = 1 One shape,
50 //! theStatus = 2 More than one shape.
51 Standard_EXPORT static TCollection_AsciiString GetEntry (const TopoDS_Shape& Shape, const Handle(TDF_Data)& Data, Standard_Integer& theStatus);
42cf5bc1 52
53 //! returns label by first two arguments (df and entry string)
54 Standard_EXPORT static Standard_Boolean Entry (const Standard_Address theArguments, TDF_Label& theLabel);
55
56 Standard_EXPORT static void AllCommands (Draw_Interpretor& DI);
57
58 //! commands relatives to NamedShape
59 Standard_EXPORT static void BasicCommands (Draw_Interpretor& DI);
60
61 //! loading NamedShape to the Data Framework
62 Standard_EXPORT static void BuilderCommands (Draw_Interpretor& DI);
63
64 //! loading NamedShape to the Data Framework
65 Standard_EXPORT static void IteratorsCommands (Draw_Interpretor& DI);
66
67 Standard_EXPORT static void ToolsCommands (Draw_Interpretor& DI);
68
69 //! commands relatives to Naming
70 Standard_EXPORT static void SelectionCommands (Draw_Interpretor& DI);
71
72
73
74
75protected:
76
77
78
79
80
81private:
82
83
84
85
86
87};
88
89
90
91
92
93
94
95#endif // _QADNaming_HeaderFile