00001 package org.hfbk.vis.visnode; 00002 00003 import java.awt.AWTEvent; 00004 import java.util.List; 00005 00006 import org.dronus.graph.Node; 00007 import org.lwjgl.opengl.GL11; 00008 import org.lwjgl.util.vector.Vector3f; 00009 00017 public class VisMolecule extends VisNodeDraggable { 00018 00019 public VisMolecule(Node n, Vector3f position) { 00020 super(n, position); 00021 radius=0; 00022 } 00023 00024 00025 public void render(List<AWTEvent> events) { 00026 GL11.glDisable(GL11.GL_TEXTURE_2D); 00027 super.render(events); 00028 } 00029 00030 00031 void renderSelf() { 00032 if(radius==0){ 00033 center(); 00034 w=h=radius=getExtends(); 00035 } 00036 } 00037 00038 }