update includes because of file renaming

This commit is contained in:
fps 2013-09-06 12:40:13 +00:00
parent 285715917c
commit 86f1d92836
3 changed files with 26 additions and 15 deletions

View File

@ -45,10 +45,12 @@
#include "GEOM_ISubShape.hxx"
#include "GEOM_PythonDump.hxx"
#include "Xao.hxx"
#include "Geometry.hxx"
#include "Group.hxx"
#include "XaoUtils.hxx"
#include <XAO_Xao.hxx>
#include <XAO_Geometry.hxx>
#include <XAO_BrepGeometry.hxx>
#include <XAO_Group.hxx>
#include <XAO_Field.hxx>
#include <XAO_XaoUtils.hxx>
#include <GEOMImpl_XAODriver.hxx>
#include <GEOMImpl_IImportExportXAO.hxx>
@ -177,11 +179,16 @@ bool GEOMImpl_IImportExportOperations::ExportXAO(Handle(GEOM_Object) shape,
xaoObject->setAuthor(author);
XAO::Geometry* geometry = XAO::Geometry::createGeometry(XAO::BREP);
TopoDS_Shape topoShape = shape->GetValue();
exportFunction->SetValue(topoShape);
geometry->setShape(topoShape);
geometry->setName(shape->GetName());
if (geometry->getFormat() == XAO::BREP)
{
TopoDS_Shape topoShape = shape->GetValue();
exportFunction->SetValue(topoShape);
XAO::BrepGeometry* brep = (XAO::BrepGeometry*)geometry;
brep->setTopoDS_Shape(topoShape);
}
Handle(TColStd_HSequenceOfTransient) subObjects = m_shapesOperations->GetExistingSubObjects(shape, false);
int nbSubObjects = subObjects->Length();
@ -399,9 +406,13 @@ bool GEOMImpl_IImportExportOperations::ImportXAO(const char* fileName,
if (function->GetDriverGUID() != GEOMImpl_XAODriver::GetID()) return false;
// set the geometry
TopoDS_Shape geomShape = xaoGeometry->getShape();
function->SetValue(geomShape);
shape->SetName(xaoGeometry->getName().c_str());
if (xaoGeometry->getFormat() == XAO::BREP)
{
XAO::BrepGeometry* brep = (XAO::BrepGeometry*)xaoGeometry;
TopoDS_Shape geomShape = brep->getTopoDS_Shape();
function->SetValue(geomShape);
shape->SetName(xaoGeometry->getName().c_str());
}
// create sub shapes with names

View File

@ -26,7 +26,7 @@
#include "GEOM_Engine.hxx"
#include "GEOM_Object.hxx"
#include "Geometry.hxx"
#include <XAO_Geometry.hxx>
class GEOMImpl_IShapesOperations;
class GEOMImpl_IGroupOperations;

View File

@ -26,10 +26,10 @@
#include <TFunction_Logbook.hxx>
#include <StdFail_NotDone.hxx>
#include "Xao.hxx"
#include "Geometry.hxx"
#include "Group.hxx"
#include "XaoUtils.hxx"
#include "XAO_Xao.hxx"
#include "XAO_Geometry.hxx"
#include "XAO_Group.hxx"
#include "XAO_XaoUtils.hxx"
//@@ include required header files here @@//
//=======================================================================