]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
IPAL12801
authorouv <ouv@opencascade.com>
Thu, 29 Jun 2006 10:34:00 +0000 (10:34 +0000)
committerouv <ouv@opencascade.com>
Thu, 29 Jun 2006 10:34:00 +0000 (10:34 +0000)
src/PIPELINE/VISUPipeLine.cxx
src/PIPELINE/VISU_OpenGLPointSpriteMapper.cxx
src/VISU_I/VISU_GaussPoints_i.cc
src/VVTK/VVTK_PrimitiveBox.cxx
src/VVTK/VVTK_SegmentationCursorDlg.cxx

index ea89fa292994c5eba0601b0d289c2ccb0b8160ae..2af09bb99c4423d97d9fb0f57575c8a4bd7b2d9c 100644 (file)
@@ -134,12 +134,12 @@ int main(int argc, char** argv){
 
          char aMainTexture[80];
          strcpy( aMainTexture, getenv( "VISU_ROOT_DIR" ) );
-         strcat( aMainTexture, "/share/salome/resources/sprite_texture.vti" );
+         strcat( aMainTexture, "/share/salome/resources/visu/sprite_texture.vti" );
          //cout << aMainTexture << endl;
 
          char anAlphaTexture[80];
          strcpy( anAlphaTexture, getenv( "VISU_ROOT_DIR" ) );
-         strcat( anAlphaTexture, "/share/salome/resources/sprite_alpha.vti" );
+         strcat( anAlphaTexture, "/share/salome/resources/visu/sprite_alpha.vti" );
          //cout << anAlphaTexture << endl;
 
          vtkSmartPointer<vtkImageData> aTextureValue = VISU_GaussPointsPL::MakeTexture( aMainTexture, anAlphaTexture );
index 481c755f168e76bc97ef2d97e732aac8f3e2ef86..f7e33812cfecf221d1593eb29c6b54a4b8a6ddcf 100755 (executable)
@@ -295,7 +295,7 @@ void VISU_OpenGLPointSpriteMapper::InitShader()
   //cout << "Initializing vertex program" << endl;
 
   std::string fileName = std::string( getenv( "VISU_ROOT_DIR") ) +
-                         "/share/salome/resources/Vertex_Program_ARB.txt";
+                         "/share/salome/resources/visu/Vertex_Program_ARB.txt";
 
   char* shader = readFromFile( fileName );
 
index f8fb14a02f870eb09393028a1b272e2d4ce41d74..2fde203e88d8f84600bbc39a0b1706cd9fb0896d 100644 (file)
@@ -196,10 +196,10 @@ VISU::GaussPoints_i
   int aFaceLimit = aResourceMgr->integerValue( "VISU", "geom_sphere_face_limit", GetFaceLimit() );
   SetFaceLimit( aFaceLimit );
 
-  QString aMainTexture = QString( getenv( "VISU_ROOT_DIR") ) + "/share/salome/resources/sprite_texture.bmp";
+  QString aMainTexture = QString( getenv( "VISU_ROOT_DIR") ) + "/share/salome/resources/visu/sprite_texture.bmp";
   aMainTexture = aResourceMgr->stringValue( "VISU", "point_sprite_main_texture", aMainTexture );
 
-  QString anAlphaTexture = QString( getenv( "VISU_ROOT_DIR") ) + "/share/salome/resources/sprite_alpha.bmp";
+  QString anAlphaTexture = QString( getenv( "VISU_ROOT_DIR") ) + "/share/salome/resources/visu/sprite_alpha.bmp";
   anAlphaTexture = aResourceMgr->stringValue( "VISU", "point_sprite_alpha_texture", anAlphaTexture );
 
   SetTextures( aMainTexture, anAlphaTexture );
index 4f3f9c78eec6168055d9e911ea22f461670590d7..fc0aaa75ccca5b920996a2b907f8fff044aed186 100644 (file)
@@ -64,7 +64,7 @@ VVTK_PrimitiveBox::VVTK_PrimitiveBox( QWidget* parent ) :
 
   myPrimitiveType = VISU_OpenGLPointSpriteMapper::PointSprite;
 
-  QString aRootDir = QString( getenv( "VISU_ROOT_DIR") ) + "/share/salome/resources/";
+  QString aRootDir = QString( getenv( "VISU_ROOT_DIR") ) + "/share/salome/resources/visu/";
   myMainTexture = aRootDir + "sprite_texture.bmp";
   myAlphaTexture = aRootDir + "sprite_alpha.bmp";
 
@@ -335,7 +335,7 @@ void VVTK_PrimitiveBox::setFaceLimit( int theFaceLimit )
 
 void VVTK_PrimitiveBox::onBrowseMainTexture()
 {
-  QString aRootDir = QString( getenv( "VISU_ROOT_DIR") ) + "/share/salome/resources/";
+  QString aRootDir = QString( getenv( "VISU_ROOT_DIR") ) + "/share/salome/resources/visu/";
   QString aFileName = QFileDialog::getOpenFileName( aRootDir, "Bitmap (*.bmp *.jpg *.png)", this );
 
   if( aFileName.isNull() )
@@ -347,7 +347,7 @@ void VVTK_PrimitiveBox::onBrowseMainTexture()
 
 void VVTK_PrimitiveBox::onBrowseAlphaTexture()
 {
-  QString aRootDir = QString( getenv( "VISU_ROOT_DIR") ) + "/share/salome/resources/";
+  QString aRootDir = QString( getenv( "VISU_ROOT_DIR") ) + "/share/salome/resources/visu/";
   QString aFileName = QFileDialog::getOpenFileName( aRootDir, "Bitmap (*.bmp *.jpg *.png)", this );
 
   if( aFileName.isNull() )
index 7784042c653c2ddbfd5666a9ff52bfa5f4bf7691..0c20ac649a6d2b98dd1c982d05e7902ad67054b4 100644 (file)
@@ -519,8 +519,8 @@ void VVTK_SegmentationCursorDlg::UpdateInsideGaussPoints()
 {
   int aPrimitiveType = VISU_OpenGLPointSpriteMapper::PointSprite;
   vtkFloatingPointType aClamp = 200.0;
-  QString aMainTexture = QString( getenv( "VISU_ROOT_DIR") ) + "/share/salome/resources/sprite_texture.bmp";
-  QString anAlphaTexture = QString( getenv( "VISU_ROOT_DIR") ) + "/share/salome/resources/sprite_alpha.bmp";
+  QString aMainTexture = QString( getenv( "VISU_ROOT_DIR") ) + "/share/salome/resources/visu/sprite_texture.bmp";
+  QString anAlphaTexture = QString( getenv( "VISU_ROOT_DIR") ) + "/share/salome/resources/visu/sprite_alpha.bmp";
   vtkFloatingPointType anAlphaThreshold = 0.1;
   int aResolution = 8;
   int aMinSize = 3;
@@ -587,8 +587,8 @@ void VVTK_SegmentationCursorDlg::UpdateOutsideGaussPoints()
 {
   vtkFloatingPointType aClamp = 256.0;
   int aPrimitiveType = VISU_OpenGLPointSpriteMapper::PointSprite;
-  QString aMainTexture = QString( getenv( "VISU_ROOT_DIR") ) + "/share/salome/resources/sprite_texture.bmp";
-  QString anAlphaTexture = QString( getenv( "VISU_ROOT_DIR") ) + "/share/salome/resources/sprite_alpha.bmp";
+  QString aMainTexture = QString( getenv( "VISU_ROOT_DIR") ) + "/share/salome/resources/visu/sprite_texture.bmp";
+  QString anAlphaTexture = QString( getenv( "VISU_ROOT_DIR") ) + "/share/salome/resources/visu/sprite_alpha.bmp";
   vtkFloatingPointType anAlphaThreshold = 0.1;
   int aResolution = 8;
   int aSize = 25;