Changeset 935


Ignore:
Timestamp:
Mar 3, 2009, 3:56:13 PM (15 years ago)
Author:
garnier
Message:

remove files

Location:
trunk/source/visualization
Files:
3 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/visualization/OpenGL/History

    r924 r935  
    1 $Id: History,v 1.126 2009/02/16 15:31:05 lgarnier Exp $
     1$Id: History,v 1.127 2009/03/03 14:51:29 lgarnier Exp $
    22-------------------------------------------------------------------
    33
     
    2020History file for visualization/OpenGL
    2121-------------------------------------
     22
     231st March 2009, Laurent Garnier
     24- Remplacing glBitmap by GL_POINTS to draw marker : Speed improvment
     25  and gl2ps can now draw Markers.
    2226
    232716 February 2009, Laurent Garnier
  • trunk/source/visualization/OpenGL/include/G4OpenGLStoredSceneHandler.hh

    r915 r935  
    4141#include <map>
    4242#include <vector>
     43#include "G4Polymarker.hh"
    4344
    4445class G4OpenGLStored;
     
    104105  // A proper implementation would use geometry hierarchy.
    105106  std::map <const G4VSolid*, G4int, std::less <const G4VSolid*> > fSolidMap;
     107
     108private:
     109  G4Polymarker fLastPolymarker ;
    106110};
    107111
  • trunk/source/visualization/OpenGL/src/G4OpenGLSceneHandler.cc

    r934 r935  
    2525//
    2626//
    27 // $Id: G4OpenGLSceneHandler.cc,v 1.54 2008/04/04 13:32:22 allison Exp $
     27// $Id: G4OpenGLSceneHandler.cc,v 1.55 2009/03/03 14:51:29 lgarnier Exp $
    2828// GEANT4 tag $Name:  $
    2929//
     
    228228        G4Circle circle (polymarker);
    229229        circle.SetPosition (polymarker[iPoint]);
    230         printf("  G4OpenGLSceneHandler::AddPrimitive const G4Polymarker& polymarker iPoint:%d/%d center:%f,%f,%f\n",iPoint,polymarker.size (),polymarker[iPoint].x(),polymarker[iPoint].y(),polymarker[iPoint].z());
    231230        G4OpenGLSceneHandler::AddPrimitive (circle);
    232231      }
     
    287286  glDisable (GL_LIGHTING);
    288287 
    289   printf("Creation d'un texte =====================\n");
    290288  glRasterPos3d(position.x(),position.y(),position.z());
    291 
    292   //
    293   //  const char *pC;
    294   //  for (pC=textCString; *pC != '\0'; pC++) {
    295   //  glutStrokeCharacter(GLUT_STROKE_ROMAN, *pC);
    296   //  }
    297   //
    298289  // No action on offset or layout at present.
    299290   glPushAttrib(GL_LIST_BIT);
     
    377368  // Draw...
    378369   if (sizeType == world) {  // Size specified in world coordinates.
     370
    379371     DrawXYPolygon (shape, size, centre, pVA);
    380372
    381373   } else { // Size specified in screen (window) coordinates.
    382      //     printf("Cree un marqueur------------------------------------%f %f %f \n",centre.x(),centre.y(),centre.z());
    383 #define G4_POINT=1
    384 #ifdef G4_POINT
    385374     glPointSize (size);       
    386375     glBegin (GL_POINTS);
     
    392381     glEnable(GL_BLEND);
    393382     glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
    394 #else
    395      glRasterPos3d(centre.x(),centre.y(),centre.z());
    396      const GLubyte* marker =
    397        G4OpenGLBitMapStore::GetBitMap(shape, size, filled);
    398      glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
    399      glBitmap(GLsizei(size), GLsizei(size), size/2., size/2., 0., 0., marker);
    400 #endif
     383
     384     // L. GARNIER 1 March 2009
     385     // Old method, we draw a bitmap instead of a GL_POINT.
     386     // I remove it because it cost in term of computing performances
     387     // and gl2ps can't draw bitmaps
     388
     389     //      glRasterPos3d(centre.x(),centre.y(),centre.z());
     390     //      const GLubyte* marker =
     391     //        G4OpenGLBitMapStore::GetBitMap(shape, size, filled);
     392     //      glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
     393     //      glBitmap(GLsizei(size), GLsizei(size), size/2., size/2., 0., 0., marker);
    401394   }
    402395}
  • trunk/source/visualization/modeling/include/G4ModelApplyCommandsT.hh

    r933 r935  
    552552  Apply(newValue);
    553553  G4VVisManager* visManager = G4VVisManager::GetConcreteInstance();
    554   printf("G4ModelApplyCommand 8 :%d\n",visManager);
    555554  if (visManager) visManager->NotifyHandlers();
    556555}
  • trunk/source/visualization/modeling/src/G4TrajectoryDrawerUtils.cc

    r931 r935  
    9090   
    9191    GetPoints(traj, trajectoryLine, auxiliaryPoints, stepPoints);
    92    
    9392    if (lineRequired) {
    9493      G4VisAttributes trajectoryLineAttribs(colour);
     
    241240    // Draw without time slice information
    242241
     242    //
     243    for (size_t iPoint = 0; iPoint < trajectoryLine.size (); iPoint++) {
     244      //      printf("DrawLineAndPoints trajectory i:%d/%d center:%f,%f,%f\n",iPoint,trajectoryLine.size (),trajectoryLine[iPoint].x(),trajectoryLine[iPoint].y(),trajectoryLine[iPoint].z());
     245    }
     246    for (size_t iPoint = 0; iPoint < auxiliaryPoints.size (); iPoint++) {
     247      printf("DrawLineAndPoints aux i:%d/%d center:%f,%f,%f\n",iPoint,auxiliaryPoints.size (),auxiliaryPoints[iPoint].x(),auxiliaryPoints[iPoint].y(),auxiliaryPoints[iPoint].z());
     248    }
     249    for (size_t iPoint = 0; iPoint < stepPoints.size (); iPoint++) {
     250      printf("DrawLineAndPoints step i:%d/%d center:%f,%f,%f\n",iPoint,stepPoints.size (),stepPoints[iPoint].x(),stepPoints[iPoint].y(),stepPoints[iPoint].z());
     251    }
     252    //   
    243253    G4VVisManager* pVVisManager = G4VVisManager::GetConcreteInstance();
    244254    if (0 == pVVisManager) return;
Note: See TracChangeset for help on using the changeset viewer.