0031687: Draw Harness, ViewerTest - extend command vrenderparams with option updating...
[occt.git] / src / IGESDraw / IGESDraw_GeneralModule.hxx
CommitLineData
42cf5bc1 1// Created on: 1993-05-10
2// Created by: Christian CAILLET
3// Copyright (c) 1993-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 _IGESDraw_GeneralModule_HeaderFile
18#define _IGESDraw_GeneralModule_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_Type.hxx>
22
23#include <IGESData_GeneralModule.hxx>
24#include <Standard_Integer.hxx>
25#include <Standard_Boolean.hxx>
26class IGESData_IGESEntity;
27class Interface_EntityIterator;
28class IGESData_DirChecker;
29class Interface_ShareTool;
30class Interface_Check;
31class Standard_Transient;
32class Interface_CopyTool;
33
34
35class IGESDraw_GeneralModule;
36DEFINE_STANDARD_HANDLE(IGESDraw_GeneralModule, IGESData_GeneralModule)
37
38//! Definition of General Services for IGESDraw (specific part)
39//! This Services comprise : Shared & Implied Lists, Copy, Check
40class IGESDraw_GeneralModule : public IGESData_GeneralModule
41{
42
43public:
44
45
46 //! Creates a GeneralModule from IGESDraw and puts it into GeneralLib
47 Standard_EXPORT IGESDraw_GeneralModule();
48
49 //! Lists the Entities shared by a given IGESEntity <ent>, from
50 //! its specific parameters : specific for each type
79104795 51 Standard_EXPORT void OwnSharedCase (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, Interface_EntityIterator& iter) const Standard_OVERRIDE;
42cf5bc1 52
53 //! Specific list of Entities implied by an IGESEntity <ent> (in
54 //! addition to Associativities). Redefined for ViewsVisible ...
55 Standard_EXPORT virtual void OwnImpliedCase (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, Interface_EntityIterator& iter) const Standard_OVERRIDE;
56
57 //! Returns a DirChecker, specific for each type of Entity
58 //! (identified by its Case Number) : this DirChecker defines
59 //! constraints which must be respected by the DirectoryPart
79104795 60 Standard_EXPORT IGESData_DirChecker DirChecker (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent) const Standard_OVERRIDE;
42cf5bc1 61
62 //! Performs Specific Semantic Check for each type of Entity
79104795 63 Standard_EXPORT void OwnCheckCase (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const Standard_OVERRIDE;
42cf5bc1 64
65 //! Specific creation of a new void entity
79104795 66 Standard_EXPORT Standard_Boolean NewVoid (const Standard_Integer CN, Handle(Standard_Transient)& entto) const Standard_OVERRIDE;
42cf5bc1 67
68 //! Copies parameters which are specific of each Type of Entity
79104795 69 Standard_EXPORT void OwnCopyCase (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& entfrom, const Handle(IGESData_IGESEntity)& entto, Interface_CopyTool& TC) const Standard_OVERRIDE;
42cf5bc1 70
71 //! Renews parameters which are specific of each Type of Entity :
72 //! redefined for ViewsVisible ... (takes only the implied ref.s
73 //! which have also been copied)
74 Standard_EXPORT virtual void OwnRenewCase (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& entfrom, const Handle(IGESData_IGESEntity)& entto, const Interface_CopyTool& TC) const Standard_OVERRIDE;
75
76 //! Clears parameters with can cause looping structures :
77 //! redefined for ViewsVisible ... (clears the implied ref.s)
78 Standard_EXPORT virtual void OwnDeleteCase (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent) const Standard_OVERRIDE;
79
80 //! Returns a category number which characterizes an entity
81 //! Planar : Auxiliary
82 //! Subfigures and ConnectPoint : Structure
83 //! others : Drawing
84 Standard_EXPORT virtual Standard_Integer CategoryNumber (const Standard_Integer CN, const Handle(Standard_Transient)& ent, const Interface_ShareTool& shares) const Standard_OVERRIDE;
85
86
87
88
92efcf78 89 DEFINE_STANDARD_RTTIEXT(IGESDraw_GeneralModule,IGESData_GeneralModule)
42cf5bc1 90
91protected:
92
93
94
95
96private:
97
98
99
100
101};
102
103
104
105
106
107
108
109#endif // _IGESDraw_GeneralModule_HeaderFile