org.jcae.mesh.cad
Class CADShapeFactory

java.lang.Object
  extended by org.jcae.mesh.cad.CADShapeFactory

public abstract class CADShapeFactory
extends java.lang.Object

Class to provide factory methods


Constructor Summary
protected CADShapeFactory()
           
 
Method Summary
static CADShapeFactory getFactory()
          Return factory instance
protected abstract  CADShapeEnum getShapeEnumInstance(java.lang.String name)
           
abstract  CADGeomCurve2D newCurve2D(CADEdge E, CADFace F)
          Create a new CADGeomCurve2D
abstract  CADGeomCurve3D newCurve3D(CADEdge E)
          Create a new CADGeomCurve3D
abstract  CADExplorer newExplorer()
          Create a new CADExplorer
abstract  CADIterator newIterator()
          Create a new CADIterator
abstract  CADShape newShape(CADShape s1, CADShape s2, char op)
          Create a new CADShape with boolean operation on 2 sshapes.
abstract  CADShape newShape(java.lang.Object o)
          Create a new CADShape wrapping an object of the underlying implementation
abstract  CADShape newShape(java.lang.String fileName)
          Create a new CADShape by loading it from a file
protected abstract  java.util.Iterator<CADShapeEnum> newShapeEnumIterator(CADShapeEnum start, CADShapeEnum end)
           
abstract  CADWireExplorer newWireExplorer()
          Create a new CADWireExplorer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CADShapeFactory

protected CADShapeFactory()
Method Detail

getFactory

public static CADShapeFactory getFactory()
Return factory instance

Returns:
factory instance

newShape

public abstract CADShape newShape(java.lang.Object o)
Create a new CADShape wrapping an object of the underlying implementation

Parameters:
o - An object of the underlying implementation
Returns:
The created CADShape

newShape

public abstract CADShape newShape(CADShape s1,
                                  CADShape s2,
                                  char op)
Create a new CADShape with boolean operation on 2 sshapes.

Parameters:
s1 - First shape
s2 - Second shape
op - Boolean operator
Returns:
The created CADShape

newShape

public abstract CADShape newShape(java.lang.String fileName)
Create a new CADShape by loading it from a file

Parameters:
fileName - The file to read
Returns:
The created CADShape

newExplorer

public abstract CADExplorer newExplorer()
Create a new CADExplorer

Returns:
The created CADExplorer

newWireExplorer

public abstract CADWireExplorer newWireExplorer()
Create a new CADWireExplorer

Returns:
The created CADWireExplorer

getShapeEnumInstance

protected abstract CADShapeEnum getShapeEnumInstance(java.lang.String name)

newShapeEnumIterator

protected abstract java.util.Iterator<CADShapeEnum> newShapeEnumIterator(CADShapeEnum start,
                                                                         CADShapeEnum end)

newIterator

public abstract CADIterator newIterator()
Create a new CADIterator

Returns:
The created CADIterator

newCurve2D

public abstract CADGeomCurve2D newCurve2D(CADEdge E,
                                          CADFace F)
Create a new CADGeomCurve2D

Parameters:
E - The edge owning the curve
F - The face owning the curve
Returns:
The created CADGeomCurve2D

newCurve3D

public abstract CADGeomCurve3D newCurve3D(CADEdge E)
Create a new CADGeomCurve3D

Parameters:
E - The edge owning this curve
Returns:
The created CADGeomCurve3D