X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FVrmlAPI%2FVrmlAPI_Writer.cdl;h=51238704b3351b05e3a363cc4f9780b1cf40cef6;hp=d6f6508d73d0080c1ab3807bca88f2a5ee6e3896;hb=f5fa6b335c42a62583a22e769bd24842d206de6d;hpb=7fd59977dfb3a75f75670474b59dfc0f3f5f90ba diff --git a/src/VrmlAPI/VrmlAPI_Writer.cdl b/src/VrmlAPI/VrmlAPI_Writer.cdl old mode 100755 new mode 100644 index d6f6508d73..51238704b3 --- a/src/VrmlAPI/VrmlAPI_Writer.cdl +++ b/src/VrmlAPI/VrmlAPI_Writer.cdl @@ -1,9 +1,17 @@ --- File: VrmlAPI_Writer.cdl --- Created: Tue Jun 20 18:00:44 2000 --- Author: Sergey MOZOKHIN --- ----Copyright: Matra Datavision 2000 - +-- Created on: 2000-06-20 +-- Created by: Sergey MOZOKHIN +-- Copyright (c) 2000-2014 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. class Writer from VrmlAPI @@ -73,9 +81,19 @@ is GetFreeBoundsMaterial(me) returns Material from Vrml; GetUnfreeBoundsMaterial(me) returns Material from Vrml; - Write(me; aShape : Shape from TopoDS; aFile : CString from Standard); + Write(me; aShape : Shape from TopoDS; aFile : CString from Standard; aVersion: Integer = 2); ---Purpose: Converts the shape aShape to - -- VRML format and writes it to the file identified by aFile. + -- VRML format of the passed version and writes it to the file identified by aFile. + + write_v1(me; aShape: Shape from TopoDS; aFileName: CString from Standard) + is protected; + ---Purpose: Converts the shape aShape to VRML format of version 1.0 and writes it + -- to the file identified by aFileName using default parameters. + + write_v2(me; aShape: Shape from TopoDS; aFileName: CString from Standard) + is protected; + ---Purpose: Converts the shape aShape to VRML format of version 2.0 and writes it + -- to the file identified by aFileName using default parameters. fields myRepresentation : RepresentationOfShape from VrmlAPI;