mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0028389: Data Exchange - Import of STEP Saved Views and Clipping Planes
- new STEP entities for Saved Views - import of STEP Saved Views - new XCAF tool for clipping planes - new draw commands - update test
This commit is contained in:
@@ -4,6 +4,8 @@ XmlMXCAFDoc_AreaDriver.cxx
|
||||
XmlMXCAFDoc_AreaDriver.hxx
|
||||
XmlMXCAFDoc_CentroidDriver.cxx
|
||||
XmlMXCAFDoc_CentroidDriver.hxx
|
||||
XmlMXCAFDoc_ClippingPlaneToolDriver.cxx
|
||||
XmlMXCAFDoc_ClippingPlaneToolDriver.hxx
|
||||
XmlMXCAFDoc_ColorDriver.cxx
|
||||
XmlMXCAFDoc_ColorDriver.hxx
|
||||
XmlMXCAFDoc_ColorToolDriver.cxx
|
||||
|
@@ -21,6 +21,7 @@
|
||||
#include <XmlMXCAFDoc.hxx>
|
||||
#include <XmlMXCAFDoc_AreaDriver.hxx>
|
||||
#include <XmlMXCAFDoc_CentroidDriver.hxx>
|
||||
#include <XmlMXCAFDoc_ClippingPlaneToolDriver.hxx>
|
||||
#include <XmlMXCAFDoc_ColorDriver.hxx>
|
||||
#include <XmlMXCAFDoc_ColorToolDriver.hxx>
|
||||
#include <XmlMXCAFDoc_DatumDriver.hxx>
|
||||
@@ -73,4 +74,5 @@ void XmlMXCAFDoc::AddDrivers (const Handle(XmlMDF_ADriverTable)& aDriverTable,
|
||||
aDriverTable -> AddDriver (new XmlMXCAFDoc_DimTolToolDriver (anMsgDrv));
|
||||
aDriverTable -> AddDriver (new XmlMXCAFDoc_MaterialToolDriver (anMsgDrv));
|
||||
aDriverTable -> AddDriver (new XmlMXCAFDoc_ViewToolDriver (anMsgDrv));
|
||||
aDriverTable -> AddDriver (new XmlMXCAFDoc_ClippingPlaneToolDriver(anMsgDrv));
|
||||
}
|
||||
|
@@ -31,6 +31,7 @@ class XmlMXCAFDoc_VolumeDriver;
|
||||
class XmlMXCAFDoc_DatumDriver;
|
||||
class XmlMXCAFDoc_DimTolDriver;
|
||||
class XmlMXCAFDoc_MaterialDriver;
|
||||
class XmlMXCAFDoc_ClippingPlaneToolDriver;
|
||||
class XmlMXCAFDoc_ColorToolDriver;
|
||||
class XmlMXCAFDoc_DocumentToolDriver;
|
||||
class XmlMXCAFDoc_LayerToolDriver;
|
||||
@@ -75,6 +76,7 @@ friend class XmlMXCAFDoc_VolumeDriver;
|
||||
friend class XmlMXCAFDoc_DatumDriver;
|
||||
friend class XmlMXCAFDoc_DimTolDriver;
|
||||
friend class XmlMXCAFDoc_MaterialDriver;
|
||||
friend class XmlMXCAFDoc_ClippingPlaneToolDriver;
|
||||
friend class XmlMXCAFDoc_ColorToolDriver;
|
||||
friend class XmlMXCAFDoc_DocumentToolDriver;
|
||||
friend class XmlMXCAFDoc_LayerToolDriver;
|
||||
|
64
src/XmlMXCAFDoc/XmlMXCAFDoc_ClippingPlaneToolDriver.cxx
Normal file
64
src/XmlMXCAFDoc/XmlMXCAFDoc_ClippingPlaneToolDriver.cxx
Normal file
@@ -0,0 +1,64 @@
|
||||
// Created on: 2016-11-30
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2016 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
|
||||
#include <CDM_MessageDriver.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
#include <TDF_Attribute.hxx>
|
||||
#include <XCAFDoc_ClippingPlaneTool.hxx>
|
||||
#include <XmlMXCAFDoc_ClippingPlaneToolDriver.hxx>
|
||||
#include <XmlObjMgt_Persistent.hxx>
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(XmlMXCAFDoc_ClippingPlaneToolDriver,XmlMDF_ADriver)
|
||||
|
||||
//=======================================================================
|
||||
//function :
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
XmlMXCAFDoc_ClippingPlaneToolDriver::XmlMXCAFDoc_ClippingPlaneToolDriver
|
||||
(const Handle(CDM_MessageDriver)& theMsgDriver)
|
||||
: XmlMDF_ADriver (theMsgDriver, "xcaf", "ClippingPlaneTool")
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function :
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
Handle(TDF_Attribute) XmlMXCAFDoc_ClippingPlaneToolDriver::NewEmpty() const
|
||||
{
|
||||
return new XCAFDoc_ClippingPlaneTool();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function :
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
Standard_Boolean XmlMXCAFDoc_ClippingPlaneToolDriver::Paste(const XmlObjMgt_Persistent& ,
|
||||
const Handle(TDF_Attribute)& ,
|
||||
XmlObjMgt_RRelocationTable& ) const
|
||||
{
|
||||
return Standard_True;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function :
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
void XmlMXCAFDoc_ClippingPlaneToolDriver::Paste(const Handle(TDF_Attribute)& ,
|
||||
XmlObjMgt_Persistent& ,
|
||||
XmlObjMgt_SRelocationTable& ) const
|
||||
{
|
||||
}
|
50
src/XmlMXCAFDoc/XmlMXCAFDoc_ClippingPlaneToolDriver.hxx
Normal file
50
src/XmlMXCAFDoc/XmlMXCAFDoc_ClippingPlaneToolDriver.hxx
Normal file
@@ -0,0 +1,50 @@
|
||||
// Created on: 2016-11-30
|
||||
// Created by: Irina KRYLOVA
|
||||
// Copyright (c) 2016 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef _XmlMXCAFDoc_ClippingPlaneToolDriver_HeaderFile
|
||||
#define _XmlMXCAFDoc_ClippingPlaneToolDriver_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <XmlMDF_ADriver.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <XmlObjMgt_RRelocationTable.hxx>
|
||||
#include <XmlObjMgt_SRelocationTable.hxx>
|
||||
class CDM_MessageDriver;
|
||||
class TDF_Attribute;
|
||||
class XmlObjMgt_Persistent;
|
||||
|
||||
|
||||
class XmlMXCAFDoc_ClippingPlaneToolDriver;
|
||||
DEFINE_STANDARD_HANDLE(XmlMXCAFDoc_ClippingPlaneToolDriver, XmlMDF_ADriver)
|
||||
|
||||
//! Attribute Driver.
|
||||
class XmlMXCAFDoc_ClippingPlaneToolDriver : public XmlMDF_ADriver
|
||||
{
|
||||
public:
|
||||
|
||||
Standard_EXPORT XmlMXCAFDoc_ClippingPlaneToolDriver(const Handle(CDM_MessageDriver)& theMsgDriver);
|
||||
|
||||
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
|
||||
|
||||
Standard_EXPORT virtual Standard_Boolean Paste(const XmlObjMgt_Persistent& theSource, const Handle(TDF_Attribute)& theTarget, XmlObjMgt_RRelocationTable& theRelocTable) const Standard_OVERRIDE;
|
||||
|
||||
Standard_EXPORT virtual void Paste(const Handle(TDF_Attribute)& theSource, XmlObjMgt_Persistent& theTarget, XmlObjMgt_SRelocationTable& theRelocTable) const Standard_OVERRIDE;
|
||||
|
||||
DEFINE_STANDARD_RTTIEXT(XmlMXCAFDoc_ClippingPlaneToolDriver, XmlMDF_ADriver)
|
||||
|
||||
};
|
||||
#endif // _XmlMXCAFDoc_ClippingPlaneToolDriver_HeaderFile
|
Reference in New Issue
Block a user