Version: 9.12.0
GEOMImpl_PolylineDumper Class Reference

This is a helper class to form a dump of a polyline 2d curves creation algorithm.

#include <GEOMImpl_PolylineDumper.hxx>

Public Member Functions

 GEOMImpl_PolylineDumper (const std::list< std::list< double > > &theCoords, const Handle(TColStd_HArray1OfExtendedString) &theNames, const Handle(TColStd_HArray1OfByte) &theTypes, const Handle(TColStd_HArray1OfByte) &theCloseds, const Handle(TColStd_HArray1OfReal) &thePlnCoords)
 This constructor initializes the object with 2D polyline creation parameters. More...
 
 GEOMImpl_PolylineDumper (const std::list< std::list< double > > &theCoords, const Handle(TColStd_HArray1OfExtendedString) &theNames, const Handle(TColStd_HArray1OfByte) &theTypes, const Handle(TColStd_HArray1OfByte) &theCloseds, const Handle(GEOM_Object) &theWorkingPlane)
 This constructor initializes the object with 2D polyline creation parameters. More...
 
Standard_Boolean IsDone () const
 This method returns Standard_True if the dump description is created successfully. More...
 
Standard_Boolean Dump (const Handle(GEOM_Object) &theObject)
 This method performs dump of the polyline. More...
 

Protected Member Functions

void init ()
 This method generates the description required for python dump. More...
 

Private Member Functions

 Handle (TColStd_HArray1OfExtendedString) myNames
 
 Handle (TColStd_HArray1OfByte) myTypes
 
 Handle (TColStd_HArray1OfByte) myCloseds
 
 Handle (TColStd_HArray1OfReal) myPlnCoords
 
 Handle (GEOM_Object) myWorkingPlane
 

Private Attributes

const std::list< std::list< double > > & myCoords
 
Standard_Boolean myIsDone
 
TCollection_ExtendedString myDescr
 

Constructor & Destructor Documentation

◆ GEOMImpl_PolylineDumper() [1/2]

GEOMImpl_PolylineDumper::GEOMImpl_PolylineDumper ( const std::list< std::list< double > > &  theCoords,
const Handle(TColStd_HArray1OfExtendedString) &  theNames,
const Handle(TColStd_HArray1OfByte) &  theTypes,
const Handle(TColStd_HArray1OfByte) &  theCloseds,
const Handle(TColStd_HArray1OfReal) &  thePlnCoords 
)
Parameters
theCoordsthe list of coordinates list. theCoordsList[0] is the coordinates list of the first section. theCoordsList[1] is for the second section etc.
theNamesthe list of names. The order corresponds to theCoords.
theTypesthe list of curve types. The order corresponds to theCoords.
theClosedsthe list of Closed flags. The order corresponds to theCoords.
thePlnCoords9 double values, defining origin, OZ and OX directions of the working plane.

References init().

◆ GEOMImpl_PolylineDumper() [2/2]

GEOMImpl_PolylineDumper::GEOMImpl_PolylineDumper ( const std::list< std::list< double > > &  theCoords,
const Handle(TColStd_HArray1OfExtendedString) &  theNames,
const Handle(TColStd_HArray1OfByte) &  theTypes,
const Handle(TColStd_HArray1OfByte) &  theCloseds,
const Handle(GEOM_Object) &  theWorkingPlane 
)
Parameters
theCoordsthe list of coordinates list. theCoordsList[0] is the coordinates list of the first section. theCoordsList[1] is for the second section etc.
theNamesthe list of names. The order corresponds to theCoords.
theTypesthe list of curve types. The order corresponds to theCoords.
theClosedsthe list of Closed flags. The order corresponds to theCoords.
theWorkingPlaneplanar Face or LCS(Marker) of the working plane.

References init().

Member Function Documentation

◆ Dump()

Standard_Boolean GEOMImpl_PolylineDumper::Dump ( const Handle(GEOM_Object) &  theObject)
Parameters
theObjectthe newly created object.
Returns
Standard_True in case of success; Standard_False otherwise.

References Handle(), myDescr, and myIsDone.

◆ Handle() [1/5]

GEOMImpl_PolylineDumper::Handle ( GEOM_Object  )
private

◆ Handle() [2/5]

GEOMImpl_PolylineDumper::Handle ( TColStd_HArray1OfByte  )
private

◆ Handle() [3/5]

GEOMImpl_PolylineDumper::Handle ( TColStd_HArray1OfByte  )
private

◆ Handle() [4/5]

GEOMImpl_PolylineDumper::Handle ( TColStd_HArray1OfExtendedString  )
private

◆ Handle() [5/5]

GEOMImpl_PolylineDumper::Handle ( TColStd_HArray1OfReal  )
private

◆ init()

void GEOMImpl_PolylineDumper::init ( )
protected

◆ IsDone()

Standard_Boolean GEOMImpl_PolylineDumper::IsDone ( ) const
inline
Returns
Standard_True in case of success; Standard_False otherwise.

Member Data Documentation

◆ myCoords

const std::list<std::list <double> >& GEOMImpl_PolylineDumper::myCoords
private

◆ myDescr

TCollection_ExtendedString GEOMImpl_PolylineDumper::myDescr
private

◆ myIsDone

Standard_Boolean GEOMImpl_PolylineDumper::myIsDone
private

The documentation for this class was generated from the following files: