1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0022649: Export to EMF not available

This commit is contained in:
KGV
2011-10-21 17:22:11 +00:00
committed by bugmaster
parent aa17232c48
commit 5cedc27f81
8 changed files with 226 additions and 143 deletions

View File

@@ -630,7 +630,8 @@ is
EF_TEX,
EF_PDF,
EF_SVG,
EF_PGF
EF_PGF,
EF_EMF
end ExportFormat;

View File

@@ -1321,17 +1321,23 @@ is
-- or insufficient system memory available.
---Warning: Works only under Windows.
Export( me: mutable;
FileName : CString from Standard;
Format : ExportFormat from Graphic3d;
SortType : SortType from Graphic3d;
W, H : Integer from Standard;
View : CView from Graphic3d;
Under, Over : CLayer2d from Aspect;
Precision : Real from Standard = 0.005;
ProgressBarFunc : Address from Standard = NULL;
ProgressObject : Address from Standard = NULL ) is deferred;
theFileName : CString from Standard;
theFormat : ExportFormat from Graphic3d;
theSortType : SortType from Graphic3d;
theWidth, theHeight : Integer from Standard;
theView : CView from Graphic3d;
theLayerUnder : CLayer2d from Aspect;
theLayerOver : CLayer2d from Aspect;
thePrecision : Real from Standard = 0.005;
theProgressBarFunc : Address from Standard = NULL;
theProgressObject : Address from Standard = NULL )
returns Boolean from Standard
is deferred;
---Purpose:
-- Export scene into the one of the Vector graphics formats (SVG, PS, PDF...).
-- In contrast to Bitmaps, Vector graphics is scalable (so you may got quality benefits on printing to laser printer).
-- Notice however that results may differ a lot and do not contain some elements.
RemovePrimitiveArray( me : mutable;
theCGroup : CGroup from Graphic3d;

View File

@@ -9,16 +9,17 @@
/************************************************************************/
void Graphic3d_GraphicDriver::Export( const Standard_CString FileName,
const Graphic3d_ExportFormat Format,
const Graphic3d_SortType aSortType,
const Standard_Integer W,
const Standard_Integer H,
const Graphic3d_CView& View,
const Aspect_CLayer2d& Under,
const Aspect_CLayer2d& Over,
const Standard_Real Precision,
const Standard_Address ProgressBarFunc,
const Standard_Address ProgressObject )
Standard_Boolean Graphic3d_GraphicDriver::Export (const Standard_CString theFileName,
const Graphic3d_ExportFormat theFormat,
const Graphic3d_SortType theSortType,
const Standard_Integer theW,
const Standard_Integer theH,
const Graphic3d_CView& theView,
const Aspect_CLayer2d& theLayerUnder,
const Aspect_CLayer2d& theLayerOver,
const Standard_Real thePrecision,
const Standard_Address theProgressBarFunc,
const Standard_Address theProgressObject)
{
return Standard_False;
}