Skip to content

Commit

Permalink
[ng] Update on camera imgui controls for Far Froward Region
Browse files Browse the repository at this point in the history
  • Loading branch information
DraTeots committed Sep 17, 2024
1 parent d29de26 commit 2b68734
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 18 deletions.
27 changes: 10 additions & 17 deletions firebird-ng/src/app/main-display/main-display.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,6 @@ export class MainDisplayComponent implements OnInit {


ngOnInit() {


let eventSource = this.settings.trajectoryEventSource.value;
let eventConfig = {eventFile: "https://firebird-eic.org/py8_all_dis-cc_beam-5x41_minq2-100_nevt-5.evt.json.zip", eventType: "zip"};
if( eventSource != "no-events" && !eventSource.endsWith("edm4hep.json")) {
Expand Down Expand Up @@ -430,7 +428,6 @@ export class MainDisplayComponent implements OnInit {
worker.postMessage(eventConfig.eventFile);
} else {
// Web workers are not supported in this environment.
// You should add a fallback so that your program still executes correctly.
}

// Create the event display configuration
Expand Down Expand Up @@ -502,17 +499,16 @@ export class MainDisplayComponent implements OnInit {
// // GUI
// const globalPlane = new THREE.Plane( new THREE.Vector3( - 1, 0, 0 ), 0.1 );
//
// const gui = new GUI({
// // container: document.getElementById("lil-gui-place") ?? undefined,
//
// });
//
// gui.title("Debug");
// gui.add(this, "produceRenderOrder");
// gui.add(this, "logGamepadStates").name( 'Log controls' );
// gui.add(this, "logCamera").name( 'Log camera' );
// gui.add(this, "updateProjectionMatrix").name( 'Try to screw up the camera =)' );
// gui.close();
const gui = new GUI({
container: document.getElementById("lil-gui-place") ?? undefined,
});

gui.title("Dev Controls");
gui.add(this, "produceRenderOrder");
gui.add(this, "logGamepadStates").name( 'Log controls' );
gui.add(this, "logCamera").name( 'Log camera' );
gui.add(this, "updateProjectionMatrix").name( 'Try to screw up the camera =)' );
gui.close();

// Set default clipping
this.eventDisplay.getUIManager().setClipping(true);
Expand Down Expand Up @@ -861,7 +857,4 @@ export class MainDisplayComponent implements OnInit {
console.log(`User selected event ${this.selectedEventKey} `);
this.buildEventDataFromJSON(event);
}



}
1 change: 0 additions & 1 deletion firebird-ng/src/app/three-event.processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ export class ThreeEventProcessor {
let startPoint = new Vector3();
let endPoint = new Vector3();


for(let obj of trackGroup.children) {

if(obj.type == "Line") {
Expand Down

0 comments on commit 2b68734

Please sign in to comment.