0030686: Visualization, SelectMgr_ViewerSelector - sorting issues of transformation...
[occt.git] / src / IGESDraw / IGESDraw_ToolViewsVisible.hxx
CommitLineData
42cf5bc1 1// Created on: 1993-10-14
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_ToolViewsVisible_HeaderFile
18#define _IGESDraw_ToolViewsVisible_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_DefineAlloc.hxx>
22#include <Standard_Handle.hxx>
23
24#include <Standard_Integer.hxx>
25#include <Standard_Boolean.hxx>
26class Standard_DomainError;
27class IGESDraw_ViewsVisible;
28class IGESData_IGESReaderData;
29class IGESData_ParamReader;
30class IGESData_IGESWriter;
31class Interface_EntityIterator;
32class IGESData_DirChecker;
33class Interface_ShareTool;
34class Interface_Check;
35class Interface_CopyTool;
36class IGESData_IGESDumper;
37class Message_Messenger;
38
39
40//! Tool to work on a ViewsVisible. Called by various Modules
41//! (ReadWriteModule, GeneralModule, SpecificModule)
42class IGESDraw_ToolViewsVisible
43{
44public:
45
46 DEFINE_STANDARD_ALLOC
47
48
49 //! Returns a ToolViewsVisible, ready to work
50 Standard_EXPORT IGESDraw_ToolViewsVisible();
51
52 //! Reads own parameters from file. <PR> gives access to them,
53 //! <IR> detains parameter types and values
54 Standard_EXPORT void ReadOwnParams (const Handle(IGESDraw_ViewsVisible)& ent, const Handle(IGESData_IGESReaderData)& IR, IGESData_ParamReader& PR) const;
55
56 //! Writes own parameters to IGESWriter
57 Standard_EXPORT void WriteOwnParams (const Handle(IGESDraw_ViewsVisible)& ent, IGESData_IGESWriter& IW) const;
58
59 //! Lists the Entities shared by a ViewsVisible <ent>, from
60 //! its specific (own) parameters shared not implied (the Views)
61 Standard_EXPORT void OwnShared (const Handle(IGESDraw_ViewsVisible)& ent, Interface_EntityIterator& iter) const;
62
63 //! Lists the Entities shared by a ViewsVisible <ent>, from
64 //! its specific (own) implied parameters : the Displayed Entities
65 Standard_EXPORT void OwnImplied (const Handle(IGESDraw_ViewsVisible)& ent, Interface_EntityIterator& iter) const;
66
67 //! Returns specific DirChecker
68 Standard_EXPORT IGESData_DirChecker DirChecker (const Handle(IGESDraw_ViewsVisible)& ent) const;
69
70 //! Performs Specific Semantic Check
71 Standard_EXPORT void OwnCheck (const Handle(IGESDraw_ViewsVisible)& ent, const Interface_ShareTool& shares, Handle(Interface_Check)& ach) const;
72
73 //! Copies Specific Parameters shared not implied, i.e. all but
74 //! the Displayed Entities
75 Standard_EXPORT void OwnCopy (const Handle(IGESDraw_ViewsVisible)& entfrom, const Handle(IGESDraw_ViewsVisible)& entto, Interface_CopyTool& TC) const;
76
77 //! Copies Specific implied Parameters : the Displayed Entities
78 //! which have already been copied
79 Standard_EXPORT void OwnRenew (const Handle(IGESDraw_ViewsVisible)& entfrom, const Handle(IGESDraw_ViewsVisible)& entto, const Interface_CopyTool& TC) const;
80
81 //! Clears specific implied parameters, which cause looping
82 //! structures; required for deletion
83 Standard_EXPORT void OwnWhenDelete (const Handle(IGESDraw_ViewsVisible)& ent) const;
84
85 //! Dump of Specific Parameters
86 Standard_EXPORT void OwnDump (const Handle(IGESDraw_ViewsVisible)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
87
88 //! Sets automatic unambiguous Correction on a ViewsVisible
89 //! (all displayed entities must refer to <ent> in directory part,
90 //! else the list is cleared)
91 Standard_EXPORT Standard_Boolean OwnCorrect (const Handle(IGESDraw_ViewsVisible)& ent) const;
92
93
94
95
96protected:
97
98
99
100
101
102private:
103
104
105
106
107
108};
109
110
111
112
113
114
115
116#endif // _IGESDraw_ToolViewsVisible_HeaderFile