- Jun 24, 2008
-
-
Matevz Tadel authored
TEvePointSet::PointSelected() - call also the base-class version so the associated TObject is printed on the terminal (if it exists). git-svn-id: http://root.cern.ch/svn/root/trunk@24500 27541ba8-7e3a-0410-8455-c3a389f83636
-
- Jun 20, 2008
-
-
Matevz Tadel authored
TEveManager ----------- 1. Implement Load/SaveVizDB() 2. Add bool members controlling behaviour of VizDB during loading, in particular whether to replace existing entries and update connected clients. TEveElement ----------- 1. Implement top-level SaveVizParams() and virtual WriteVizParams() that is called throughout the element class-hierarchy. 2. Add the following methods that can be called from the context menu: - void VizDB_Apply(const char* tag); - void VizDB_Reapply(); - void VizDB_UpdateModel(Bool_t update=kTRUE); - void VizDB_Insert(const char* tag, Bool_t replace=kTRUE, Bool_t update=kTRUE); Other ----- Virtual WriteVizParams() implemented for the following classes: TEvePointSet, TEveLine, TEveTrack, TEveTrackList and TEveStraightLineSet. git-svn-id: http://root.cern.ch/svn/root/trunk@24449 27541ba8-7e3a-0410-8455-c3a389f83636
-
Matevz Tadel authored
Introduce trash count to prevent too frequent creation and destruction of FTFont objects. git-svn-id: http://root.cern.ch/svn/root/trunk@24448 27541ba8-7e3a-0410-8455-c3a389f83636
-
Matevz Tadel authored
git-svn-id: http://root.cern.ch/svn/root/trunk@24447 27541ba8-7e3a-0410-8455-c3a389f83636
-
Matevz Tadel authored
TGLAxisPainter.h, TGLAxisPainter.cxx: Introduce new utilty class to paint axis with GL. TEveCaloLegoGL,TEveLegoOverlay: Use TGLAxisPainter functionality. TEveCaloViz: Add new Function GetMaxVal(). git-svn-id: http://root.cern.ch/svn/root/trunk@24445 27541ba8-7e3a-0410-8455-c3a389f83636
-
Matevz Tadel authored
--------- Add new member 'Bool_t fHighlightOutline' that is set during the outline-pass of the highlight. TGLObject --------- Disable use of display-lists for multi-colored objects only in the outline pass of the highlight. TGLPhysicalShape ---------------- Set HighlightOutline and HighlightOutline of the rnr-ctx during highlight. git-svn-id: http://root.cern.ch/svn/root/trunk@24444 27541ba8-7e3a-0410-8455-c3a389f83636
-
- Jun 19, 2008
-
-
Matevz Tadel authored
TEveBoxSetGL: Fix bug with wrong cone orientation. boxset_test.C, cone_test.C: Move cone set demo from boxset_test to separate macro. git-svn-id: http://root.cern.ch/svn/root/trunk@24392 27541ba8-7e3a-0410-8455-c3a389f83636
-
- Jun 17, 2008
-
-
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
-
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
-
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
-
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
-
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
-
- Jun 16, 2008
-
-
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
-
- Jun 13, 2008
-
-
Matevz Tadel authored
Move build of TEveCaloData::CellId_t cache from render classes to the base classes. Rename fCache to fCellIdCache. git-svn-id: http://root.cern.ch/svn/root/trunk@24271 27541ba8-7e3a-0410-8455-c3a389f83636
-
Matevz Tadel authored
git-svn-id: http://root.cern.ch/svn/root/trunk@24270 27541ba8-7e3a-0410-8455-c3a389f83636
-
Matevz Tadel authored
git-svn-id: http://root.cern.ch/svn/root/trunk@24266 27541ba8-7e3a-0410-8455-c3a389f83636
-
- Jun 12, 2008
-
-
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
-
- Jun 11, 2008
-
-
Matevz Tadel authored
git-svn-id: http://root.cern.ch/svn/root/trunk@24216 27541ba8-7e3a-0410-8455-c3a389f83636
-
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
-
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
-
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
-
- Jun 10, 2008
-
-
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
-
- Jun 09, 2008
-
-
Matevz Tadel authored
TEveCaloLegoGL: Fix a crash when going from 3D to 2D lego view. SmallFixes: - CaloLegoGL, CaloLego Change offset of XY axis titles. Check gap between projected bin lines around average eta and phi values. - cms_calo.C Change color of towers to make towers more visible in 2D view. git-svn-id: http://root.cern.ch/svn/root/trunk@24193 27541ba8-7e3a-0410-8455-c3a389f83636
-
Matevz Tadel authored
them when setting camera rotation. git-svn-id: http://root.cern.ch/svn/root/trunk@24186 27541ba8-7e3a-0410-8455-c3a389f83636
-
- Jun 07, 2008
-
-
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
-
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
-
- Jun 06, 2008
-
-
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
-
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
-
- Jun 05, 2008
-
-
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
-
- Jun 04, 2008
-
-
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
-
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
-
Matevz Tadel authored
git-svn-id: http://root.cern.ch/svn/root/trunk@24123 27541ba8-7e3a-0410-8455-c3a389f83636
-
- Jun 03, 2008
-
-
Matevz Tadel authored
git-svn-id: http://root.cern.ch/svn/root/trunk@24122 27541ba8-7e3a-0410-8455-c3a389f83636
-
Matevz Tadel authored
destructor and check it in TGLViewer destructor. git-svn-id: http://root.cern.ch/svn/root/trunk@24114 27541ba8-7e3a-0410-8455-c3a389f83636
-
- May 30, 2008
-
-
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
-
Matevz Tadel authored
git-svn-id: http://root.cern.ch/svn/root/trunk@24071 27541ba8-7e3a-0410-8455-c3a389f83636
-
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
-
- May 29, 2008
-
-
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
-
- May 28, 2008
-
-
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
-
- May 26, 2008
-
-
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
-