Please review any and all PUBLIC repositories, groups, and associated files. These allow anyone on the Internet to access without authentication. Repository and group owners are responsible for their content and permission settings. Go to your project(s), click on Settings > General and expand the "Visibility, project features, permissions" to change this setting.

Commit 0baa4ed4 authored by Norbraten, Terry's avatar Norbraten, Terry
Browse files

[Terry N.] functional operator too difficult to read

parent 62121252
......@@ -64,65 +64,34 @@ public class DefaultBrepManager implements NodeManager {
readyFace.add(n);
}
public DefaultBrepManager() {
instance=this;
errorReporter = DefaultErrorReporter.getDefaultReporter();
errorReporter.messageReport("Instantiate BREP Manager");
}
public DefaultBrepManager() {
instance=this;
errorReporter = DefaultErrorReporter.getDefaultReporter();
errorReporter.messageReport("Instantiate BREP Manager");
}
@Override
public void addManagedNode(VRMLNodeType node) {
}
public void addManagedNode(VRMLNodeType node) {
}
/**
* Run the pre-event modeling for this frame now. This is a blocking call
* and does not return until the event model is complete for this frame.
* The time should be system clock time, not VRML time.
*
* @param time The timestamp of this frame to evaluate
*/
@Override
public void executePreEventModel(long time) {
}
/**
* Run the post-event modeling for this frame now. This is a blocking call
* and does not return until the event model is complete for this frame.
* The time should be system clock time, not VRML time.
*
* @param time The timestamp of this frame to evaluate
*/
@Override
public void executePostEventModel(long time) {
//goes over list of faces notified to be rendered
List<VRMLNodeType> l=(List<VRMLNodeType>) ((ArrayList<VRMLNodeType>)readyFace).clone();
l.stream().map(d -> (NodeUpdateListener) d).map(f -> {
for(Object d : l)//d is a face
{
NodeUpdateListener f = (NodeUpdateListener) d;
cadRenderer.updateGeometry(f);
return f;
}).forEachOrdered(f -> {
readyFace.remove(f);
}); //d is a face
}
readyFace.remove((VRMLNodeType)f);
}
}
/**
* Get the list of component names that this manager would normally manage.
* The component definition is assumed to be the same across all versions
* of the specifications that the browser supports. The level of the
* component is assumed to be the lowest level supported (ie if the given
* level fails, then levels above this cannot be supported, but those below
* can still be).
* <p>
* Mostly this is used for when initialization fails and we wish to disable
* support for loading of nodes in that component.
*
* @return The collection of components that this manager supports
*/
@Override
public ComponentInfo[] getSupportedComponents() {
return new ComponentInfo[] {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment