#include <XAOPlugin_IOperations.hxx>

Public Member Functions | |
| XAOPlugin_IOperations (GEOM_Engine *, int) | |
| ~XAOPlugin_IOperations () | |
| bool | ExportXAO (Handle(GEOM_Object) shape, std::list< Handle(GEOM_Object)> groupList, std::list< Handle(GEOM_Field)> fieldList, const char *author, const char *fileName, const char *shapeFileName) | 
| bool | ImportXAO (const char *fileName, Handle(GEOM_Object)&shape, Handle(TColStd_HSequenceOfTransient)&subShapes, Handle(TColStd_HSequenceOfTransient)&groups, Handle(TColStd_HSequenceOfTransient)&fields) | 
  Public Member Functions inherited from GEOMImpl_IBaseIEOperations | |
| Standard_EXPORT | GEOMImpl_IBaseIEOperations (GEOM_Engine *theEngine, int theDocID) | 
| Standard_EXPORT | ~GEOMImpl_IBaseIEOperations () | 
  Public Member Functions inherited from GEOM_IOperations | |
| Standard_EXPORT | GEOM_IOperations (GEOM_Engine *theEngine, int theDocID) | 
| Standard_EXPORT | ~GEOM_IOperations () | 
| Standard_EXPORT void | StartOperation () | 
| Standard_EXPORT void | FinishOperation () | 
| Standard_EXPORT void | AbortOperation () | 
| Standard_EXPORT bool | IsDone () | 
| Standard_EXPORT void | SetNotDone () | 
| Standard_EXPORT void | SetErrorCode (const TCollection_AsciiString &theErrorCode) | 
| Standard_EXPORT char * | GetErrorCode () | 
| Standard_EXPORT GEOM_Engine * | GetEngine () | 
| Standard_EXPORT GEOM_Solver * | GetSolver () | 
| Standard_EXPORT int | GetDocID () | 
Private Member Functions | |
| void | importSubShapes (XAO::Geometry *xaoGeometry, Handle(GEOM_Function) function, int shapeType, int dim, Handle(TColStd_HSequenceOfTransient)&subshapeList) | 
| void | exportSubshapes (const Handle(GEOM_Object)&shape, XAO::BrepGeometry *geometry) | 
| void | exportFields (std::list< Handle(GEOM_Field)> fieldList, XAO::Xao *xaoObject, XAO::BrepGeometry *geometry) | 
| bool | exportGroups (std::list< Handle(GEOM_Object)> groupList, XAO::Xao *xaoObject, XAO::BrepGeometry *geometry) | 
Additional Inherited Members | |
  Protected Member Functions inherited from GEOMImpl_IBaseIEOperations | |
| Standard_EXPORT void | MakeMaterialGroups (const Handle(GEOM_Object)&theObject, const Handle(TColStd_HSequenceOfTransient)&theSeq) | 
| Handle (GEOM_Object) MakeGroup(const Handle(GEOM_Object)&theObject | |
  Protected Attributes inherited from GEOMImpl_IBaseIEOperations | |
| const TCollection_ExtendedString & | theName | 
| const  TCollection_ExtendedString const NCollection_List < TopoDS_Shape > &  | theShapes | 
| GEOMImpl_IGroupOperations * | myGroupOperations | 
| GEOMImpl_IFieldOperations * | myFieldOperations | 
| GEOMImpl_IShapesOperations * | myShapesOperations | 
| XAOPlugin_IOperations::XAOPlugin_IOperations | ( | GEOM_Engine * | theEngine, | 
| int | theDocID | ||
| ) | 
Constructor
| XAOPlugin_IOperations::~XAOPlugin_IOperations | ( | ) | 
Destructor
      
  | 
  private | 
      
  | 
  private | 
References XAO::Group::add(), XAO::Xao::addGroup(), GEOM_GROUP, XAO::Geometry::getEdgeIndexByReference(), XAO::Geometry::getFaceIndexByReference(), XAO::Geometry::getSolidIndexByReference(), GEOMImpl_IGroupOperations::GetType(), XAO::Geometry::getVertexIndexByReference(), GEOMImpl_IBaseIEOperations::Handle(), XAO::XaoUtils::intToString(), GEOMImpl_IBaseIEOperations::myGroupOperations, GEOM_IOperations::SetErrorCode(), and shapeEnumToDimension().
      
  | 
  private | 
References XAO::BrepGeometry::changeEdgeName(), XAO::BrepGeometry::changeFaceName(), XAO::BrepGeometry::changeSolidName(), XAO::BrepGeometry::changeVertexName(), GEOM_GROUP, GEOMImpl_IShapesOperations::GetSubShapeIndex(), GEOMImpl_IBaseIEOperations::Handle(), GEOMImpl_IBaseIEOperations::myShapesOperations, and GEOMImpl_IShapesOperations::SubShapes.
| bool XAOPlugin_IOperations::ExportXAO | ( | Handle(GEOM_Object) | shape, | 
| std::list< Handle(GEOM_Object)> | groupList, | ||
| std::list< Handle(GEOM_Field)> | fieldList, | ||
| const char * | author, | ||
| const char * | fileName, | ||
| const char * | shapeFileName | ||
| ) | 
Export a shape to XAO format
| shape | The shape to export | 
| groups | The list of groups to export | 
| fields | The list of fields to export | 
| fileName | The name of the file to exported | 
References XAO::BREP, XAO::Geometry::createGeometry(), EXPORT_SHAPE, exportFields(), exportGroups(), exportSubshapes(), XAO::Xao::exportXAO(), GEOM_IMPORT, GEOM_IOperations::GetDocID(), GEOM_IOperations::GetEngine(), XAOPlugin_Driver::GetID(), GEOM_BaseObject::GetName(), GEOM_Object::GetValue(), GEOMImpl_IBaseIEOperations::Handle(), KO, OK, XAO::Xao::setAuthor(), GEOM_IOperations::SetErrorCode(), XAO::Xao::setGeometry(), XAO::Geometry::setName(), and XAO::BrepGeometry::setTopoDS_Shape().
      
  | 
  private | 
References XAO::Geometry::begin(), XAO::Geometry::end(), GEOM_SUBSHAPE, GEOM_IOperations::GetDocID(), GEOM_IOperations::GetEngine(), XAO::GeometricElement::getName(), XAO::GeometricElement::getReference(), GEOM_BaseObject::GetSubShapeID(), GEOMImpl_IBaseIEOperations::Handle(), XAO::GeometricElement::hasName(), GEOM_ISubShape::SetIndices(), GEOM_ISubShape::SetMainShape(), and XAO::XaoUtils::stringToInt().
| bool XAOPlugin_IOperations::ImportXAO | ( | const char * | fileName, | 
| Handle(GEOM_Object)& | shape, | ||
| Handle(TColStd_HSequenceOfTransient)& | subShapes, | ||
| Handle(TColStd_HSequenceOfTransient)& | groups, | ||
| Handle(TColStd_HSequenceOfTransient)& | fields | ||
| ) | 
Import a shape from XAO format
| fileName | The name of the file to import | 
| shape | The imported shape | 
| subShapes | The list of imported groups | 
| groups | The list of imported groups | 
| fields | The list of imported fields | 
References XAO::Group::begin(), XAO::BOOLEAN, XAO::BREP, XAO::Group::count(), XAO::Field::countComponents(), XAO::Xao::countFields(), XAO::Xao::countGroups(), XAO::Field::countSteps(), XAO::Step::countValues(), XAO::DOUBLE, XAO::EDGE, XAO::Group::end(), XAO::FACE, GEOM_EDGE, GEOM_FACE, GEOM_GROUP, GEOM_IMPORT, GEOM_POINT, GEOM_SOLID, XAO::Field::getComponentName(), XAO::Group::getDimension(), XAO::Field::getDimension(), GEOM_IOperations::GetDocID(), XAO::Geometry::getElementReference(), GEOM_IOperations::GetEngine(), XAO::Xao::getField(), XAOPlugin_Driver::GetFileNameTag(), XAO::Geometry::getFormat(), XAO::Xao::getGeometry(), XAO::Xao::getGroup(), getGroupDimension(), XAOPlugin_Driver::GetID(), XAO::Group::getName(), XAO::Geometry::getName(), XAO::Field::getName(), XAO::Step::getStamp(), XAO::Step::getStep(), XAO::StringField::getStep(), XAO::DoubleField::getStep(), XAO::IntegerField::getStep(), XAO::BooleanField::getStep(), XAO::BrepGeometry::getTopoDS_Shape(), XAO::Field::getType(), XAO::DoubleStep::getValues(), XAO::StringStep::getValues(), XAO::BooleanStep::getValues(), XAO::IntegerStep::getValues(), GEOMImpl_IBaseIEOperations::Handle(), IMPORT_SHAPE, importSubShapes(), XAO::Xao::importXAO(), XAO::INTEGER, it(), KO, GEOMImpl_IBaseIEOperations::myFieldOperations, NULL, OK, GEOM_IOperations::SetErrorCode(), GEOM_BaseObject::SetName(), XAO::SOLID, XAO::STRING, XAO::XaoUtils::stringToInt(), XAO::VERTEX, and XAO::XAO_Exception::what().