mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-04-15 21:21:22 +05:00
update includes because of file renaming
This commit is contained in:
parent
285715917c
commit
86f1d92836
@ -45,10 +45,12 @@
|
|||||||
#include "GEOM_ISubShape.hxx"
|
#include "GEOM_ISubShape.hxx"
|
||||||
#include "GEOM_PythonDump.hxx"
|
#include "GEOM_PythonDump.hxx"
|
||||||
|
|
||||||
#include "Xao.hxx"
|
#include <XAO_Xao.hxx>
|
||||||
#include "Geometry.hxx"
|
#include <XAO_Geometry.hxx>
|
||||||
#include "Group.hxx"
|
#include <XAO_BrepGeometry.hxx>
|
||||||
#include "XaoUtils.hxx"
|
#include <XAO_Group.hxx>
|
||||||
|
#include <XAO_Field.hxx>
|
||||||
|
#include <XAO_XaoUtils.hxx>
|
||||||
|
|
||||||
#include <GEOMImpl_XAODriver.hxx>
|
#include <GEOMImpl_XAODriver.hxx>
|
||||||
#include <GEOMImpl_IImportExportXAO.hxx>
|
#include <GEOMImpl_IImportExportXAO.hxx>
|
||||||
@ -177,10 +179,15 @@ bool GEOMImpl_IImportExportOperations::ExportXAO(Handle(GEOM_Object) shape,
|
|||||||
xaoObject->setAuthor(author);
|
xaoObject->setAuthor(author);
|
||||||
|
|
||||||
XAO::Geometry* geometry = XAO::Geometry::createGeometry(XAO::BREP);
|
XAO::Geometry* geometry = XAO::Geometry::createGeometry(XAO::BREP);
|
||||||
|
geometry->setName(shape->GetName());
|
||||||
|
|
||||||
|
if (geometry->getFormat() == XAO::BREP)
|
||||||
|
{
|
||||||
TopoDS_Shape topoShape = shape->GetValue();
|
TopoDS_Shape topoShape = shape->GetValue();
|
||||||
exportFunction->SetValue(topoShape);
|
exportFunction->SetValue(topoShape);
|
||||||
geometry->setShape(topoShape);
|
XAO::BrepGeometry* brep = (XAO::BrepGeometry*)geometry;
|
||||||
geometry->setName(shape->GetName());
|
brep->setTopoDS_Shape(topoShape);
|
||||||
|
}
|
||||||
|
|
||||||
Handle(TColStd_HSequenceOfTransient) subObjects = m_shapesOperations->GetExistingSubObjects(shape, false);
|
Handle(TColStd_HSequenceOfTransient) subObjects = m_shapesOperations->GetExistingSubObjects(shape, false);
|
||||||
int nbSubObjects = subObjects->Length();
|
int nbSubObjects = subObjects->Length();
|
||||||
@ -399,9 +406,13 @@ bool GEOMImpl_IImportExportOperations::ImportXAO(const char* fileName,
|
|||||||
if (function->GetDriverGUID() != GEOMImpl_XAODriver::GetID()) return false;
|
if (function->GetDriverGUID() != GEOMImpl_XAODriver::GetID()) return false;
|
||||||
|
|
||||||
// set the geometry
|
// set the geometry
|
||||||
TopoDS_Shape geomShape = xaoGeometry->getShape();
|
if (xaoGeometry->getFormat() == XAO::BREP)
|
||||||
|
{
|
||||||
|
XAO::BrepGeometry* brep = (XAO::BrepGeometry*)xaoGeometry;
|
||||||
|
TopoDS_Shape geomShape = brep->getTopoDS_Shape();
|
||||||
function->SetValue(geomShape);
|
function->SetValue(geomShape);
|
||||||
shape->SetName(xaoGeometry->getName().c_str());
|
shape->SetName(xaoGeometry->getName().c_str());
|
||||||
|
}
|
||||||
|
|
||||||
// create sub shapes with names
|
// create sub shapes with names
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
#include "GEOM_Engine.hxx"
|
#include "GEOM_Engine.hxx"
|
||||||
#include "GEOM_Object.hxx"
|
#include "GEOM_Object.hxx"
|
||||||
|
|
||||||
#include "Geometry.hxx"
|
#include <XAO_Geometry.hxx>
|
||||||
|
|
||||||
class GEOMImpl_IShapesOperations;
|
class GEOMImpl_IShapesOperations;
|
||||||
class GEOMImpl_IGroupOperations;
|
class GEOMImpl_IGroupOperations;
|
||||||
|
@ -26,10 +26,10 @@
|
|||||||
#include <TFunction_Logbook.hxx>
|
#include <TFunction_Logbook.hxx>
|
||||||
#include <StdFail_NotDone.hxx>
|
#include <StdFail_NotDone.hxx>
|
||||||
|
|
||||||
#include "Xao.hxx"
|
#include "XAO_Xao.hxx"
|
||||||
#include "Geometry.hxx"
|
#include "XAO_Geometry.hxx"
|
||||||
#include "Group.hxx"
|
#include "XAO_Group.hxx"
|
||||||
#include "XaoUtils.hxx"
|
#include "XAO_XaoUtils.hxx"
|
||||||
//@@ include required header files here @@//
|
//@@ include required header files here @@//
|
||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
|
Loading…
x
Reference in New Issue
Block a user