V.Fine The STAR “Integrated" Geometry Browser. 12/6/2006 STAR BNL S&C STAR weekly meeting. V.Fine

Slides:



Advertisements
Similar presentations
Computer Basics Hit List of Items to Talk About ● What and when to use left, right, middle, double and triple click? What and when to use left, right,
Advertisements

Intro to Microsoft PowerPoint 2010 Public Computer Center, Moore Memorial Library, Greene, NY.
Adobe ImageReady 3 Foundation Level Course. What is ImageReady? ImageReady is a graphics program that offers several tools tailored to efficiently prepare.
Microsoft Word 2010 Lesson 1: Introduction to Word.
PowerPoint Practice Exercise
Microsoft Office Illustrated Inserting Illustrations, Objects, and Media Clips.
1 Introduction to the Visual Studio.NET IDE Powerpoint slides modified from Deitel & Deitel.
® Microsoft Office 2010 PowerPoint Tutorial 2: Adding and Modifying Text and Graphic Objects.
Lecture 6 Desktop Publishing III – Presentation Software Introduction to Information Technology With thanks to Dr. A. Zhang, Dr. Haipeng Guo, and Dr. David.
Vocabulary Crossword 2-1 Vocabulary Crossword Puzzle 2-1 Click mouse to advance slides. Press Esc key to close presentation.
Exploring the Basics of Windows XP
1 ADVANCED MICROSOFT POWERPOINT Lesson 7 – Working with Visual and Sound Objects Microsoft Office 2003: Advanced.
© 2011 Delmar, Cengage Learning Chapter 11 Adding Media and Interactivity with Flash and Spry.
CSE 380 – Computer Game Programming Introduction ITS 102 – 3D Modeling for Games Blender's User Interface.
Introduction to PowerPoint 2003 Learning And Research Technical Unit (LARTU)
Zubanov Alexei, 2006 Aug 07 – Sep 28 QtROOT package extension with Coin3D lib.
Office Tips and Tricks Lisa Short Technology Specialist Summer 2013.
Working with iMovie: The Basics Created by MJ. Importing Video Footage attach your camera to your computer and set to VTR mode move the camera button.
IE 411/511: Visual Programming for Industrial Applications
 Using Screenr, Jing, and QuickTime Plus some alternatives!
Microsoft Office Project One Creating and Editing a Word Document Textbook pages WD4-63.
IAuthor Digital Story Creation Creation iBooks on iOS Devices.
Main Navigation  Similar to Unity 3D  Unlike Unity it is a right handed coordinate system  Used to determines whether a positive rotation is clockwise.
XP New Perspectives on Windows XP Tutorial 1 Exploring the Basics.
Windows Movie Maker Getting Started. What is Windows Movie Maker? Windows Movie Maker allows a user to capture (from a video camera) or import audio,
Creating a Logo – Lesson 3 1 Creating a Logo Lesson 3.
University of Sunderland CDM105 Session 6 Dreamweaver and Multimedia Fireworks MX 2004 Creating Menus and Button images.
Copyright © 2010 Wolters Kluwer Health | Lippincott Williams & Wilkins Introduction to Windows Chapter 2.
Laboratory Exercise # 9 – Inserting Graphics to Documents Office Productivity Tools 1 Laboratory Exercise # 9 Inserting Graphics to Documents Objectives:
Basic Editing Lesson 2.
Animating GIF. What is it? Think of how a flip book works. Each page is a different picture and when flipped through quickly, it looks as though objects.
MS Power point Tutorial
Chapter 2 – Introduction to the Visual Studio .NET IDE
PowerPoint Practice Exercise 1 1.Save this file in your AV-TECH Folder as PowerPoint Practice Exercise 1. 2.Open this file in PowerPoint. 3.Edit each slide.
Powerpoint as a Multimedia Platform Matt Monjan Discovery Educator Network.
Copyright 2007, Paradigm Publishing Inc. EXCEL 2007 Chapter 8 BACKNEXTEND 8-1 LINKS TO OBJECTIVES Save a Workbook as a Web Page Save a Workbook as a Web.
Adobe Photoshop CS5 – Illustrated Unit A: Getting Started with Photoshop CS5.
The Object Model to Construct the Mixed “Open Inventor” / ROOT 3D scenes by Valeri Fine, Jerome Lauret STAR Brookhaven National Laboratory.
PREZI PRESENTATION The Prezi Interface. In this tutorial you will learn:  About the different parts of a Prezi interface: 1. The Prezi space/canvas 2.
A POWERPOINT PRESENTATION HOW TO CREATE…. WHY YOU USE POWERPOINT Well PowerPoint is a vary useful tool when you need to create a presentation. By using.
FIRST COURSE PowerPoint Tutorial 4 Integrating PowerPoint with Other Programs and Collaborating with Workgroups.
PowerPoint Flip book pages by Brad Smrstick. Pack-n-Go Customizing Multimedia Transitions Animations Slide Design Slide Layout Toolbars Getting Started.
WIRED for LCD Analysis Mark Dönszelmann Linear Collider Simulation Workshop May 19-22, 2003, SLAC.
Adobe Photoshop T.Ahlam Algharasi. Adobe Photoshop Adobe Photoshop is a seriously powerful photo and image edit ( treating and manipulation, compositing,
Action Buttons Link to another place in your presentation Link to web pages, videos, etc. Interactivity – gives the viewer a choice of what happens next,
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
Creating Web Pages with Links, Images, and Embedded Style Sheets
CIS 205—Web Design & Development Flash Chapter 3 Working with Symbols and Interactivity.
 2002 Prentice Hall. All rights reserved. 1 Introduction to the Visual Studio.NET IDE Outline Introduction Visual Studio.NET Integrated Development Environment.
XP New Perspectives on Creating Web Pages With Word Tutorial 1 1 Creating Web Pages With Word Tutorial 1.
PowerPoint Presentation
Adobe Premiere interface overview
Getting Started with Adobe Photoshop CS6
WORKSHOP 2 VALVETRAIN MECHANISM
WORKSHOP 2 VALVETRAIN MECHANISM
Chapter 2 – Introduction to the Visual Studio .NET IDE
QtRoot project status and examples of its use at STAR
Computer Modeling Fundamentals
MANIPULATING TEXT WITHIN AND BETWEEN DOCUMENTS
Computer Modeling Fundamentals
MS PowerPoint 2010 Week 2.
Animation Workshop Week 2
Chapter 2 Adding Web Pages, Links, and Images
Chapter 2 – Introduction to the Visual Studio .NET IDE
Review: Applying Computer Basics
AutoCAD Certified user: Inventor
Computer Modeling Fundamentals
PowerPoint Practice Exercise
Computer Modeling Fundamentals
Welcome To Microsoft Word 2016
Presentation transcript:

V.Fine The STAR “Integrated" Geometry Browser

12/6/2006 STAR BNL S&C STAR weekly meeting. V.Fine 2 How to start the Browser To start the STAR Geometry browser use 3 shell commands: > stardev > source $STAR/QtRoot/qtgl/qtcoin/setup.csh > root4star GeomBrowse.C The browser requires the Qt ROOT plug-in to be activated instead of the “X11” plug-in which is ROOT default. To change the default, one has to provide the custom “. rootrc ” file as follows:“. rootrc Gui.Backend qt Plugin.TGuiFactory qtgui TQtGUIFactory QtRootGui "TQtGUIFactory()" Gui.Factory qtgui Plugin.TVirtualPadEditor Ged TQtGedEditor QtGed "TQtGedEditor(TCanvas*)" Plugin.TVirtualViewer3D ogl TQtRootViewer3D RQTGL "TQtRootViewer3D(TVirtualPad*)" +Plugin.TVirtualViewer3D oiv TQtRootCoinViewer3D RQIVTGL "TQtRootCoinViewer3D(TVirtualPad*)" The GeomBrowse.C does check whether Qt plug-in has been activated and does create the proper “.rootrc” file for you if needed

12/6/2006 STAR BNL S&C STAR weekly meeting. V.Fine 3 Input 3D geometry formats 1.Zebra - *.fz 2.ROOT Macro - *.C 3.ROOT file - *.root 4."Open Inventor" - *.iv, can be used to combine"Open Inventor" the ROOT/ GEANT objects with non-ROOT 3D shapes 5.VRML - *.wrl, can be used to combine the ROOT/ GEANT objects with non-ROOT 3D shapesVRML In the other words, all versions of the STAR detector geometry description for "GEANT Simulation" and "Reconstruction" can be visualized.

12/6/2006 STAR BNL S&C STAR weekly meeting. V.Fine 4 The output formats: 1.All common pixmap formats: gif, png, jpg, tiff etc (can be used to create still and animated files) 2.Postscript and Encapsulated PostScript 3.VRML - Can be use to upload the 3D detector views see: This format is useful for the Web-based application since it doesn’t require any access to local GPUhttp://root.bnl.gov/QtRoot/svt.htmlGPU 4."iv" - "Open Inventor2" - can be used to browse the STAR geometry and to create the high quality pictures and animations with third party tools like "Maya" nnectivity nnectivity In the other words the STAR GEANT geometry can be exported to be seen with no GEANT / ROOT involved. 5.mpeg (movie) to create the primitive movie.mpeg

12/6/2006 STAR BNL S&C STAR weekly meeting. V.Fine 5 GUI It provides the 3 different views of the STAR geometry: 1.Tree-like (a'la "Internet Browser" ) For example: QGLviewer OpenGL viewQGLviewer For example: 3DViewers.png 3DViewers.png 3.Coin3D "Open Inventor" view.Coin3D For example: rs.png rs.png See:

12/6/2006 STAR BNL S&C STAR weekly meeting. V.Fine 6 The following controls can be used: hold down left mouse button and move mouse pointer to rotate the camera around it's current focal point (the focal point can be changed by doing a seek operation) hold middle mouse button to pan (or a CTRL-key plus left mouse button, or a SHIFT-key plus left mouse button) hold down left + middle mouse button to zoom / dolly, or CTRL + middle mouse button, or CTRL + SHIFT + the left mouse button click 's', then pick with the left mouse button to seek right mouse button opens the popup menu click 'ESC' key to switch to and from 'camera interaction' mode and 'scenegraph interaction' mode (see setViewing() documentation) 'q' quits the application Hitting any of the __, __ or __ buttons in the panel on the left side of the rendered canvas will "flip" the current camera direction around it's focal point to point along the selected axis (towards negative infinity). Hitting any of the "cutted" ___, __ or __ buttons in the panel will position the so-called clip plane at the center of the scene and orthogonal to the selected axis.clip plane The SoQtExaminerViewer provides a user decoration's button for toggling between orthographic or perspective camera view volumes and projection methods. This is the bottom-most click button on the right decoration border.SoQtExaminerViewer It also inherits the decoration buttons from the SoQtFullViewer on the right side:SoQtFullViewer the arrow for switching to "scenegraph interaction" mode, the hand for setting back to "camera interaction" mode, the house for "reset camera to home position", the blueprint house for "set new camera home position", the eye for "zoom camera out to view full scene" and the flashlight for setting "click to seek" mode. GUI

12/6/2006 STAR BNL S&C STAR weekly meeting. V.Fine 7 API 1. ROOT API. The browser uses the standard ROOT plug-in mechanism. This means to use it from within ROOT env to render the ROOT 3D class objects no special API is required. The TObject::Draw method will be served with the proper plug-in selected via ROOT resource file. 2. Open Inventor API: To control things programmatically and to render the non-ROOT class objects one can use “Open Inventor” API See: " for detailshttp://doc.coin3d.org/Coin/classes.html The ROOT and non-ROOT objects (including Coin3D animated objects) can be mixed within one 3D scene. 3. Qt API. The widget classes do provide the Qt signal / slot API. This allows using the GeomBrowser to create the custom Qt-based GUI, for example for the "Control Room" and to create the animated interactive computer models of the STAR detector useful for students, teaching and public presentations. The widget emits the Qt signal as soon as the user "picks" some object. The signal provides a C++ pointer to the original ROOT object.

12/6/2006 STAR BNL S&C STAR weekly meeting. V.Fine 8 STAR detector geometry “providers” St_geom_Maker – featured interactive “stand-alone” “GeomBrowse.C” ROOT macro to browse many types of the STAR detector geometry definitions from Zebra files, ROOT files, ROOT macros, “Open Inventor” iv files, VRML files. St_geant_Maker – TGeo, TVolume - “on fly” StiMaker – Sti geometry “on fly”

12/6/2006 STAR BNL S&C STAR weekly meeting. V.Fine 9 Interactive 3D Object Selection Coin3D plug-in is built around of the TQtCoinWidget class which is the Qt QWidget. (TQtCoinWidget is an equivalent of the TQtWidget class for the embedded TCanvas) The widget emits the Qt signal as soon as the user "picks" some object. The signal provides a C++ pointer to the original ROOT object that can be received by the user defined Qt slot to create the customized selected object manipulation. The viewer is equipped with two built-in slots to handle the selected object as well.

12/6/2006 STAR BNL S&C STAR weekly meeting. V.Fine 10 The Default Selection Slot To select object one has to Turn the Coin viewer “selection” tool on Use the left mouse button to point the image on the 3D view The browser should: 1.Highlight the selected shape 2.Popup the label with the text provided by the selected object TObject::GetObjectInfo method 3.Find the object in the left tree pane of the Geometry Browser and select the found object there 4.The object selected in the “tree” list should be painted on the right upper TCanvas widget

12/6/2006 STAR BNL S&C STAR weekly meeting. V.Fine 11 The “Menu” Selection Slot The Browser provides another “selection” slot. The SLOT is activated via the drop- down “Options” menu. To select the object user should follow the previous slide. The only difference, instead of the label the browser will pop the ROOT “Context menu”

12/6/2006 STAR BNL S&C STAR weekly meeting. V.Fine 12 The “GeomBrowse” Custom Selection The STAR Geometry Browser provides the custom selection slot in addition to the two built- in slots described above The SLOT is activated via the icon. To select the object user should follow the previous slides. The only difference, in addition to the built- in action, the application is to popup the text edit window with the source code of the selected volume highlighted.

12/6/2006 STAR BNL S&C STAR weekly meeting. V.Fine 13 Animation The example of the using the “Open Inventor” ROOT Plug-in and the external files to animate the 3D rendering can be found on the separate Web pageseparate Web page

12/6/2006 STAR BNL S&C STAR weekly meeting. V.Fine 14 Multiply 3D widgets / attributes The Qt-based ROOT 3D plug-ins do allow creating as many OpenGL widgets as your local video hardware can sustain and set the video attributes for each widget separately as the short animation on the right demonstrates:short animation

12/6/2006 STAR BNL S&C STAR weekly meeting. V.Fine 15 Mixed ROOT / Coin3D 3D scene It is simple to create the ROOT objects with the mixing ROOT 3D and Coin3D objects. For example the ROOT objects define the geometry (shapes, color and positions) and Coin3D define the animations, lighting, clipping, 3D labels etc. The mixed objects can be saved/ restored using the regular either ROOT (root file) or Coin3D (see slide 4) I/O The rootgeom_coin.C ROOT macro creates such object and renders it with non-Coin3D TCanvas and Coin3D ROOT plug-in. To see how it works you should set QtRoot/Coin env ( see slide 2) > stardev > source $STAR/QtRoot/qtgl/qtcoin/setup.csh > root.exe rootgeom_coin.C