RE: OpenGL and TPolyline3D

From: Diego Faso <faso_at_to.infn.it>
Date: Wed, 20 Sep 2006 18:59:31 +0200 (MET DST)


Hi, the required result (concerning the displayed lines) is something similar to what you obtain with the "qtgl ROOT" plugin. I have already used the QT-layer for other applications, but the code I'm working on in this moment is a part of a more complex code (in which the QT-layer is not used). Moreover I have already developed the complete event-display by using the "ogl" plugin (I also use the "built-in" style/cameras/light settings), then I think I can not switch to QT-layer so easily in this case.
Would it be possible to obtained the required result with open-GL? Thank you.
Cheers,
Diego

On Wed, 20 Sep 2006, Fine, Valeri wrote:

> Hello Diego,
>
> Please, find the screen shot done with your macro and "qtgl ROOT" plugin
> http://root.bnl.gov/picture/qtgl_geom_example_lines.png
>
> Another picture was done with the standard "ogl" plugin from the ROOT
> distribution.
> http://root.bnl.gov/picture/x11gl_geom_example_lines.png
>
> In both cases I use the macro you have provided "as is"
>
> Does the first one shows what you want ?
>
> Best Regards
> Valeri Fine
> ---------------
> Brookhaven National Laboratory
> Upton, NY 11973, USA
> Phone: +1 631 344 7806
> Fax: +1 631 344 4206
> E-mail: fine_at_bnl.gov
>
> > -----Original Message-----
> > From: owner-roottalk_at_pcroot.cern.ch
> [mailto:owner-roottalk_at_pcroot.cern.ch]
> > On Behalf Of Diego Faso
> > Sent: Wednesday, September 20, 2006 7:18 AM
> > To: roottalk_at_pcroot.cern.ch
> > Subject: [ROOT] OpenGL and TPolyline3D
> >
> > Hello, I'm using the root-GL-viewer and I have some questions related
> to
> > the use of TPolyLine3D.
> > I can draw a TPolyLine3D, but the following methods seem to have no
> effect
> > on in the GL-representation:
> > line->SetLineStyle(...);
> > line->SetLineWidth(...);
> >
> > Is it possible to set these attributes?
> >
> > The second problem is the following:
> > I need to draw a TPolyLine3D inside a volume, and I need the line to
> be
> > visible from outside of the container volume.
> > I attach the "geom_example_lines.C" as example: I'm drawing several
> lines,
> > and I need to display all of them, while in my example all lines
> inside
> > the "tube" volume are hidden.
> >
> > I thank you in advance for your help.
> > Cheers
> > Diego
> >
> >
> > -----------------
> > My machine setup:
> > Gentoo Base System version 1.12.5
> > kernel: 2.6.17-gentoo-r8
> > root version: 5.13/02
> > gcc version: 3.4.6
> > ----------------
>
Received on Wed Sep 20 2006 - 18:59:48 MEST

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:32:01 MET