Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
XAOPlugin_IOperations Class Reference

#include <XAOPlugin_IOperations.hxx>

Inheritance diagram for XAOPlugin_IOperations:
Inheritance graph

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_EngineGetEngine ()
 
Standard_EXPORT GEOM_SolverGetSolver ()
 
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_IGroupOperationsmyGroupOperations
 
GEOMImpl_IFieldOperationsmyFieldOperations
 
GEOMImpl_IShapesOperationsmyShapesOperations
 

Constructor & Destructor Documentation

XAOPlugin_IOperations::XAOPlugin_IOperations ( GEOM_Engine theEngine,
int  theDocID 
)

Constructor

XAOPlugin_IOperations::~XAOPlugin_IOperations ( )

Destructor

Member Function Documentation

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

Parameters
fileNameThe name of the file to import
shapeThe imported shape
subShapesThe list of imported groups
groupsThe list of imported groups
fieldsThe list of imported fields
Returns
boolean indicating if import was succeful.

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


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