Class: BVFactorySingleton

Grape2D. BVFactorySingleton

new BVFactorySingleton()

Holds the current bounding volume factory Grape2D.BVFactory
Source:

Members

<private, static> bvfactory :Grape2D.BVFactory

Factory being used.
Type:
Source:

Methods

<static> create(shape) → {Grape2D.Shape}

Sintax sugar for shape.createBV(Grape2D.BVFactorySingleton.getFactory()).
Parameters:
Name Type Description
shape Grape2D.Shape Shape to create a bounding volume
Source:
Returns:
Bounding volume.
Type
Grape2D.Shape

<static> getFactory() → {Grape2D.BVFactory}

Gets the factory
Source:
Returns:
A bounding volume factory instance.
Type
Grape2D.BVFactory

<static> getPlaceHolder() → {Grape2D.Shape}

Returns a place holder shape, of the type of the factory. It should only be used to avoid using null
Source:
Returns:
A shape has a place holder.
Type
Grape2D.Shape

<static> setFactory(factory)

Sets the factory
Parameters:
Name Type Description
factory Grape2D.BVFactory A bounding volume factory instance.
Source: