]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Added prsmerger
authorenk <enk@opencascade.com>
Wed, 18 Oct 2006 12:24:21 +0000 (12:24 +0000)
committerenk <enk@opencascade.com>
Wed, 18 Oct 2006 12:24:21 +0000 (12:24 +0000)
src/VISU_I/VISU_Gen_i.cc
src/VISU_I/VISU_Gen_i.hh

index 0070b91253f30db1cd851275418cdea5dfe20bab..1fd83ec3193c8cd7472f8058a5da0810cb7bff39 100644 (file)
@@ -43,6 +43,7 @@
 #include "VISU_Table_i.hh"
 #include "VISU_TimeAnimation.h"
 #include "VISU_ScalarMapOnDeformedShape_i.hh"
+#include "VISU_PrsMerger_i.hh"
 
 #include "VISU_Actor.h"
 
@@ -215,6 +216,7 @@ namespace VISU
     Storable::Registry(Curve_i::myComment.c_str(),&(Curve_i::Restore));
     Storable::Registry(Container_i::myComment.c_str(),&(Container_i::Restore));
     Storable::Registry(ScalarMapOnDeformedShape_i::myComment.c_str(),&(Restore<ScalarMapOnDeformedShape_i>));
+    Storable::Registry(PrsMerger_i::myComment.c_str(),&(Restore<PrsMerger_i>));
   }
 
 
@@ -329,6 +331,7 @@ namespace VISU
              else if ( !aComment.compare(QString("CONTAINER")) ) aVISUType = VISU::TCONTAINER;
              else if ( !aComment.compare(QString("MESH")) ) aVISUType = VISU::TMESH;
              else if ( !aComment.compare(QString("SCALARMAP")) ) aVISUType = VISU::TSCALARMAP;
+             else if ( !aComment.compare(QString("PRSMERGER")) ) aVISUType = VISU::TPRSMERGER;
              else if ( !aComment.compare(QString("ISOSURFACE")) ) aVISUType = VISU::TISOSURFACE;
              else if ( !aComment.compare(QString("DEFORMEDSHAPE")) ) aVISUType = VISU::TDEFORMEDSHAPE;
              else if ( !aComment.compare(QString("SCALARMAPONDEFORMEDSHAPE")) ) aVISUType = VISU::TSCALARMAPONDEFORMEDSHAPE;
@@ -941,6 +944,15 @@ namespace VISU
     return Prs3dOnField<VISU::CutLines_i>(theResult,theMeshName,theEntity,theFieldName,theIteration)._retn();
   }
 
+  PrsMerger_ptr VISU_Gen_i::PrsMergerOnField(Result_ptr theResult,
+                                            const char* theMeshName,
+                                            VISU::Entity theEntity,
+                                            const char* theFieldName,
+                                            CORBA::Double theIteration)
+  {
+    return Prs3dOnField<VISU::PrsMerger_i>(theResult,theMeshName,theEntity,theFieldName,theIteration)._retn();
+  }
+
   Table_ptr VISU_Gen_i::CreateTable(const char* theTableEntry){
     if(myStudyDocument->GetProperties()->IsLocked())
       return Table::_nil();
index 1a5f6f8282b3f9c9cfb40f77187be3f05eb0bb22..f1f109c215632678a319405215c759804fb4472e 100644 (file)
@@ -275,6 +275,14 @@ namespace VISU
                  const char* theFieldName, 
                  CORBA::Double theIteration);
 
+    virtual
+    PrsMerger_ptr
+    PrsMergerOnField(Result_ptr theResult,
+                    const char* theMeshName, 
+                    VISU::Entity theEntity,
+                    const char* theFieldName, 
+                    CORBA::Double theIteration);
+
     //Create Digital Presentation
     virtual 
     Table_ptr