org.jcae.opencascade.jni
Class BRepTools

java.lang.Object
  extended by org.jcae.opencascade.jni.BRepTools

public class BRepTools
extends java.lang.Object

Provides various utilities for BRep.


Field Summary
protected  boolean swigCMemOwn
           
 
Constructor Summary
protected BRepTools(long cPtr, boolean cMemoryOwn)
           
 
Method Summary
protected  void finalize()
           
protected static long getCPtr(BRepTools obj)
           
static TopoDS_Shape read(java.lang.String file, BRep_Builder builder)
          Read a shape from a file.
static boolean read(TopoDS_Shape shape, java.nio.channels.ReadableByteChannel input, BRep_Builder builder)
           
static boolean read(TopoDS_Shape shape, java.lang.String file, BRep_Builder builder)
          Reads a shape from a file.
static boolean write(TopoDS_Shape shape, java.lang.String file)
          Write a shape to a file.
static void write(TopoDS_Shape Sh, java.nio.channels.WritableByteChannel S)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

swigCMemOwn

protected boolean swigCMemOwn
Constructor Detail

BRepTools

protected BRepTools(long cPtr,
                    boolean cMemoryOwn)
Method Detail

getCPtr

protected static long getCPtr(BRepTools obj)

finalize

protected void finalize()
Overrides:
finalize in class java.lang.Object

read

public static TopoDS_Shape read(java.lang.String file,
                                BRep_Builder builder)
Read a shape from a file. This is an helper method. It do not exists in Opencascade.

Parameters:
file - the file to read
builder - the builder which will be used to create the shape (i.e. new BRep_Builder()).

read

public static boolean read(TopoDS_Shape shape,
                           java.lang.String file,
                           BRep_Builder builder)
Reads a shape from a file.

Parameters:
shape - an empty shape created with new TopoDS_Shape()
builder - used to build the shape (i.e. new BRep_Builder()).
Returns:
false on IO or file format errors.

write

public static boolean write(TopoDS_Shape shape,
                            java.lang.String file)
Write a shape to a file.

Parameters:
shape - the shape to write
file - the file where to write the shape
Returns:
false on IO error.

write

public static void write(TopoDS_Shape Sh,
                         java.nio.channels.WritableByteChannel S)

read

public static boolean read(TopoDS_Shape shape,
                           java.nio.channels.ReadableByteChannel input,
                           BRep_Builder builder)