Version: 9.12.0
GEOMImpl_PolylineDumper.hxx
Go to the documentation of this file.
1 // Copyright (C) 2007-2023 CEA, EDF, OPEN CASCADE
2 //
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License, or (at your option) any later version.
10 //
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
15 //
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 //
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 
23 // File : GEOMImpl_PolylineDumper.h
24 // Author : Sergey KHROMOV
25 
26 
27 #ifndef _GEOMImpl_PolylineDumper_HXX_
28 #define _GEOMImpl_PolylineDumper_HXX_
29 
30 
31 #include "GEOM_GEOMImpl.hxx"
32 
33 #include <GEOM_Object.hxx>
34 
35 #include <TColStd_HArray1OfExtendedString.hxx>
36 #include <TColStd_HArray1OfByte.hxx>
37 #include <TColStd_HArray1OfReal.hxx>
38 
39 #include <list>
40 
41 
47 {
48 
49 public:
50 
67  (const std::list <std::list <double> > &theCoords,
68  const Handle(TColStd_HArray1OfExtendedString) &theNames,
69  const Handle(TColStd_HArray1OfByte) &theTypes,
70  const Handle(TColStd_HArray1OfByte) &theCloseds,
71  const Handle(TColStd_HArray1OfReal) &thePlnCoords);
72 
88  (const std::list <std::list <double> > &theCoords,
89  const Handle(TColStd_HArray1OfExtendedString) &theNames,
90  const Handle(TColStd_HArray1OfByte) &theTypes,
91  const Handle(TColStd_HArray1OfByte) &theCloseds,
92  const Handle(GEOM_Object) &theWorkingPlane);
93 
100  Standard_Boolean IsDone() const
101  { return myIsDone; }
102 
109  Standard_Boolean Dump(const Handle(GEOM_Object) &theObject);
110 
111 protected:
112 
117  void init();
118 
119 private:
120 
121  const std::list <std::list <double> > &myCoords;
122  Handle(TColStd_HArray1OfExtendedString) myNames;
123  Handle(TColStd_HArray1OfByte) myTypes;
124  Handle(TColStd_HArray1OfByte) myCloseds;
125  Handle(TColStd_HArray1OfReal) myPlnCoords;
126  Handle(GEOM_Object) myWorkingPlane;
127  Standard_Boolean myIsDone;
128  TCollection_ExtendedString myDescr;
129 
130 };
131 
132 #endif
Handle(TColStd_HSequenceOfTransient) AdvancedEngine_IOperations
Create a T-shape object with specified caracteristics for the main and the incident pipes (radius,...
Definition: AdvancedEngine_IOperations.cxx:1907
#define GEOMIMPL_EXPORT
Definition: GEOM_GEOMImpl.hxx:37
This is a helper class to form a dump of a polyline 2d curves creation algorithm.
Definition: GEOMImpl_PolylineDumper.hxx:47
const std::list< std::list< double > > & myCoords
Definition: GEOMImpl_PolylineDumper.hxx:121
Handle(TColStd_HArray1OfByte) myTypes
Handle(GEOM_Object) myWorkingPlane
Handle(TColStd_HArray1OfReal) myPlnCoords
Handle(TColStd_HArray1OfExtendedString) myNames
Standard_Boolean myIsDone
Definition: GEOMImpl_PolylineDumper.hxx:127
Handle(TColStd_HArray1OfByte) myCloseds
Standard_Boolean IsDone() const
This method returns Standard_True if the dump description is created successfully.
Definition: GEOMImpl_PolylineDumper.hxx:100
TCollection_ExtendedString myDescr
Definition: GEOMImpl_PolylineDumper.hxx:128