Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
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 construcor 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 construcor 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::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.
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.

Member Function Documentation

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().

GEOMImpl_PolylineDumper::Handle ( TColStd_HArray1OfExtendedString  )
private
GEOMImpl_PolylineDumper::Handle ( TColStd_HArray1OfByte  )
private
GEOMImpl_PolylineDumper::Handle ( TColStd_HArray1OfByte  )
private
GEOMImpl_PolylineDumper::Handle ( TColStd_HArray1OfReal  )
private
GEOMImpl_PolylineDumper::Handle ( GEOM_Object  )
private
void GEOMImpl_PolylineDumper::init ( )
protected
Standard_Boolean GEOMImpl_PolylineDumper::IsDone ( ) const
inline
Returns
Standard_True in case of success; Standard_False otherwise.

Member Data Documentation

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

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