Skip to content
Snippets Groups Projects
  1. Jun 24, 2008
  2. Jun 20, 2008
  3. Jun 19, 2008
  4. Jun 17, 2008
    • Fons Rademakers's avatar
      From Axel: · b799c29b
      Fons Rademakers authored
      strangely enough Wndows does not support %p, use good old 0x%lx.
      
      
      git-svn-id: http://root.cern.ch/svn/root/trunk@24317 27541ba8-7e3a-0410-8455-c3a389f83636
      b799c29b
    • Matevz Tadel's avatar
      TGLViewerBase · 4e02d32d
      Matevz Tadel authored
      =============
      
      Break render into two pieces to give sub-classes more control over
      rendering procedure.
      
      
      TGLViewer
      =========
      
      Render axes/guides before selected/highlighte objects so that
      depth-test can be honoured (if requested).
      
      
      git-svn-id: http://root.cern.ch/svn/root/trunk@24316 27541ba8-7e3a-0410-8455-c3a389f83636
      4e02d32d
    • Matevz Tadel's avatar
      TEveManager · 612abf38
      Matevz Tadel authored
      ===========
      
      Keep projections in an array and reuse them when changing
      projection-types. This allows parameters set by users to be kept for
      each projection type separately (only center is controlled by manager).
      
      
      TEveProjections
      ===============
      
      Introduce pre-scaling of projected objects: users can specify
      different scaling factors for regions of projected coordinate space.
      Fish-eye distortion is applied afterwards.
      
      Demonstrated by the new tutorial 'projection_test_prescale.C'.
      
      
      git-svn-id: http://root.cern.ch/svn/root/trunk@24314 27541ba8-7e3a-0410-8455-c3a389f83636
      612abf38
    • Matevz Tadel's avatar
      From Alja: · fa6b2562
      Matevz Tadel authored
      Bug fix. Position of cone previously defined by cone base now with cone apex.
      
      
      git-svn-id: http://root.cern.ch/svn/root/trunk@24313 27541ba8-7e3a-0410-8455-c3a389f83636
      fa6b2562
    • Fons Rademakers's avatar
      From Axel: · 1df27269
      Fons Rademakers authored
      using %p as format flag instead of 0x%x allows pointers to be passed
      on 64bits, too.
      
      
      git-svn-id: http://root.cern.ch/svn/root/trunk@24300 27541ba8-7e3a-0410-8455-c3a389f83636
      1df27269
  5. Jun 16, 2008
    • Matevz Tadel's avatar
      From Alja. · 52be0f88
      Matevz Tadel authored
      TEveCalo2DGL, TEveCalo3DGL:
      Assert palette in DirectDraw().
      
      TEveCaloData:
      Add DataChanged() to notify all referenced calo-viz objects to refresh
      cell id cache, update eta, phi limits and palette.
      
      TEveCaloVizEditor:
      Set eta, phi limits for TEveGValuators in SetModel().
      
      
      git-svn-id: http://root.cern.ch/svn/root/trunk@24291 27541ba8-7e3a-0410-8455-c3a389f83636
      52be0f88
  6. Jun 13, 2008
  7. Jun 12, 2008
    • Matevz Tadel's avatar
      From Alja. · 22e31483
      Matevz Tadel authored
      TEveCaloData:
      Inherit from TEveRefBackPtr. Add function InvalidateUsersCache() to
      make correct update on all calo references when changing threshold and
      
      CaloClasses:
      Rename ResetCache() to DeleteCache(). Add get/set methods for
      slice-color and slice-threshold.
      
      
      git-svn-id: http://root.cern.ch/svn/root/trunk@24257 27541ba8-7e3a-0410-8455-c3a389f83636
      22e31483
  8. Jun 11, 2008
    • Matevz Tadel's avatar
      Remove debug printout. · 1e8e98b9
      Matevz Tadel authored
      git-svn-id: http://root.cern.ch/svn/root/trunk@24216 27541ba8-7e3a-0410-8455-c3a389f83636
      1e8e98b9
    • Matevz Tadel's avatar
      TEveBoxset · 086c6827
      Matevz Tadel authored
      ----------
      
      Rename function for adding cones to AddCone() and reorder the
      parameters to a more logical order.
      
      
      git-svn-id: http://root.cern.ch/svn/root/trunk@24215 27541ba8-7e3a-0410-8455-c3a389f83636
      086c6827
    • Matevz Tadel's avatar
      TGLObject and subclasses · e6f231b0
      Matevz Tadel authored
      -----------------------------------------
      
      Introduce new member 'Bool_t TGLObject::fMultiColor' that specifies
      whether the class uses multiple colors for its rendering. This
      information is important when drawing highlight or outlines around
      objects as display-lists can not be used if color-state changes are
      stored in them.
      
      With this modification most of the logick for
        virtual Bool_t TGLLogicalShape::ShouldDLCache(...)
      can be implemented in TGLObject version.
      
      Most of the GL-rendering classes have been fixed to properly set the
      fMultiColor state and rely on the TGLObject::ShouldDLCache().
      
      
      TGLPhysicalShape
      ----------------
      
      Use TGLLogicalShape::Draw() instead of DirectDraw() when drawing
      highlights to allow usage of display-lists for classes that do not use
      multiple colors.
      
      
      TGLUtil
      -------
      
      Decrease the default draw-quality for DrawLine/Cylinder/Sphere/Disk to
      10. With software rendering the previous value of 60 caused very low
      refresh rates.
      
      Introduce two inner classes TDrawQualityModifier and
      TDrawQualityScaler allowing easy/safe modification of draw-quality for
      the above functions.
      
      Introduce inner class TColorLocker allowing easy/safe modification of
      color-lock state.
      
      
      git-svn-id: http://root.cern.ch/svn/root/trunk@24214 27541ba8-7e3a-0410-8455-c3a389f83636
      e6f231b0
    • Matevz Tadel's avatar
      From Alja. · 510c1a55
      Matevz Tadel authored
      TEveBoxSet classes:
      Introduce new structure to draw cone set. 
      
      tutorials/eve/boxset_test.C
      Add function cone_test() to test cone set.
      
      TEveDigitSet, TEveQuadSet:
      Fix member in ERenderMode_e, to draw properly in wire-frame rendering mode.
      
      
      git-svn-id: http://root.cern.ch/svn/root/trunk@24210 27541ba8-7e3a-0410-8455-c3a389f83636
      510c1a55
  9. Jun 10, 2008
    • Matevz Tadel's avatar
      - TGLContext, TGLWidget · 3c80bf3c
      Matevz Tadel authored
        Fix creation of TGLWidget so that it also works with software
        rendering where few visuals are available.
        This means that we have to break TGLWidget construction into three
        phases (required for software rendering on X11):
        1. find appropriate visual and create window;
        2. create widget using the above window;
        3. create gl-context binding them together.
        To avoid unexpected behaviour the construction is now done via
        static constructor 'TGLWidget* TGLWidget::Create()' and the
        actual constructor has been made protected.
      
      - TGLEmbeddedViewer, TGLSAViewer
        Use new TGLWidget construction syntax.
      
      - TGLPShapeObjEditor
        Use new TGLWidget construction syntax.
        Fix rendering and update of color-sphere.
      
      
      git-svn-id: http://root.cern.ch/svn/root/trunk@24204 27541ba8-7e3a-0410-8455-c3a389f83636
      3c80bf3c
  10. Jun 09, 2008
  11. Jun 07, 2008
    • Matevz Tadel's avatar
      - cms_calo.C · 128caa76
      Matevz Tadel authored
        Use tower-size as default representation for projected view.
      
      - TEveGeoNode
        Use default constructor of TGeoManager so that it does not attempt to
        register itselg to gROOT which might not be initialized yet.
        (Thanks to Bertrand for tracing this down.)
      
      
      git-svn-id: http://root.cern.ch/svn/root/trunk@24180 27541ba8-7e3a-0410-8455-c3a389f83636
      128caa76
    • Rene Brun's avatar
      From Bertrand: · 78c4de66
      Rene Brun authored
      - Solve uninitialized variable in TGLWidget
        (thanks to Timur for the report)
      
      
      git-svn-id: http://root.cern.ch/svn/root/trunk@24178 27541ba8-7e3a-0410-8455-c3a389f83636
      78c4de66
  12. Jun 06, 2008
    • Matevz Tadel's avatar
      From Alja. · cfc55034
      Matevz Tadel authored
      TEveGValuators:
      Sub-class from TGWidget and add optional widget-id argument in
      constructors.
      
      TEveCalo-classes, cms_calo.C:
      Add nested structure SliceInfo_t to hold data for each slice in
      histogram stack: name, threshold and color.
      
      
      git-svn-id: http://root.cern.ch/svn/root/trunk@24173 27541ba8-7e3a-0410-8455-c3a389f83636
      cfc55034
    • Matevz Tadel's avatar
      From Bertrand: · 8de15e73
      Matevz Tadel authored
      Remove TGLWidgetContainer class and change inheritance of
      TGLWidget as following:
      before: class TGLWidget : public TGCanvas, public TGLPaintDevice
      now:    class TGLWidget : public TGFrame,  public TGLPaintDevice
       
      Now TGFrame base class is used directly to tie with the GL Context,
      instead of creating an external window and registering it in TVirtualX
      window list.
      
      
      git-svn-id: http://root.cern.ch/svn/root/trunk@24162 27541ba8-7e3a-0410-8455-c3a389f83636
      8de15e73
  13. Jun 05, 2008
    • Matevz Tadel's avatar
      From Alja. · 4ed1e614
      Matevz Tadel authored
      TEveCaloData:
      Change GetCellData() to const.
      
      TEveCalo:
      Set threshold in SetData().
      
      TEveCaloLegoGL:
      Fix tick-marks and change rendering order of cells and plane.
      
      TGLCamera:
      
      Coordinate-system conversion functions ViewportDeltaToWorld(),
      ViewportToWorld() and WorldToViewport now take an optional argument
      specifying model-view matrix to be used in calculation.
      
      
      git-svn-id: http://root.cern.ch/svn/root/trunk@24158 27541ba8-7e3a-0410-8455-c3a389f83636
      4ed1e614
  14. Jun 04, 2008
    • Matevz Tadel's avatar
      - TEveProjectionManager: · 04d79db8
      Matevz Tadel authored
        Added member 'Bool_t fImportEmpty' - this forces the projection manager
        to also import sub-trees without any projectable elements.
        Useful if one expects a completely parallel element structure in
        projected replica.
      
      - TEveSelection:
        Added method 'void RemoveImpliedSelected(TEveElement* el)' needed for
        deregistration of implied-selected elements during their destruction.
      
      - TEveManager:
        - In PreDeleteElement() check if the element is implied selected or
          highlighted and deregister it from there.
        - In function InsertVizDBEntry():
          a) added argument 'Bool_t update';
          b) when replacing the model-element copy its children to the new
             model and optionally update their viz-params.
      
      - TEveElement:
        - Add methods to simplify propagation of visualization-parameters
          between model-elements and their clients
        - Add members 'Int_t fParentIgnoreCnt, fTopItemCnt' that allow
          better tracking of references in view of automatic destruction.
        - Consolidate Has/Num|Children/Parents() methods.
      
      - TEveGeoNode:
        Use TEveElement::HasChildren() instead of checking container size.
      
      
      git-svn-id: http://root.cern.ch/svn/root/trunk@24147 27541ba8-7e3a-0410-8455-c3a389f83636
      04d79db8
    • Matevz Tadel's avatar
      - TEveCalo-classes: · ba46ac77
      Matevz Tadel authored
        Add possibility to plot E/Et values and enable absolute/relative
        scaling.
      
      - TEveUtil:
        Add utility functions to check if a phi interval lies within or
        overlaps with another interval taking into account the U(1)
        wrap-around.
      
      
      git-svn-id: http://root.cern.ch/svn/root/trunk@24146 27541ba8-7e3a-0410-8455-c3a389f83636
      ba46ac77
    • Matevz Tadel's avatar
      Forgot to include LinkDef.h in last commit. · 2a008c18
      Matevz Tadel authored
      git-svn-id: http://root.cern.ch/svn/root/trunk@24123 27541ba8-7e3a-0410-8455-c3a389f83636
      2a008c18
  15. Jun 03, 2008
  16. May 30, 2008
    • Matevz Tadel's avatar
      From Alja: · 3a6f8a50
      Matevz Tadel authored
      - TEveCalo, TEveCaloLegoGL, TEveCalo2DGL, TEveCaloVizEditor:
        Add possibility to auto scale calorimeters.
        In class TEveCaloViz rename member fPhiRng to fPhiOffset.
      
      - cms_calo.C:
        Demonstrate auto scale and eta/phi range.
      
      
      git-svn-id: http://root.cern.ch/svn/root/trunk@24076 27541ba8-7e3a-0410-8455-c3a389f83636
      3a6f8a50
    • Matevz Tadel's avatar
      Fix compilation warning and some whitespace. · 134288fe
      Matevz Tadel authored
      git-svn-id: http://root.cern.ch/svn/root/trunk@24071 27541ba8-7e3a-0410-8455-c3a389f83636
      134288fe
    • Matevz Tadel's avatar
      - TEveGeoShape · d105b4d6
      Matevz Tadel authored
        Add static data-member holding a pointer to a default geo-manager
        that allows us to capture dangling geo-shapes as they are created for
        or imported into TEveGeoShape.
      
      - TGLCamera
        Fix AdjustAndClampVal() fix poorly implementd logarithmic scaling of
        the value step.
      
      - TGLOrthoCamera
        Add get/set methods for fZoomMin/Max.
      
      - TGLViewer, TGLSAViewer
        Move SavePicture() from TGLSAViewer to TGLViewer and improve
        structure of the code. This allows also images from TGLEmbedded
        viewer to be saved to a file.
      
      - projection_test.C
        Set min/max-zoom of the camera.
      
      
      git-svn-id: http://root.cern.ch/svn/root/trunk@24059 27541ba8-7e3a-0410-8455-c3a389f83636
      d105b4d6
  17. May 29, 2008
    • Matevz Tadel's avatar
      From Alja: · b949eb44
      Matevz Tadel authored
      - TEveCaloVizEditor:
        Read eta limits from data.
      
      - TEveCaloData, TEveCalo, TEveCalo3DGL, TEveCaloLegoGL, TEveCalo2DGL:
        Enable variable eta and phi range.
      
      - TEveLegoOverlay:
        Draw axis using THLimits finder.
      
      
      git-svn-id: http://root.cern.ch/svn/root/trunk@24052 27541ba8-7e3a-0410-8455-c3a389f83636
      b949eb44
  18. May 28, 2008
    • Matevz Tadel's avatar
      - TEveElement · e7191589
      Matevz Tadel authored
        Add member 'TEveElement *fVizModel' that points to VizDB entry used
        for determination of element's visual properties.
        When setting the VizModel add it as a child to the model-element.
        This will allow for two-way communication between client and model
        elements.
      
      - TEveManager
        When adding a model-element into VizDB increase its deny-destroy
        count. Use Destroy() not direct delete when removing it.
      
      - TEvePolygonSetProjected
        - Override TEveElement::SetMainColor() so that we can keep line and
          fill colors in sync if this is desired.
        - Remove SetLine/FillColor(Pixel_t).
      
      - TEveGeoNode
        Add some info and warning messages for unexpected conditions (which
        I now suspect might actually happen in some rare cases).
      
      
      git-svn-id: http://root.cern.ch/svn/root/trunk@24047 27541ba8-7e3a-0410-8455-c3a389f83636
      e7191589
  19. May 26, 2008
    • Matevz Tadel's avatar
      TEveManger · 6cdddb91
      Matevz Tadel authored
      ----------
      
      Implement basic visual-parameter database management using TMap
      (load/save not supported yet).
      
      Use TMap instead of std::map for geometry management.
      
      TEveElement
      -----------
      
      Implement CopyVizParamsFromDB().
      
      test_compound.C
      ---------------
      
      Add minimal example showing usage of visual-parameter database.
      
      
      git-svn-id: http://root.cern.ch/svn/root/trunk@24026 27541ba8-7e3a-0410-8455-c3a389f83636
      6cdddb91
Loading