//Edges
if (edgeClass.isEnabled()) {
edgeClass.beforeDisplay(gl, glu);
for (Iterator<EdgeModel> itr = octree.getEdgeIterator(); itr.hasNext();) {
EdgeModel obj = itr.next();
if (obj.markTime != markTime) {
obj.display(gl, glu, vizModel);
obj.markTime = markTime;
}
}
edgeClass.afterDisplay(gl, glu);
}
markTime++;
//Arrows
if (edgeClass.isEnabled() && vizConfig.isShowArrows() && dataBridge.isDirected()) {
gl.glBegin(GL2.GL_TRIANGLES);
for (Iterator<EdgeModel> itr = octree.getEdgeIterator(); itr.hasNext();) {
EdgeModel obj = itr.next();
if (obj.getEdge().isDirected() && obj.markTime != markTime) {
obj.displayArrow(gl, glu, vizModel);
obj.markTime = markTime;
}
}
gl.glEnd();
}
//Nodes
if (nodeClass.isEnabled()) {
nodeClass.beforeDisplay(gl, glu);
for (Iterator<NodeModel> itr = octree.getNodeIterator(); itr.hasNext();) {
NodeModel obj = itr.next();
if (obj.markTime != markTime) {
obj.display(gl, glu, vizModel);
obj.markTime = markTime;
}
}
nodeClass.afterDisplay(gl, glu);
}
//Labels
if (vizModel.getTextModel().isShowNodeLabels() || vizModel.getTextModel().isShowEdgeLabels()) {
markTime++;
if (nodeClass.isEnabled() && vizModel.getTextModel().isShowNodeLabels()) {
textManager.getNodeRenderer().beginRendering();
textManager.defaultNodeColor();
if (textManager.isSelectedOnly()) {
for (Iterator<NodeModel> itr = octree.getNodeIterator(); itr.hasNext();) {
NodeModel obj = itr.next();
if (obj.markTime != markTime) {
if (obj.isSelected() && obj.isTextVisible()) {
textManager.getNodeRenderer().drawTextNode(obj);
}
obj.markTime = markTime;
}
}
} else {
for (Iterator<NodeModel> itr = octree.getNodeIterator(); itr.hasNext();) {
NodeModel obj = itr.next();
if (obj.markTime != markTime) {
if (obj.isTextVisible()) {
textManager.getNodeRenderer().drawTextNode(obj);
}
obj.markTime = markTime;
}
}