eu.mihosoft.vrl.v3d.Debug3dProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of JavaCad Show documentation
Show all versions of JavaCad Show documentation
A Java based CSG Cad library
package eu.mihosoft.vrl.v3d;
public class Debug3dProvider {
static IDebug3dProvider provider=null;
public static void addObject(Object o) {
if(isProviderAvailible())provider.addObject(o);
}
public static void clearScreen() {
if(isProviderAvailible())provider.clearScreen();
}
public static boolean isProviderAvailible() {
return provider!=null;
}
/**
* @param provider the provider to set
*/
public static void setProvider(IDebug3dProvider provider) {
Debug3dProvider.provider = provider;
}
}