]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Texture for pipeline has been set
authorouv <ouv@opencascade.com>
Tue, 11 Oct 2005 14:21:12 +0000 (14:21 +0000)
committerouv <ouv@opencascade.com>
Tue, 11 Oct 2005 14:21:12 +0000 (14:21 +0000)
src/PIPELINE/VISUPipeLine.cxx

index 07e19ef72293ceef52d1d4a8a9574d57e738063c..c6cdc8260de92111e12a835a85afbe4646eeefe2 100644 (file)
@@ -136,6 +136,15 @@ int main(int argc, char** argv){
          //aPresent->SetNbParts(1);
          //aPresent->SetOrientation(VISU_CutPlanesPL::XY,0.0,0.0);
          //aPresent->SetScaling(VTK_SCALE_LOG10);
+
+         char* aMainTexture = getenv( "VISU_ROOT_DIR" );
+         strcat( aMainTexture, "/share/salome/resources/sprite_texture.vti" );
+
+         char* anAlphaTexture = getenv( "VISU_ROOT_DIR" );
+         strcat( anAlphaTexture, "/share/salome/resources/sprite_alpha.vti" );
+
+         aPresent->SetImageData( VISU_GaussPointsPL::MakeTexture( aMainTexture, anAlphaTexture ) );
+
          aPresent->Update();
 
          vtkActor* anActor = vtkActor::New();