Ignore:
Timestamp:
Feb 25, 2009, 4:19:05 PM (15 years ago)
Author:
garnier
Message:

test pour GL_POINTS au lieu de glBitmap

Location:
trunk/source/visualization/OpenInventor
Files:
3 edited

Legend:

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

    r924 r931  
    1 $Id: History,v 1.97 2009/02/16 15:31:05 lgarnier Exp $
     1$Id: History,v 1.98 2009/02/18 10:04:25 lgarnier Exp $
    22-------------------------------------------------------------------
    33
     
    2020History file for visualization/OpenInventor
    2121-------------------------------------------
     22
     2318 February 2009, Laurent Garnier
     24 - Bug fix in gl2ps drawing
    2225
    232616 February 2009, Laurent Garnier
  • trunk/source/visualization/OpenInventor/src/G4OpenInventorSceneHandler.cc

    r929 r931  
    2525//
    2626//
    27 // $Id: G4OpenInventorSceneHandler.cc,v 1.54 2008/04/04 13:40:04 allison Exp $
    28 // GEANT4 tag $Name: HEAD $
     27// $Id: G4OpenInventorSceneHandler.cc,v 1.55 2009/02/18 14:21:38 lgarnier Exp $
     28// GEANT4 tag $Name: $
    2929//
    3030//
     
    4646#include <Inventor/nodes/SoLineSet.h>
    4747#include <Inventor/nodes/SoCube.h>
    48 #include <Inventor/nodes/SoSphere.h>
    4948#include <Inventor/nodes/SoFont.h>
    5049#include <Inventor/nodes/SoText2.h>
     
    230229void G4OpenInventorSceneHandler::AddPrimitive (const G4Polymarker& polymarker)
    231230{
    232   printf("G4OpenInventorSceneHandler::AddPrimitive------ \n");
    233 
    234231  AddProperties(polymarker.GetVisAttributes()); // Transformation, colour, etc.
    235232
  • trunk/source/visualization/OpenInventor/src/SoMarkerSet.cc

    r930 r931  
    657657//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
    658658{
    659   printf("HEPVis_SoMarkerSet::GLRender\n");
     659  //  printf("HEPVis_SoMarkerSet::GLRender\n");
    660660  SoState* state = aAction->getState();
    661661
     
    711711//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
    712712{
    713   //  printf("drawMarker\n");
    714713  GLsizei w = 0,h = 0;
    715714  GLfloat xorig = 0,yorig = 0;
     
    719718    w = h = 5;
    720719    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) {
    721730    GLubyte* bitmap = getBitmap(w,h,sFigures[aStyle]);
    722731    glBitmap(w,h,xorig,yorig,0.,0.,bitmap);
    723732    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;
    738733  }
     734  printf("DM %d %d %f %f",w,h,xorig,yorig);
    739735
    740736  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);
    742739  }
    743740
Note: See TracChangeset for help on using the changeset viewer.