// Copyright 2004, FreeHEP.
package hep.graphics.heprep;


/**
 * HepRep Provider interface, allowing HepReps to be converted from other objects.
 *
 *
 * @author Mark Donszelmann
 * @version $Id: HepRepProvider.java,v 1.1 2004/07/26 20:30:42 duns Exp $
 */
public interface HepRepProvider {

    /**
     * Returns true if the object can be converted into an HepRep.
     */
    public boolean canConvert(Object object);

    /**
     * Returns a HepRep converted from object.
     * Throws HepRepConversionException if the conversion was not possible.
     */
    public HepRep convert(Object object) throws HepRepConversionException;  
} 

