Changeset 931 for trunk/source/visualization
- Timestamp:
- Feb 25, 2009, 4:19:05 PM (15 years ago)
- Location:
- trunk/source/visualization
- Files:
-
- 88 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/GNUmakefile
r924 r931 24 24 SUBLIBS += G4zlib 25 25 endif 26 27 CPPFLAGS += -DG4DEBUG_VIS_OGL 26 28 27 29 # Libraries which can be used without external packages or libraries... -
trunk/source/visualization/History
r924 r931 1 $Id: History,v 1.42 6 2009/02/16 15:31:05 lgarnierExp $1 $Id: History,v 1.427 2009/02/24 12:27:07 allison Exp $ 2 2 ------------------------------------------------------------------- 3 3 … … 24 24 History file for visualization category 25 25 --------------------------------------- 26 27 24th February 2009 John Allison 28 - modeling-V09-02-00 - needs greps-V09-02-00: 29 o Added setAux/StepPtsSizeType commands (candidates: "none world screen"). 30 o Added unit to setAux/StepPtsSize for SizeType == world. 26 31 27 32 16 February 2009, Laurent Garnier -
trunk/source/visualization/OpenGL/src/G4OpenGLQtViewer.cc
r917 r931 25 25 // 26 26 // 27 // $Id: G4OpenGLQtViewer.cc,v 1.3 5 2009/02/04 16:48:41lgarnier Exp $27 // $Id: G4OpenGLQtViewer.cc,v 1.36 2009/02/25 15:14:29 lgarnier Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 // -
trunk/source/visualization/OpenGL/src/G4OpenGLSceneHandler.cc
r930 r931 160 160 void G4OpenGLSceneHandler::AddPrimitive (const G4Polyline& line) 161 161 { 162 printf("----1"); 162 163 G4int nPoints = line.size (); 163 164 if (nPoints <= 0) return; … … 367 368 368 369 // Draw... 369 /// if (sizeType == world) { // Size specified in world coordinates. 370 // printf("G4OpenGLSceneHandler::AddCircleSquare world\n"); 371 // DrawXYPolygon (shape, size, centre, pVA); 372 373 // } else { // Size specified in screen (window) coordinates. 374 // printf("G4OpenGLSceneHandler::AddCircleSquare bitmap\n"); 375 376 glRasterPos3d(centre.x(),centre.y(),centre.z()); 377 const GLubyte* marker = 378 G4OpenGLBitMapStore::GetBitMap(shape, size, filled); 379 glPixelStorei(GL_UNPACK_ALIGNMENT, 1); 380 glBitmap(GLsizei(size), GLsizei(size), size/2., size/2., 0., 0., marker); 381 // } 370 if (sizeType == world) { // Size specified in world coordinates. 371 printf("G4OpenGLSceneHandler::AddCircleSquare world\n"); 372 DrawXYPolygon (shape, size, centre, pVA); 373 374 } else { // Size specified in screen (window) coordinates. 375 printf("G4OpenGLSceneHandler::AddCircleSquare screen bitmap size:%d\n",size); 376 377 int test=3; 378 if (test == 1) { 379 // Find window coordinates of centre... 380 GLdouble modelMatrix[16]; 381 glGetDoublev (GL_MODELVIEW_MATRIX, modelMatrix); 382 G4double projectionMatrix[16]; 383 glGetDoublev (GL_PROJECTION_MATRIX, projectionMatrix); 384 GLint viewport[4]; 385 glGetIntegerv(GL_VIEWPORT,viewport); 386 GLdouble winx, winy, winz; 387 gluProject(centre.x(), centre.y(), centre.z(), 388 modelMatrix, projectionMatrix, viewport, 389 &winx, &winy, &winz); 390 391 // Determine ratio window:world... 392 const G4Vector3D& viewpointDirection = 393 fpViewer -> GetViewParameters().GetViewpointDirection(); 394 const G4Vector3D& up = fpViewer->GetViewParameters().GetUpVector(); 395 const G4Vector3D inScreen = (up.cross(viewpointDirection)).unit(); 396 const G4Vector3D p = centre + inScreen; 397 GLdouble winDx, winDy, winDz; 398 gluProject(p.x(), p.y(), p.z(), 399 modelMatrix, projectionMatrix, viewport, 400 &winDx, &winDy, &winDz); 401 G4double winWorldRatio = std::sqrt(std::pow(winx - winDx, 2) + 402 std::pow(winy - winDy, 2)); 403 DrawXYPolygon (shape, size/winWorldRatio, centre, pVA); 404 405 } else if (test == 2) { 406 // glMatrixMode(GL_PROJECTION); 407 glPushMatrix(); 408 // glLoadIdentity(); 409 // gluOrtho2D(0.0,640.0,480.0,10.0); 410 411 // glDisable(GL_DEPTH_TEST); 412 glRotatef (30, 0, -1, 0); 413 glRotatef (20, -1, 0, 0); 414 glRotatef (50, 0, 0, -1); 415 DrawXYPolygon (shape, size, centre, pVA); 416 417 418 glPopMatrix(); 419 420 // glMatrixMode(GL_MODELVIEW); 421 // glEnable(GL_DEPTH_TEST); 422 } else if (test == 3){ // Avec DrawPolygone, mais en forcant 423 424 glPointSize (size); 425 glBegin (GL_POINTS); 426 glVertex3f(centre.x(),centre.y(),centre.z()); 427 glEnd(); 428 //Antialiasing sur les points 429 glEnable (GL_POINT_SMOOTH); 430 //Gestion de la transparence 431 glEnable(GL_BLEND); 432 glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); 433 434 // const G4Point3D targetPoint 435 // = fSceneHandler.GetScene()->GetStandardTargetPoint() 436 // + fVP.GetCurrentTargetPoint (); 437 // G4double radius = fSceneHandler.GetScene()->GetExtent().GetExtentRadius(); 438 // if(radius<=0.) radius = 1.; 439 // const G4double cameraDistance = fVP.GetCameraDistance (radius); 440 // const G4Point3D cameraPosition = 441 // targetPoint + cameraDistance * fVP.GetViewpointDirection().unit(); 442 } else { 443 glRasterPos3d(centre.x(),centre.y(),centre.z()); 444 const GLubyte* marker = 445 G4OpenGLBitMapStore::GetBitMap(shape, size, filled); 446 glPixelStorei(GL_UNPACK_ALIGNMENT, 1); 447 glBitmap(GLsizei(size), GLsizei(size), size/2., size/2., 0., 0., marker); 448 } 449 } 382 450 } 383 451 -
trunk/source/visualization/OpenGL/src/G4OpenGLStoredQtViewer.cc
r929 r931 220 220 { 221 221 #ifdef G4DEBUG_VIS_OGL 222 printf("G4OpenGLStoredQtViewer::paintGL ??\n");222 printf("G4OpenGLStoredQtViewer::paintGL ready %d hasTorepaint:%d\n",readyToPaint,hasToRepaint); 223 223 #endif 224 224 if (!readyToPaint) { -
trunk/source/visualization/OpenGL/src/G4OpenGLViewer.cc
r929 r931 33 33 34 34 #ifdef G4VIS_BUILD_OPENGL_DRIVER 35 36 #define G4DEBUG_VIS_OGL 35 37 36 38 #include "G4ios.hh" … … 143 145 144 146 void G4OpenGLViewer::ClearView () { 147 #ifdef G4DEBUG_VIS_OGL 148 printf("G4OpenGLViewer::ClearView VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV \n"); 149 #endif 145 150 glClearColor (background.GetRed(), 146 151 background.GetGreen(), … … 154 159 glClear (GL_STENCIL_BUFFER_BIT); 155 160 glFlush (); 161 #ifdef G4DEBUG_VIS_OGL 162 printf("G4OpenGLViewer::ClearView ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"); 163 #endif 156 164 } 157 165 … … 169 177 170 178 void G4OpenGLViewer::SetView () { 179 180 #ifdef G4DEBUG_VIS_OGL 181 printf("G4OpenGLViewer::SetView VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV \n"); 182 #endif 171 183 172 184 if (!fSceneHandler.GetScene()) { … … 308 320 background = fVP.GetBackgroundColour (); 309 321 322 #ifdef G4DEBUG_VIS_OGL 323 printf("G4OpenGLViewer::SetView ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ \n"); 324 #endif 310 325 } 311 326 312 327 void G4OpenGLViewer::HaloingFirstPass () { 313 328 329 #ifdef G4DEBUG_VIS_OGL 330 printf("G4OpenGLViewer::HaloingFirstPass VVVVVVVVVVVVVVVVVV \n"); 331 #endif 314 332 //To perform haloing, first Draw all information to the depth buffer 315 333 //alone, using a chunky line width, and then Draw all info again, to … … 334 352 void G4OpenGLViewer::HaloingSecondPass () { 335 353 354 #ifdef G4DEBUG_VIS_OGL 355 printf("G4OpenGLViewer::HaloingSecondtPass VVVVVVVVVVVVVVVVVV \n"); 356 #endif 336 357 //And finally, turn the colour buffer back on with a sesible line width... 337 358 glColorMask (GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE); … … 888 909 889 910 // FIXME : TEST 890 G4VMarker defaultMarker = GetViewParameters().GetDefaultMarker(); 891 defaultMarker.SetWorldSize(defaultMarker.GetScreenSize()); 892 defaultMarker.SetWorldDiameter(defaultMarker.GetScreenDiameter()); 893 defaultMarker.SetWorldRadius(defaultMarker.GetScreenRadius()); 911 printf("G4OpenGLViewer::WritePostScript world size:%f\n",GetViewParameters().GetDefaultMarker().GetWorldSize()); 912 G4ViewParameters vp = GetViewParameters(); 913 G4VMarker defaultMarker = vp.GetDefaultMarker(); 914 G4VMarker myMarker = vp.GetDefaultMarker(); 915 916 myMarker.SetScreenSize(0); // before SetWorldSize 917 myMarker.SetScreenDiameter(0); // before SetWorldSize 918 myMarker.SetScreenRadius(0); // before SetWorldSize 919 920 myMarker.SetWorldSize(6.); 921 myMarker.SetWorldDiameter(4.); 922 myMarker.SetWorldRadius(3.); 923 // myMarker.SetWorldSize(defaultMarker.GetScreenSize()); 924 // myMarker.SetWorldDiameter(defaultMarker.GetScreenDiameter()); 925 // myMarker.SetWorldRadius(defaultMarker.GetScreenRadius()); 926 927 vp.SetDefaultMarker(myMarker); 928 SetViewParameters(vp); 894 929 895 930 fGL2PSAction->setFileName("PostScriptViaGL2PS.ps"); 896 931 if (fGL2PSAction->enableFileWriting()) { 897 ShowView();932 NeedKernelVisit (); 898 933 ProcessView(); 899 DrawView(); 934 SetView (); 935 ClearView (); 936 DrawView (); 900 937 fGL2PSAction->disableFileWriting(); 901 938 } 902 // defaultMarker.SetScreenSize(defaultMarker.GetWorldSize()); 903 // defaultMarker.SetScreenDiameter(defaultMarker.GetWorldDiameter()); 904 // defaultMarker.SetScreenRadius(defaultMarker.GetWorldRadius()); 939 vp.SetDefaultMarker(defaultMarker); 940 SetViewParameters(vp); 905 941 // FIXME : TEST 906 942 -
trunk/source/visualization/OpenGL/src/G4OpenGLXmWindowHandlingCallbacks.cc
r916 r931 25 25 // 26 26 // 27 // $Id: G4OpenGLXmWindowHandlingCallbacks.cc,v 1. 8 2009/01/19 16:26:40 lgarnier Exp $27 // $Id: G4OpenGLXmWindowHandlingCallbacks.cc,v 1.9 2009/02/25 15:15:50 lgarnier Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 // -
trunk/source/visualization/OpenInventor/History
r924 r931 1 $Id: History,v 1.9 7 2009/02/16 15:31:05 lgarnier Exp $1 $Id: History,v 1.98 2009/02/18 10:04:25 lgarnier Exp $ 2 2 ------------------------------------------------------------------- 3 3 … … 20 20 History file for visualization/OpenInventor 21 21 ------------------------------------------- 22 23 18 February 2009, Laurent Garnier 24 - Bug fix in gl2ps drawing 22 25 23 26 16 February 2009, Laurent Garnier -
trunk/source/visualization/OpenInventor/src/G4OpenInventorSceneHandler.cc
r929 r931 25 25 // 26 26 // 27 // $Id: G4OpenInventorSceneHandler.cc,v 1.5 4 2008/04/04 13:40:04 allisonExp $28 // GEANT4 tag $Name: HEAD$27 // $Id: G4OpenInventorSceneHandler.cc,v 1.55 2009/02/18 14:21:38 lgarnier Exp $ 28 // GEANT4 tag $Name: $ 29 29 // 30 30 // … … 46 46 #include <Inventor/nodes/SoLineSet.h> 47 47 #include <Inventor/nodes/SoCube.h> 48 #include <Inventor/nodes/SoSphere.h>49 48 #include <Inventor/nodes/SoFont.h> 50 49 #include <Inventor/nodes/SoText2.h> … … 230 229 void G4OpenInventorSceneHandler::AddPrimitive (const G4Polymarker& polymarker) 231 230 { 232 printf("G4OpenInventorSceneHandler::AddPrimitive------ \n");233 234 231 AddProperties(polymarker.GetVisAttributes()); // Transformation, colour, etc. 235 232 -
trunk/source/visualization/OpenInventor/src/SoMarkerSet.cc
r930 r931 657 657 //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// 658 658 { 659 printf("HEPVis_SoMarkerSet::GLRender\n");659 // printf("HEPVis_SoMarkerSet::GLRender\n"); 660 660 SoState* state = aAction->getState(); 661 661 … … 711 711 //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// 712 712 { 713 // printf("drawMarker\n");714 713 GLsizei w = 0,h = 0; 715 714 GLfloat xorig = 0,yorig = 0; … … 719 718 w = h = 5; 720 719 xorig = yorig = 2; 720 } else if((aStyle>=18)&&(aStyle<36)) { 721 w = h = 7; 722 xorig = yorig = 3; 723 } else if((aStyle>=36)&&(aStyle<54)) { 724 w = h = 9; 725 xorig = yorig = 4; 726 } else { 727 return; 728 } 729 if (w != 0) { 721 730 GLubyte* bitmap = getBitmap(w,h,sFigures[aStyle]); 722 731 glBitmap(w,h,xorig,yorig,0.,0.,bitmap); 723 732 delete bitmap; 724 } else if((aStyle>=18)&&(aStyle<36)) {725 w = h = 7;726 xorig = yorig = 3;727 GLubyte* bitmap = getBitmap(w,h,sFigures[aStyle]);728 glBitmap(w,h,xorig,yorig,0.,0.,bitmap);729 delete bitmap;730 } else if((aStyle>=36)&&(aStyle<54)) {731 w = h = 9;732 xorig = yorig = 4;733 GLubyte* bitmap = getBitmap(w,h,sFigures[aStyle]);734 glBitmap(w,h,xorig,yorig,0.,0.,bitmap);735 delete bitmap;736 } else {737 return;738 733 } 734 printf("DM %d %d %f %f",w,h,xorig,yorig); 739 735 740 736 if(aAction->isOfType(SoGL2PSAction::getClassTypeId())) { 741 ((SoGL2PSAction*)aAction)->addBitmap(w,h,xorig,yorig,xmove,ymove); 737 printf(" GL2PS "); 738 ((SoGL2PSAction*)aAction)->addBitmap(w-2,h-2,xorig,yorig,xmove,ymove); 742 739 } 743 740 -
trunk/source/visualization/management/src/G4VSceneHandler.cc
r850 r931 26 26 // 27 27 // $Id: G4VSceneHandler.cc,v 1.83 2008/01/04 22:03:46 allison Exp $ 28 // GEANT4 tag $Name: HEAD$28 // GEANT4 tag $Name: $ 29 29 // 30 30 // -
trunk/source/visualization/management/src/G4ViewParameters.cc
r913 r931 88 88 { 89 89 fDefaultMarker.SetScreenSize (5.); 90 printf("G4ViewParameters -------------------------------------------------------------\n"); 90 91 // Markers are 5 pixels "overall" size, i.e., diameter. 91 92 } -
trunk/source/visualization/management/src/G4VisCommandsSceneHandler.cc
r850 r931 26 26 // 27 27 // $Id: G4VisCommandsSceneHandler.cc,v 1.32 2006/06/29 21:29:46 gunter Exp $ 28 // GEANT4 tag $Name: HEAD$28 // GEANT4 tag $Name: $ 29 29 30 30 // /vis/sceneHandler commands - John Allison 10th October 1998 -
trunk/source/visualization/management/src/G4VisStateDependent.cc
r850 r931 26 26 // 27 27 // $Id: G4VisStateDependent.cc,v 1.6 2006/06/29 21:30:02 gunter Exp $ 28 // GEANT4 tag $Name: HEAD$28 // GEANT4 tag $Name: $ 29 29 30 30 #include "G4VisStateDependent.hh" -
trunk/source/visualization/modeling/History
r916 r931 1 $Id: History,v 1.10 6 2008/11/21 21:50:02 perlExp $1 $Id: History,v 1.109 2009/02/25 14:21:45 allison Exp $ 2 2 ------------------------------------------------------------------- 3 3 … … 21 21 --------------------------------------- 22 22 23 27th July 2008 John Allison (modeling-V09-01-01) 23 25th February 2009 John Allison (modeling-V09-02-01 - needs greps-V09-02-01) 24 - G4ModelApplyCommandsT: Added visManager->NotifyHandlers() after 25 application (Apply) of all commands. Forces update of all viewers 26 after a change of model, e.g., trajectory colour, point size, etc. 27 28 24th February 2009 John Allison (modeling-V09-02-00 - needs greps-V09-02-00) 29 - Added setAux/StepPtsSizeType commands (candidates: "none world screen"). 30 - Added unit to setAux/StepPtsSize for SizeType == world. 31 32 27th July 2008 John Allison (modeling-V09-01-01) 24 33 - G4PhysicalVolumeSearchScene.cc: Cosmetic improvement to a message. 25 34 -
trunk/source/visualization/modeling/include/G4AttFilterUtils.hh
r850 r931 25 25 // 26 26 // $Id: G4AttFilterUtils.hh,v 1.2 2006/12/13 15:49:58 gunter Exp $ 27 // GEANT4 tag $Name: HEAD$27 // GEANT4 tag $Name: modeling-V09-02-00 $ 28 28 // 29 29 // Visualisation attribute filter utility functions. -
trunk/source/visualization/modeling/include/G4AttValueFilterT.hh
r850 r931 25 25 // 26 26 // $Id: G4AttValueFilterT.hh,v 1.3 2006/12/13 15:50:00 gunter Exp $ 27 // GEANT4 tag $Name: HEAD$27 // GEANT4 tag $Name: modeling-V09-02-00 $ 28 28 // 29 29 // Templated class for G4AttValue filters. -
trunk/source/visualization/modeling/include/G4AttributeFilterT.hh
r850 r931 25 25 // 26 26 // $Id: G4AttributeFilterT.hh,v 1.6 2006/12/13 15:50:02 gunter Exp $ 27 // GEANT4 tag $Name: HEAD$27 // GEANT4 tag $Name: modeling-V09-02-00 $ 28 28 // 29 29 // Generic attribute filter. -
trunk/source/visualization/modeling/include/G4AxesModel.hh
r850 r931 26 26 // 27 27 // $Id: G4AxesModel.hh,v 1.6 2006/11/01 10:28:42 allison Exp $ 28 // GEANT4 tag $Name: HEAD$28 // GEANT4 tag $Name: modeling-V09-02-00 $ 29 29 // 30 30 // -
trunk/source/visualization/modeling/include/G4BoundingSphereScene.hh
r842 r931 26 26 // 27 27 // $Id: G4BoundingSphereScene.hh,v 1.18 2008/01/04 21:59:15 allison Exp $ 28 // GEANT4 tag $Name: HEAD$28 // GEANT4 tag $Name: modeling-V09-02-00 $ 29 29 // 30 30 // -
trunk/source/visualization/modeling/include/G4CallbackModel.hh
r850 r931 26 26 // 27 27 // $Id: G4CallbackModel.hh,v 1.5 2006/06/29 21:30:10 gunter Exp $ 28 // GEANT4 tag $Name: HEAD$28 // GEANT4 tag $Name: modeling-V09-02-00 $ 29 29 // 30 30 // -
trunk/source/visualization/modeling/include/G4FlavoredParallelWorldModel.hh
r850 r931 26 26 // 27 27 // $Id: G4FlavoredParallelWorldModel.hh,v 1.8 2006/06/29 21:30:12 gunter Exp $ 28 // GEANT4 tag $Name: HEAD$28 // GEANT4 tag $Name: modeling-V09-02-00 $ 29 29 // 30 30 // P. Mora de Freitas et M.Verderi - 19 June 1998. -
trunk/source/visualization/modeling/include/G4HitFilterFactories.hh
r850 r931 25 25 // 26 26 /// $Id: G4HitFilterFactories.hh,v 1.1 2006/09/12 18:53:03 tinslay Exp $ 27 // GEANT4 tag $Name: HEAD$27 // GEANT4 tag $Name: modeling-V09-02-00 $ 28 28 // 29 29 // -
trunk/source/visualization/modeling/include/G4HitsModel.hh
r850 r931 26 26 // 27 27 // $Id: G4HitsModel.hh,v 1.10 2006/11/02 11:57:31 allison Exp $ 28 // GEANT4 tag $Name: HEAD$28 // GEANT4 tag $Name: modeling-V09-02-00 $ 29 29 // 30 30 // -
trunk/source/visualization/modeling/include/G4LogicalVolumeModel.hh
r850 r931 26 26 // 27 27 // $Id: G4LogicalVolumeModel.hh,v 1.9 2006/11/01 10:28:42 allison Exp $ 28 // GEANT4 tag $Name: HEAD$28 // GEANT4 tag $Name: modeling-V09-02-00 $ 29 29 // 30 30 // -
trunk/source/visualization/modeling/include/G4ModelApplyCommandsT.hh
r850 r931 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4ModelApplyCommandsT.hh,v 1. 5 2006/09/11 21:22:02 tinslayExp $27 // GEANT4 tag $Name: HEAD$26 // $Id: G4ModelApplyCommandsT.hh,v 1.6 2009/02/25 14:17:11 allison Exp $ 27 // GEANT4 tag $Name: $ 28 28 // 29 29 // Abstract model messenges. Derived classes should implement … … 44 44 #include "G4UIcommand.hh" 45 45 #include "G4VModelCommand.hh" 46 #include " globals.hh"46 #include "G4VVisManager.hh" 47 47 #include <sstream> 48 48 … … 152 152 153 153 Apply(parameter, myColour); 154 G4VVisManager* visManager = G4VVisManager::GetConcreteInstance(); 155 if (visManager) visManager->NotifyHandlers(); 154 156 } 155 157 … … 254 256 255 257 Apply(myColour); 258 G4VVisManager* visManager = G4VVisManager::GetConcreteInstance(); 259 if (visManager) visManager->NotifyHandlers(); 256 260 } 257 261 … … 301 305 { 302 306 Apply(fpCmd->GetNewBoolValue(newValue)); 307 G4VVisManager* visManager = G4VVisManager::GetConcreteInstance(); 308 if (visManager) visManager->NotifyHandlers(); 303 309 } 304 310 … … 347 353 { 348 354 Apply(); 355 G4VVisManager* visManager = G4VVisManager::GetConcreteInstance(); 356 if (visManager) visManager->NotifyHandlers(); 349 357 } 350 358 … … 395 403 { 396 404 Apply(fpCmd->GetNewDoubleValue(newValue)); 405 G4VVisManager* visManager = G4VVisManager::GetConcreteInstance(); 406 if (visManager) visManager->NotifyHandlers(); 397 407 } 398 408 … … 443 453 { 444 454 Apply(fpCmd->GetNewDoubleValue(newValue)); 455 G4VVisManager* visManager = G4VVisManager::GetConcreteInstance(); 456 if (visManager) visManager->NotifyHandlers(); 445 457 } 446 458 … … 490 502 { 491 503 Apply(fpCmd->GetNewIntValue(newValue)); 504 G4VVisManager* visManager = G4VVisManager::GetConcreteInstance(); 505 if (visManager) visManager->NotifyHandlers(); 492 506 } 493 507 … … 537 551 { 538 552 Apply(newValue); 553 G4VVisManager* visManager = G4VVisManager::GetConcreteInstance(); 554 if (visManager) visManager->NotifyHandlers(); 539 555 } 540 556 -
trunk/source/visualization/modeling/include/G4ModelColourMap.hh
r850 r931 25 25 // 26 26 // $Id: G4ModelColourMap.hh,v 1.2 2006/06/29 21:30:22 gunter Exp $ 27 // GEANT4 tag $Name: HEAD$27 // GEANT4 tag $Name: modeling-V09-02-00 $ 28 28 // 29 29 // Generic variable->G4Colour map, where "variable" is the template -
trunk/source/visualization/modeling/include/G4ModelCommandUtils.hh
r850 r931 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4ModelCommandUtils.hh,v 1. 2 2006/09/13 12:54:31allison Exp $27 // GEANT4 tag $Name: HEAD$26 // $Id: G4ModelCommandUtils.hh,v 1.3 2009/02/24 12:00:56 allison Exp $ 27 // GEANT4 tag $Name: modeling-V09-02-00 $ 28 28 // 29 29 // Jane Tinslay September 2006 … … 53 53 messengers.push_back(new G4ModelCmdSetStepPtsColour<G4VisTrajContext>(context, placement)); 54 54 messengers.push_back(new G4ModelCmdSetStepPtsSize<G4VisTrajContext>(context, placement)); 55 messengers.push_back(new G4ModelCmdSetStepPtsSizeType<G4VisTrajContext>(context, placement)); 55 56 messengers.push_back(new G4ModelCmdSetStepPtsType<G4VisTrajContext>(context, placement)); 56 57 messengers.push_back(new G4ModelCmdSetStepPtsFillStyle<G4VisTrajContext>(context, placement)); … … 60 61 messengers.push_back(new G4ModelCmdSetAuxPtsColour<G4VisTrajContext>(context, placement)); 61 62 messengers.push_back(new G4ModelCmdSetAuxPtsSize<G4VisTrajContext>(context, placement)); 63 messengers.push_back(new G4ModelCmdSetAuxPtsSizeType<G4VisTrajContext>(context, placement)); 62 64 messengers.push_back(new G4ModelCmdSetAuxPtsType<G4VisTrajContext>(context, placement)); 63 65 messengers.push_back(new G4ModelCmdSetAuxPtsFillStyle<G4VisTrajContext>(context, placement)); -
trunk/source/visualization/modeling/include/G4ModelCommandsT.hh
r850 r931 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4ModelCommandsT.hh,v 1.1 2 2006/11/01 10:34:03allison Exp $27 // GEANT4 tag $Name: HEAD$26 // $Id: G4ModelCommandsT.hh,v 1.13 2009/02/24 12:00:56 allison Exp $ 27 // GEANT4 tag $Name: modeling-V09-02-00 $ 28 28 // 29 29 // Generic model messenges. … … 398 398 // Set auxiliary points size command 399 399 template <typename M> 400 class G4ModelCmdSetAuxPtsSize : public G4ModelCmdApply Double<M> {400 class G4ModelCmdSetAuxPtsSize : public G4ModelCmdApplyString<M> { 401 401 402 402 public: 403 403 404 404 G4ModelCmdSetAuxPtsSize(M* model, const G4String& placement, 405 const G4String& cmdName="setAuxPtsSize") 406 :G4ModelCmdApplyDouble<M>(model, placement, cmdName) 407 { 408 G4ModelCmdApplyDouble<M>::Command()->SetGuidance("Set auxiliary points size command"); 409 } 410 411 protected: 412 413 void Apply(const G4double& myDouble) { 414 G4VModelCommand<M>::Model()->SetAuxPtsSize(myDouble); 415 } 405 const G4String& cmdName="setAuxPtsSize") 406 :G4ModelCmdApplyString<M>(model, placement, cmdName) 407 { 408 G4ModelCmdApplyString<M>::Command()->SetGuidance("Set auxiliary points size command"); 409 } 410 411 protected: 412 413 void Apply(const G4String& sizeString) { 414 std::istringstream iss(sizeString); 415 G4double size; 416 G4String unit; 417 iss >> size >> unit; 418 if (G4VModelCommand<M>::Model()->GetAuxPtsSizeType() == G4VMarker::world) 419 { 420 G4double myDouble = G4UIcmdWithADoubleAndUnit::GetNewDoubleValue(sizeString); 421 G4VModelCommand<M>::Model()->SetAuxPtsSize(myDouble); 422 } 423 else // none or screen 424 { 425 G4VModelCommand<M>::Model()->SetAuxPtsSize(size); 426 } 427 } 416 428 417 429 }; … … 420 432 // Set step points size command 421 433 template <typename M> 422 class G4ModelCmdSetStepPtsSize : public G4ModelCmdApply Double<M> {434 class G4ModelCmdSetStepPtsSize : public G4ModelCmdApplyString<M> { 423 435 424 436 public: … … 426 438 G4ModelCmdSetStepPtsSize(M* model, const G4String& placement, 427 439 const G4String& cmdName="setStepPtsSize") 428 :G4ModelCmdApplyDouble<M>(model, placement, cmdName) 429 { 430 G4ModelCmdApplyDouble<M>::Command()->SetGuidance("Set step points size command"); 431 } 432 433 protected: 434 435 void Apply(const G4double& myDouble) { 436 G4VModelCommand<M>::Model()->SetStepPtsSize(myDouble); 437 } 440 :G4ModelCmdApplyString<M>(model, placement, cmdName) 441 { 442 G4ModelCmdApplyString<M>::Command()->SetGuidance("Set step points size command"); 443 } 444 445 protected: 446 447 void Apply(const G4String& sizeString) { 448 std::istringstream iss(sizeString); 449 G4double size; 450 G4String unit; 451 iss >> size >> unit; 452 if (G4VModelCommand<M>::Model()->GetStepPtsSizeType() == G4VMarker::world) 453 { 454 G4double myDouble = G4UIcmdWithADoubleAndUnit::GetNewDoubleValue(sizeString); 455 G4VModelCommand<M>::Model()->SetStepPtsSize(myDouble); 456 } 457 else // none or screen 458 { 459 G4VModelCommand<M>::Model()->SetStepPtsSize(size); 460 } 461 } 438 462 439 463 }; … … 516 540 517 541 //////////////////////////////////////////////////////////////////////// 542 // Set step points size type command 543 template <typename M> 544 class G4ModelCmdSetStepPtsSizeType : public G4ModelCmdApplyString<M> { 545 546 public: 547 548 G4ModelCmdSetStepPtsSizeType(M* model, const G4String& placement, 549 const G4String& cmdName="setStepPtsSizeType") 550 :G4ModelCmdApplyString<M>(model, placement, cmdName) 551 { 552 G4UIcmdWithAString* cmd = G4ModelCmdApplyString<M>::Command(); 553 cmd->SetGuidance("Set step size type."); 554 cmd->SetCandidates("none world screen"); 555 } 556 557 protected: 558 559 void Apply(const G4String& type) { 560 G4VMarker::SizeType mySizeType; 561 562 if (type == "none") {mySizeType = G4VMarker::none;} 563 else if (type == "world") {mySizeType = G4VMarker::world;} 564 else if (type == "screen") {mySizeType = G4VMarker::screen;} 565 else { 566 std::ostringstream o; 567 o << "Invalid argument. See command guidance for options."; 568 G4Exception 569 ("G4ModelCmdSetStepPtsSizeType::Apply", 570 "InvalidArgument", JustWarning, o.str().c_str()); 571 return; 572 } 573 G4VModelCommand<M>::Model()->SetStepPtsSizeType(mySizeType); 574 } 575 576 }; 577 578 //////////////////////////////////////////////////////////////////////// 579 // Set auxiliary points size type command 580 template <typename M> 581 class G4ModelCmdSetAuxPtsSizeType : public G4ModelCmdApplyString<M> { 582 583 public: 584 585 G4ModelCmdSetAuxPtsSizeType(M* model, const G4String& placement, 586 const G4String& cmdName="setAuxPtsSizeType") 587 :G4ModelCmdApplyString<M>(model, placement, cmdName) 588 { 589 G4UIcmdWithAString* cmd = G4ModelCmdApplyString<M>::Command(); 590 cmd->SetGuidance("Set auxiliary size type."); 591 cmd->SetCandidates("none world screen"); 592 } 593 594 protected: 595 596 void Apply(const G4String& type) { 597 G4VMarker::SizeType mySizeType; 598 599 if (type == "none") {mySizeType = G4VMarker::none;} 600 else if (type == "world") {mySizeType = G4VMarker::world;} 601 else if (type == "screen") {mySizeType = G4VMarker::screen;} 602 else { 603 std::ostringstream o; 604 o << "Invalid argument. See command guidance for options."; 605 G4Exception 606 ("G4ModelCmdSetAuxPtsSizeType::Apply", 607 "InvalidArgument", JustWarning, o.str().c_str()); 608 return; 609 } 610 G4VModelCommand<M>::Model()->SetAuxPtsSizeType(mySizeType); 611 } 612 613 }; 614 615 //////////////////////////////////////////////////////////////////////// 518 616 // Set step points fill style command 519 617 template <typename M> -
trunk/source/visualization/modeling/include/G4ModelCompoundCommandsT.hh
r850 r931 25 25 // 26 26 // $Id: G4ModelCompoundCommandsT.hh,v 1.1 2006/09/11 21:52:18 tinslay Exp $ 27 // GEANT4 tag $Name: HEAD$27 // GEANT4 tag $Name: modeling-V09-02-00 $ 28 28 // 29 29 // Jane Tinslay September 2006 -
trunk/source/visualization/modeling/include/G4ModelingParameters.hh
r850 r931 26 26 // 27 27 // $Id: G4ModelingParameters.hh,v 1.17 2006/11/14 14:42:08 allison Exp $ 28 // GEANT4 tag $Name: HEAD$28 // GEANT4 tag $Name: modeling-V09-02-00 $ 29 29 // 30 30 // -
trunk/source/visualization/modeling/include/G4ModelingParameters.icc
r850 r931 26 26 // 27 27 // $Id: G4ModelingParameters.icc,v 1.11 2006/11/14 14:42:08 allison Exp $ 28 // GEANT4 tag $Name: HEAD$28 // GEANT4 tag $Name: modeling-V09-02-00 $ 29 29 // 30 30 // -
trunk/source/visualization/modeling/include/G4NullModel.hh
r850 r931 26 26 // 27 27 // $Id: G4NullModel.hh,v 1.7 2006/06/29 21:30:30 gunter Exp $ 28 // GEANT4 tag $Name: HEAD$28 // GEANT4 tag $Name: modeling-V09-02-00 $ 29 29 // 30 30 // -
trunk/source/visualization/modeling/include/G4PhysicalVolumeMassScene.hh
r842 r931 26 26 // 27 27 // $Id: G4PhysicalVolumeMassScene.hh,v 1.9 2008/01/04 21:59:15 allison Exp $ 28 // GEANT4 tag $Name: HEAD$28 // GEANT4 tag $Name: modeling-V09-02-00 $ 29 29 // 30 30 // -
trunk/source/visualization/modeling/include/G4PhysicalVolumeModel.hh
r850 r931 26 26 // 27 27 // $Id: G4PhysicalVolumeModel.hh,v 1.34 2007/04/03 13:46:49 allison Exp $ 28 // GEANT4 tag $Name: HEAD$28 // GEANT4 tag $Name: modeling-V09-02-00 $ 29 29 // 30 30 // -
trunk/source/visualization/modeling/include/G4PhysicalVolumeSearchScene.hh
r842 r931 26 26 // 27 27 // $Id: G4PhysicalVolumeSearchScene.hh,v 1.18 2008/01/04 21:59:15 allison Exp $ 28 // GEANT4 tag $Name: HEAD$28 // GEANT4 tag $Name: modeling-V09-02-00 $ 29 29 // 30 30 // -
trunk/source/visualization/modeling/include/G4PhysicalVolumeSearchScene.icc
r850 r931 26 26 // 27 27 // $Id: G4PhysicalVolumeSearchScene.icc,v 1.6 2006/06/29 21:30:38 gunter Exp $ 28 // GEANT4 tag $Name: HEAD$28 // GEANT4 tag $Name: modeling-V09-02-00 $ 29 29 // 30 30 // -
trunk/source/visualization/modeling/include/G4ScaleModel.hh
r850 r931 26 26 // 27 27 // $Id: G4ScaleModel.hh,v 1.4 2006/11/01 10:28:42 allison Exp $ 28 // GEANT4 tag $Name: HEAD$28 // GEANT4 tag $Name: modeling-V09-02-00 $ 29 29 // 30 30 // -
trunk/source/visualization/modeling/include/G4TextModel.hh
r850 r931 26 26 // 27 27 // $Id: G4TextModel.hh,v 1.7 2006/11/01 10:28:42 allison Exp $ 28 // GEANT4 tag $Name: HEAD$28 // GEANT4 tag $Name: modeling-V09-02-00 $ 29 29 // 30 30 // -
trunk/source/visualization/modeling/include/G4TrajectoriesModel.hh
r850 r931 26 26 // 27 27 // $Id: G4TrajectoriesModel.hh,v 1.10 2006/10/26 11:10:23 allison Exp $ 28 // GEANT4 tag $Name: HEAD$28 // GEANT4 tag $Name: modeling-V09-02-00 $ 29 29 // 30 30 // -
trunk/source/visualization/modeling/include/G4TrajectoryChargeFilter.hh
r850 r931 25 25 // 26 26 // $Id: G4TrajectoryChargeFilter.hh,v 1.3 2006/08/25 19:44:14 tinslay Exp $ 27 // GEANT4 tag $Name: HEAD$27 // GEANT4 tag $Name: modeling-V09-02-00 $ 28 28 // 29 29 // Filter trajectories according to charge. Only registered -
trunk/source/visualization/modeling/include/G4TrajectoryDrawByAttribute.hh
r850 r931 25 25 // 26 26 // $Id: G4TrajectoryDrawByAttribute.hh,v 1.1 2006/09/11 21:52:18 tinslay Exp $ 27 // GEANT4 tag $Name: HEAD$27 // GEANT4 tag $Name: modeling-V09-02-00 $ 28 28 // 29 29 // Jane Tinslay September 2006 -
trunk/source/visualization/modeling/include/G4TrajectoryDrawByCharge.hh
r850 r931 25 25 // 26 26 // $Id: G4TrajectoryDrawByCharge.hh,v 1.7 2006/06/29 21:31:49 gunter Exp $ 27 // GEANT4 tag $Name: HEAD$27 // GEANT4 tag $Name: modeling-V09-02-00 $ 28 28 // 29 29 // Jane Tinslay, John Allison, Joseph Perl November 2005 -
trunk/source/visualization/modeling/include/G4TrajectoryDrawByOriginVolume.hh
r850 r931 25 25 // 26 26 // $Id: G4TrajectoryDrawByOriginVolume.hh,v 1.4 2006/06/29 21:31:51 gunter Exp $ 27 // GEANT4 tag $Name: HEAD$27 // GEANT4 tag $Name: modeling-V09-02-00 $ 28 28 // 29 29 // Class Description: -
trunk/source/visualization/modeling/include/G4TrajectoryDrawByParticleID.hh
r850 r931 25 25 // 26 26 // $Id: G4TrajectoryDrawByParticleID.hh,v 1.7 2006/06/29 21:31:53 gunter Exp $ 27 // GEANT4 tag $Name: HEAD$27 // GEANT4 tag $Name: modeling-V09-02-00 $ 28 28 // 29 29 // Jane Tinslay, John Allison, Joseph Perl November 2005 -
trunk/source/visualization/modeling/include/G4TrajectoryDrawerUtils.hh
r850 r931 25 25 // 26 26 // $Id: G4TrajectoryDrawerUtils.hh,v 1.7 2007/05/30 08:56:55 allison Exp $ 27 // GEANT4 tag $Name: HEAD$27 // GEANT4 tag $Name: modeling-V09-02-00 $ 28 28 // 29 29 // Jane Tinslay, John Allison, Joseph Perl November 2005 -
trunk/source/visualization/modeling/include/G4TrajectoryFilterFactories.hh
r850 r931 25 25 // 26 26 /// $Id: G4TrajectoryFilterFactories.hh,v 1.4 2006/09/12 18:53:03 tinslay Exp $ 27 // GEANT4 tag $Name: HEAD$27 // GEANT4 tag $Name: modeling-V09-02-00 $ 28 28 // 29 29 // -
trunk/source/visualization/modeling/include/G4TrajectoryGenericDrawer.hh
r850 r931 25 25 // 26 26 // $Id: G4TrajectoryGenericDrawer.hh,v 1.2 2006/06/29 21:31:59 gunter Exp $ 27 // GEANT4 tag $Name: HEAD$27 // GEANT4 tag $Name: modeling-V09-02-00 $ 28 28 // 29 29 // Jane Tinslay, John Allison, Joseph Perl November 2005 -
trunk/source/visualization/modeling/include/G4TrajectoryModelFactories.hh
r850 r931 25 25 // 26 26 // $Id: G4TrajectoryModelFactories.hh,v 1.6 2006/09/12 18:53:03 tinslay Exp $ 27 // GEANT4 tag $Name: HEAD$27 // GEANT4 tag $Name: modeling-V09-02-00 $ 28 28 // 29 29 // Jane Tinslay, John Allison, Joseph Perl October 2005 -
trunk/source/visualization/modeling/include/G4TrajectoryOriginVolumeFilter.hh
r850 r931 25 25 // 26 26 // $Id: G4TrajectoryOriginVolumeFilter.hh,v 1.3 2006/08/25 19:44:14 tinslay Exp $ 27 // GEANT4 tag $Name: HEAD$27 // GEANT4 tag $Name: modeling-V09-02-00 $ 28 28 // 29 29 // Filter trajectories according to volume name. Only registered -
trunk/source/visualization/modeling/include/G4TrajectoryParticleFilter.hh
r850 r931 25 25 // 26 26 // $Id: G4TrajectoryParticleFilter.hh,v 1.3 2006/08/25 19:44:14 tinslay Exp $ 27 // GEANT4 tag $Name: HEAD$27 // GEANT4 tag $Name: modeling-V09-02-00 $ 28 28 // 29 29 // Filter trajectories according to particle type. Only registered -
trunk/source/visualization/modeling/include/G4VAttValueFilter.hh
r850 r931 25 25 // 26 26 // $Id: G4VAttValueFilter.hh,v 1.2 2006/12/13 15:50:04 gunter Exp $ 27 // GEANT4 tag $Name: HEAD$27 // GEANT4 tag $Name: modeling-V09-02-00 $ 28 28 // 29 29 // Abstract base class for G4AttValue filters -
trunk/source/visualization/modeling/include/G4VModel.hh
r850 r931 26 26 // 27 27 // $Id: G4VModel.hh,v 1.19 2006/07/10 16:09:30 allison Exp $ 28 // GEANT4 tag $Name: HEAD$28 // GEANT4 tag $Name: modeling-V09-02-00 $ 29 29 // 30 30 // -
trunk/source/visualization/modeling/include/G4VModel.icc
r850 r931 26 26 // 27 27 // $Id: G4VModel.icc,v 1.12 2006/07/10 16:09:30 allison Exp $ 28 // GEANT4 tag $Name: HEAD$28 // GEANT4 tag $Name: modeling-V09-02-00 $ 29 29 // 30 30 // -
trunk/source/visualization/modeling/include/G4VModelCommand.hh
r850 r931 25 25 // 26 26 // $Id: G4VModelCommand.hh,v 1.4 2006/09/11 21:22:02 tinslay Exp $ 27 // GEANT4 tag $Name: HEAD$27 // GEANT4 tag $Name: modeling-V09-02-00 $ 28 28 // 29 29 // Jane Tinslay, John Allison, Joseph Perl November 2005 -
trunk/source/visualization/modeling/include/G4VModelFactory.hh
r850 r931 25 25 // 26 26 // $Id: G4VModelFactory.hh,v 1.6 2006/06/29 21:32:30 gunter Exp $ 27 // GEANT4 tag $Name: HEAD$27 // GEANT4 tag $Name: modeling-V09-02-00 $ 28 28 // 29 29 // Jane Tinslay, John Allison, Joseph Perl October 2005 -
trunk/source/visualization/modeling/include/G4VTrajectoryModel.hh
r850 r931 25 25 // 26 26 // $Id: G4VTrajectoryModel.hh,v 1.7 2006/08/14 11:43:34 allison Exp $ 27 // GEANT4 tag $Name: HEAD$27 // GEANT4 tag $Name: modeling-V09-02-00 $ 28 28 // 29 29 // Jane Tinslay, John Allison, Joseph Perl October 2005 -
trunk/source/visualization/modeling/include/G4VisTrajContext.hh
r850 r931 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4VisTrajContext.hh,v 1. 3 2006/08/14 11:47:53allison Exp $27 // GEANT4 tag $Name: HEAD$26 // $Id: G4VisTrajContext.hh,v 1.4 2009/02/24 12:00:56 allison Exp $ 27 // GEANT4 tag $Name: modeling-V09-02-00 $ 28 28 // 29 29 // Jane Tinslay May 2006 … … 72 72 G4double GetAuxPtsSize() const; 73 73 74 void SetAuxPtsSizeType(const G4VMarker::SizeType& sizeType); 75 G4VMarker::SizeType GetAuxPtsSizeType() const; 76 74 77 void SetAuxPtsFillStyle(const G4VMarker::FillStyle& style); 75 78 G4VMarker::FillStyle GetAuxPtsFillStyle() const; … … 90 93 void SetStepPtsSize(const G4double& size); 91 94 G4double GetStepPtsSize() const; 95 96 void SetStepPtsSizeType(const G4VMarker::SizeType& sizeType); 97 G4VMarker::SizeType GetStepPtsSizeType() const; 92 98 93 99 void SetStepPtsFillStyle(const G4VMarker::FillStyle& style); … … 117 123 G4Polymarker::MarkerType fAuxPtsType; 118 124 G4double fAuxPtsSize; 125 G4VMarker::SizeType fAuxPtsSizeType; 119 126 G4VMarker::FillStyle fAuxPtsFillStyle; 120 127 G4Colour fAuxPtsColour; … … 125 132 G4Polymarker::MarkerType fStepPtsType; 126 133 G4double fStepPtsSize; 134 G4VMarker::SizeType fStepPtsSizeType; 127 135 G4VMarker::FillStyle fStepPtsFillStyle; 128 136 G4Colour fStepPtsColour; -
trunk/source/visualization/modeling/include/G4VisTrajContext.icc
r850 r931 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4VisTrajContext.icc,v 1. 3 2006/08/14 11:47:53allison Exp $27 // GEANT4 tag $Name: HEAD$26 // $Id: G4VisTrajContext.icc,v 1.4 2009/02/24 12:00:56 allison Exp $ 27 // GEANT4 tag $Name: modeling-V09-02-00 $ 28 28 // 29 29 // Jane Tinslay May 2006 … … 61 61 inline G4double G4VisTrajContext::GetAuxPtsSize() const {return fAuxPtsSize;} 62 62 63 inline void G4VisTrajContext::SetAuxPtsSizeType(const G4VMarker::SizeType& sizeType) {fAuxPtsSizeType = sizeType;} 64 inline G4VMarker::SizeType G4VisTrajContext::GetAuxPtsSizeType() const {return fAuxPtsSizeType;} 65 63 66 inline void G4VisTrajContext::SetAuxPtsFillStyle(const G4VMarker::FillStyle& style) {fAuxPtsFillStyle = style;} 64 67 inline G4VMarker::FillStyle G4VisTrajContext::GetAuxPtsFillStyle() const {return fAuxPtsFillStyle;} … … 79 82 inline void G4VisTrajContext::SetStepPtsSize(const G4double& size) {fStepPtsSize = size;} 80 83 inline G4double G4VisTrajContext::GetStepPtsSize() const {return fStepPtsSize;} 84 85 inline void G4VisTrajContext::SetStepPtsSizeType(const G4VMarker::SizeType& sizeType) {fStepPtsSizeType = sizeType;} 86 inline G4VMarker::SizeType G4VisTrajContext::GetStepPtsSizeType() const {return fStepPtsSizeType;} 81 87 82 88 inline void G4VisTrajContext::SetStepPtsFillStyle(const G4VMarker::FillStyle& style) {fStepPtsFillStyle = style;} -
trunk/source/visualization/modeling/src/G4AttFilterUtils.cc
r850 r931 25 25 // 26 26 // $Id: G4AttFilterUtils.cc,v 1.4 2006/12/13 15:50:06 gunter Exp $ 27 // GEANT4 tag $Name: HEAD$27 // GEANT4 tag $Name: modeling-V09-02-00 $ 28 28 // 29 29 // Visualisation attribute filter utility functions. -
trunk/source/visualization/modeling/src/G4AxesModel.cc
r850 r931 26 26 // 27 27 // $Id: G4AxesModel.cc,v 1.6 2006/06/29 21:32:38 gunter Exp $ 28 // GEANT4 tag $Name: HEAD$28 // GEANT4 tag $Name: modeling-V09-02-00 $ 29 29 // 30 30 // -
trunk/source/visualization/modeling/src/G4BoundingSphereScene.cc
r850 r931 26 26 // 27 27 // $Id: G4BoundingSphereScene.cc,v 1.11 2006/06/29 21:32:40 gunter Exp $ 28 // GEANT4 tag $Name: HEAD$28 // GEANT4 tag $Name: modeling-V09-02-00 $ 29 29 // 30 30 // -
trunk/source/visualization/modeling/src/G4FlavoredParallelWorldModel.cc
r850 r931 26 26 // 27 27 // $Id: G4FlavoredParallelWorldModel.cc,v 1.7 2006/06/29 21:32:42 gunter Exp $ 28 // GEANT4 tag $Name: HEAD$28 // GEANT4 tag $Name: modeling-V09-02-00 $ 29 29 // 30 30 // P. Mora de Freitas et M.Verderi - 19 June 1998. -
trunk/source/visualization/modeling/src/G4HitFilterFactories.cc
r850 r931 25 25 // 26 26 /// $Id: G4HitFilterFactories.cc,v 1.1 2006/09/12 18:53:03 tinslay Exp $ 27 // GEANT4 tag $Name: HEAD$27 // GEANT4 tag $Name: modeling-V09-02-00 $ 28 28 // 29 29 // -
trunk/source/visualization/modeling/src/G4HitsModel.cc
r850 r931 26 26 // 27 27 // $Id: G4HitsModel.cc,v 1.18 2006/11/14 14:42:08 allison Exp $ 28 // GEANT4 tag $Name: HEAD$28 // GEANT4 tag $Name: modeling-V09-02-00 $ 29 29 // 30 30 // -
trunk/source/visualization/modeling/src/G4LogicalVolumeModel.cc
r850 r931 26 26 // 27 27 // $Id: G4LogicalVolumeModel.cc,v 1.14 2006/11/01 10:28:42 allison Exp $ 28 // GEANT4 tag $Name: HEAD$28 // GEANT4 tag $Name: modeling-V09-02-00 $ 29 29 // 30 30 // -
trunk/source/visualization/modeling/src/G4ModelingParameters.cc
r850 r931 26 26 // 27 27 // $Id: G4ModelingParameters.cc,v 1.15 2006/11/14 14:42:08 allison Exp $ 28 // GEANT4 tag $Name: HEAD$28 // GEANT4 tag $Name: modeling-V09-02-00 $ 29 29 // 30 30 // -
trunk/source/visualization/modeling/src/G4NullModel.cc
r850 r931 26 26 // 27 27 // $Id: G4NullModel.cc,v 1.9 2006/06/29 21:32:50 gunter Exp $ 28 // GEANT4 tag $Name: HEAD$28 // GEANT4 tag $Name: modeling-V09-02-00 $ 29 29 // 30 30 // -
trunk/source/visualization/modeling/src/G4PhysicalVolumeMassScene.cc
r850 r931 26 26 // 27 27 // $Id: G4PhysicalVolumeMassScene.cc,v 1.7 2006/11/06 09:24:13 allison Exp $ 28 // GEANT4 tag $Name: HEAD$28 // GEANT4 tag $Name: modeling-V09-02-00 $ 29 29 // 30 30 // -
trunk/source/visualization/modeling/src/G4PhysicalVolumeModel.cc
r850 r931 26 26 // 27 27 // $Id: G4PhysicalVolumeModel.cc,v 1.63 2007/11/10 14:56:36 allison Exp $ 28 // GEANT4 tag $Name: HEAD$28 // GEANT4 tag $Name: modeling-V09-02-00 $ 29 29 // 30 30 // -
trunk/source/visualization/modeling/src/G4PhysicalVolumeSearchScene.cc
r850 r931 26 26 // 27 27 // $Id: G4PhysicalVolumeSearchScene.cc,v 1.14 2008/07/27 10:49:24 allison Exp $ 28 // GEANT4 tag $Name: HEAD$28 // GEANT4 tag $Name: modeling-V09-02-00 $ 29 29 // 30 30 // -
trunk/source/visualization/modeling/src/G4ScaleModel.cc
r850 r931 26 26 // 27 27 // $Id: G4ScaleModel.cc,v 1.4 2006/06/29 21:32:58 gunter Exp $ 28 // GEANT4 tag $Name: HEAD$28 // GEANT4 tag $Name: modeling-V09-02-00 $ 29 29 // 30 30 // -
trunk/source/visualization/modeling/src/G4TextModel.cc
r850 r931 26 26 // 27 27 // $Id: G4TextModel.cc,v 1.7 2006/06/29 21:33:00 gunter Exp $ 28 // GEANT4 tag $Name: HEAD$28 // GEANT4 tag $Name: modeling-V09-02-00 $ 29 29 // 30 30 // -
trunk/source/visualization/modeling/src/G4TrajectoriesModel.cc
r850 r931 26 26 // 27 27 // $Id: G4TrajectoriesModel.cc,v 1.24 2006/11/14 14:42:08 allison Exp $ 28 // GEANT4 tag $Name: HEAD$28 // GEANT4 tag $Name: modeling-V09-02-00 $ 29 29 // 30 30 // -
trunk/source/visualization/modeling/src/G4TrajectoryChargeFilter.cc
r850 r931 25 25 // 26 26 // $Id: G4TrajectoryChargeFilter.cc,v 1.4 2006/08/25 19:44:14 tinslay Exp $ 27 // GEANT4 tag $Name: HEAD$27 // GEANT4 tag $Name: modeling-V09-02-00 $ 28 28 // 29 29 // Filter trajectories according to charge. Only registered -
trunk/source/visualization/modeling/src/G4TrajectoryDrawByAttribute.cc
r850 r931 25 25 // 26 26 // $Id: G4TrajectoryDrawByAttribute.cc,v 1.3 2006/09/14 15:41:42 tinslay Exp $ 27 // GEANT4 tag $Name: HEAD$27 // GEANT4 tag $Name: modeling-V09-02-00 $ 28 28 // 29 29 // Jane Tinslay August 2006 -
trunk/source/visualization/modeling/src/G4TrajectoryDrawByCharge.cc
r850 r931 25 25 // 26 26 // $Id: G4TrajectoryDrawByCharge.cc,v 1.8 2006/06/29 21:33:06 gunter Exp $ 27 // GEANT4 tag $Name: HEAD$27 // GEANT4 tag $Name: modeling-V09-02-00 $ 28 28 // 29 29 // Jane Tinslay, John Allison, Joseph Perl November 2005 -
trunk/source/visualization/modeling/src/G4TrajectoryDrawByOriginVolume.cc
r850 r931 25 25 // 26 26 // $Id: G4TrajectoryDrawByOriginVolume.cc,v 1.4 2006/06/29 21:33:08 gunter Exp $ 27 // GEANT4 tag $Name: HEAD$27 // GEANT4 tag $Name: modeling-V09-02-00 $ 28 28 // 29 29 // Jane Tinslay March 2006 -
trunk/source/visualization/modeling/src/G4TrajectoryDrawByParticleID.cc
r850 r931 25 25 // 26 26 // $Id: G4TrajectoryDrawByParticleID.cc,v 1.8 2006/06/29 21:33:10 gunter Exp $ 27 // GEANT4 tag $Name: HEAD$27 // GEANT4 tag $Name: modeling-V09-02-00 $ 28 28 // 29 29 // Jane Tinslay, John Allison, Joseph Perl November 2005 -
trunk/source/visualization/modeling/src/G4TrajectoryDrawerUtils.cc
r850 r931 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4TrajectoryDrawerUtils.cc,v 1.1 1 2007/05/30 08:56:55allison Exp $27 // GEANT4 tag $Name: HEAD$26 // $Id: G4TrajectoryDrawerUtils.cc,v 1.12 2009/02/24 12:00:56 allison Exp $ 27 // GEANT4 tag $Name: modeling-V09-02-00 $ 28 28 // 29 29 // Jane Tinslay, John Allison, Joseph Perl November 2005 … … 254 254 if (myContext.GetDrawAuxPts() && (auxiliaryPoints.size() > 0)) { 255 255 auxiliaryPoints.SetMarkerType(myContext.GetAuxPtsType()); 256 auxiliaryPoints.SetS creenSize(myContext.GetAuxPtsSize());256 auxiliaryPoints.SetSize(myContext.GetAuxPtsSizeType(), myContext.GetAuxPtsSize()); 257 257 auxiliaryPoints.SetFillStyle(myContext.GetAuxPtsFillStyle()); 258 258 … … 266 266 if (myContext.GetDrawStepPts() && (stepPoints.size() > 0)) { 267 267 stepPoints.SetMarkerType(myContext.GetStepPtsType()); 268 stepPoints.SetS creenSize(myContext.GetStepPtsSize());268 stepPoints.SetSize(myContext.GetStepPtsSizeType(), myContext.GetStepPtsSize()); 269 269 stepPoints.SetFillStyle(myContext.GetStepPtsFillStyle()); 270 270 … … 313 313 point.push_back(auxiliaryPoints[i]); 314 314 point.SetMarkerType(myContext.GetAuxPtsType()); 315 point.SetS creenSize(myContext.GetAuxPtsSize());315 point.SetSize(myContext.GetAuxPtsSizeType(), myContext.GetAuxPtsSize()); 316 316 point.SetFillStyle(myContext.GetAuxPtsFillStyle()); 317 317 auxiliaryPointsAttribs.SetStartTime(auxiliaryPointTimes[i]); … … 330 330 point.push_back(stepPoints[i]); 331 331 point.SetMarkerType(myContext.GetStepPtsType()); 332 point.SetS creenSize(myContext.GetStepPtsSize());332 point.SetSize(myContext.GetStepPtsSizeType(), myContext.GetStepPtsSize()); 333 333 point.SetFillStyle(myContext.GetStepPtsFillStyle()); 334 334 stepPointsAttribs.SetStartTime(stepPointTimes[i]); -
trunk/source/visualization/modeling/src/G4TrajectoryFilterFactories.cc
r850 r931 25 25 // 26 26 /// $Id: G4TrajectoryFilterFactories.cc,v 1.5 2006/09/12 18:53:03 tinslay Exp $ 27 // GEANT4 tag $Name: HEAD$27 // GEANT4 tag $Name: modeling-V09-02-00 $ 28 28 // 29 29 // -
trunk/source/visualization/modeling/src/G4TrajectoryGenericDrawer.cc
r850 r931 25 25 // 26 26 // $Id: G4TrajectoryGenericDrawer.cc,v 1.2 2006/06/29 21:33:16 gunter Exp $ 27 // GEANT4 tag $Name: HEAD$27 // GEANT4 tag $Name: modeling-V09-02-00 $ 28 28 // 29 29 // Jane Tinslay May 2006 -
trunk/source/visualization/modeling/src/G4TrajectoryModelFactories.cc
r850 r931 25 25 // 26 26 // $Id: G4TrajectoryModelFactories.cc,v 1.7 2006/09/12 18:53:03 tinslay Exp $ 27 // GEANT4 tag $Name: HEAD$27 // GEANT4 tag $Name: modeling-V09-02-00 $ 28 28 // 29 29 // Jane Tinslay, John Allison, Joseph Perl October 2005 -
trunk/source/visualization/modeling/src/G4TrajectoryOriginVolumeFilter.cc
r850 r931 25 25 // 26 26 // $Id: G4TrajectoryOriginVolumeFilter.cc,v 1.3 2006/08/25 19:44:14 tinslay Exp $ 27 // GEANT4 tag $Name: HEAD$27 // GEANT4 tag $Name: modeling-V09-02-00 $ 28 28 // 29 29 // Filter trajectories according to volume name. Only registered -
trunk/source/visualization/modeling/src/G4TrajectoryParticleFilter.cc
r850 r931 25 25 // 26 26 // $Id: G4TrajectoryParticleFilter.cc,v 1.3 2006/08/25 19:44:14 tinslay Exp $ 27 // GEANT4 tag $Name: HEAD$27 // GEANT4 tag $Name: modeling-V09-02-00 $ 28 28 // 29 29 // Filter trajectories according to particle type. Only registered -
trunk/source/visualization/modeling/src/G4VModel.cc
r850 r931 26 26 // 27 27 // $Id: G4VModel.cc,v 1.14 2006/11/01 10:33:00 allison Exp $ 28 // GEANT4 tag $Name: HEAD$28 // GEANT4 tag $Name: modeling-V09-02-00 $ 29 29 // 30 30 // -
trunk/source/visualization/modeling/src/G4VTrajectoryModel.cc
r850 r931 25 25 // 26 26 // $Id: G4VTrajectoryModel.cc,v 1.3 2006/06/29 21:33:26 gunter Exp $ 27 // GEANT4 tag $Name: HEAD$27 // GEANT4 tag $Name: modeling-V09-02-00 $ 28 28 // 29 29 // Jane Tinslay May 2006 -
trunk/source/visualization/modeling/src/G4VisTrajContext.cc
r834 r931 35 35 ,fAuxPtsType(G4Polymarker::squares) 36 36 ,fAuxPtsSize(2) 37 ,fAuxPtsSizeType(G4VMarker::screen) 37 38 ,fAuxPtsFillStyle(G4VMarker::filled) 38 39 ,fAuxPtsColour(G4Colour::Magenta()) … … 41 42 ,fStepPtsType(G4Polymarker::circles) 42 43 ,fStepPtsSize(2) 44 ,fStepPtsSizeType(G4VMarker::screen) 43 45 ,fStepPtsFillStyle(G4VMarker::filled) 44 46 ,fStepPtsColour(G4Colour::Yellow())
Note: See TracChangeset
for help on using the changeset viewer.