Salome HOME
Fix for PAL21179: V6_main_20120117 V6_main_20120118 V6_main_20120119 V6_main_20120123 V6_main_20120125
authormkr <mkr@opencascade.com>
Thu, 12 Jan 2012 16:38:26 +0000 (16:38 +0000)
committermkr <mkr@opencascade.com>
Thu, 12 Jan 2012 16:38:26 +0000 (16:38 +0000)
1) draw outlines (borders) of the shapes,
2) material properties.

src/OBJECT/VISU_Actor.cxx
src/OBJECT/VISU_Actor.h
src/OBJECT/VISU_MeshAct.cxx
src/OBJECT/VISU_ScalarMapAct.cxx
src/OBJECT/VISU_ScalarMapAct.h

index dc25a52b1f1c9d5e75be015769a264a77dc0e954..9e48b36090c45b87afad113fe3b2517d26ced5e2 100644 (file)
@@ -340,7 +340,7 @@ VISU_Actor
   {
     UnShrink();
   }
-  SetFeatureEdgesEnabled( theMode == SVTK::Representation::FeatureEdges );
+  SetFeatureEdgesEnabled( theMode == VTKViewer::Representation::FeatureEdges );
 }
 
 
index 4ea21ad6a3beedb02cd0ce39230aac0f7d67d733..7f4b343462a9494739ec4d70b6752b6274577b2d 100644 (file)
@@ -33,7 +33,7 @@
 #include "SALOME_Actor.h"
 #include "VISU_ActorBase.h"
 #include "VISU_BoostSignals.h"
-#include "SVTK_DeviceActor.h"
+#include "VTKViewer_Actor.h"
 
 #include <string>
 #include <vtkTimeStamp.h>
@@ -65,7 +65,7 @@ class VISU_UsedPointsFilter;
 #define VTK_XVERSION (VTK_MAJOR_VERSION<<16)+(VTK_MINOR_VERSION<<8)+(VTK_BUILD_VERSION)
 #endif
 
-namespace SVTK
+namespace VTKViewer
 {
   namespace Representation
   {
index 9c2c5040d173916e17eb292fdb402c81b6f998d0..2e26fcafa1d8f829ab70d910cea681d17e36739a 100644 (file)
@@ -54,19 +54,19 @@ VISU_MeshAct
   m = vtkMatrix4x4::New();
 
   mySurfaceActor = SVTK_DeviceActor::New();
-  mySurfaceActor->SetRepresentation(SVTK::Representation::Surface);
+  mySurfaceActor->SetRepresentation(VTKViewer::Representation::Surface);
   mySurfaceActor->SetUserMatrix(m);
 
   myEdgeActor = SVTK_DeviceActor::New();
-  myEdgeActor->SetRepresentation(SVTK::Representation::Wireframe);
+  myEdgeActor->SetRepresentation(VTKViewer::Representation::Wireframe);
   myEdgeActor->SetUserMatrix(m);
 
   myNodeActor = SVTK_DeviceActor::New();
-  myNodeActor->SetRepresentation(SVTK::Representation::Points);
+  myNodeActor->SetRepresentation(VTKViewer::Representation::Points);
   myNodeActor->SetUserMatrix(m);
 
   m->Delete();
-  SetRepresentation(SVTK::Representation::Surface);
+  SetRepresentation(VTKViewer::Representation::Surface);
 
   SUIT_ResourceMgr* aResourceMgr = SUIT_Session::session()->resourceMgr();
   //Quadratic 2D elements representation
@@ -293,10 +293,10 @@ VISU_MeshAct
 {
   Superclass::SetRepresentation(theMode);
 
-  if(theMode == SVTK::Representation::Insideframe)
-    myEdgeActor->SetRepresentation(SVTK::Representation::Insideframe);
+  if(theMode == VTKViewer::Representation::Insideframe)
+    myEdgeActor->SetRepresentation(VTKViewer::Representation::Insideframe);
   else
-    myEdgeActor->SetRepresentation(SVTK::Representation::Wireframe);
+    myEdgeActor->SetRepresentation(VTKViewer::Representation::Wireframe);
 }
 
 //----------------------------------------------------------------------------
@@ -339,7 +339,7 @@ VISU_MeshAct
   GetMatrix(myEdgeActor->GetUserMatrix());
   GetMatrix(mySurfaceActor->GetUserMatrix());
 
-  using namespace SVTK::Representation;
+  using namespace VTKViewer::Representation;
   switch(GetRepresentation()){
   case Points : 
     myNodeActor->SetAllocatedRenderTime(this->AllocatedRenderTime,ren);
@@ -378,7 +378,7 @@ VISU_MeshAct
   GetMatrix(myEdgeActor->GetUserMatrix());
   GetMatrix(mySurfaceActor->GetUserMatrix());
 
-  using namespace SVTK::Representation;
+  using namespace VTKViewer::Representation;
   switch(GetRepresentation()){
   case Points : 
     myNodeActor->SetAllocatedRenderTime(this->AllocatedRenderTime,ren);
@@ -432,7 +432,7 @@ VISU_MeshAct
 {
   int result = 0; 
 
-  using namespace SVTK::Representation;
+  using namespace VTKViewer::Representation;
   switch ( GetRepresentation() ) {
   case Points:
     result |= myNodeActor->HasTranslucentPolygonalGeometry();
index ac4e542b1d54c8c63adcc4c69585648d960dfff1..c5334947ac45d6dc0fcee88baac65b27cc76961b 100644 (file)
@@ -233,17 +233,17 @@ VISU_ScalarMapAct
   vtkMatrix4x4 *aMatrix = vtkMatrix4x4::New();
 
   mySurfaceActor= SVTK_DeviceActor::New();
-  mySurfaceActor->SetRepresentation(SVTK::Representation::Surface);
+  mySurfaceActor->SetRepresentation(VTKViewer::Representation::Surface);
   mySurfaceActor->SetProperty(aProperty);
   mySurfaceActor->SetUserMatrix(aMatrix);
 
   myEdgeActor = SVTK_DeviceActor::New();
-  myEdgeActor->SetRepresentation(SVTK::Representation::Wireframe);
+  myEdgeActor->SetRepresentation(VTKViewer::Representation::Wireframe);
   myEdgeActor->SetUserMatrix(aMatrix);
   myEdgeActor->GetProperty()->SetColor(255.,255.,255.);
 
   myPointsActor = SVTK_DeviceActor::New();
-  myPointsActor->SetRepresentation(SVTK::Representation::Points);
+  myPointsActor->SetRepresentation(VTKViewer::Representation::Points);
   myPointsActor->SetProperty(aProperty);
   myPointsActor->SetUserMatrix(aMatrix);
 
@@ -572,8 +572,8 @@ VISU_ScalarMapAct
 
   Superclass::SetRepresentation(theMode);
 
-  if(theMode == SVTK::Representation::Surfaceframe)
-    mySurfaceActor->SetRepresentation(SVTK::Representation::Surface);
+  if(theMode == VTKViewer::Representation::Surfaceframe)
+    mySurfaceActor->SetRepresentation(VTKViewer::Representation::Surface);
   else
     mySurfaceActor->SetRepresentation(theMode);
 
@@ -619,7 +619,7 @@ VISU_ScalarMapAct
   GetMatrix(myPointsActor->GetUserMatrix());
   GetMatrix(myPointSpriteActor->GetUserMatrix());
 
-  using namespace SVTK::Representation;
+  using namespace VTKViewer::Representation;
   switch ( GetRepresentation() ) {
 
   case Surfaceframe:
@@ -659,7 +659,7 @@ VISU_ScalarMapAct
   GetMatrix(myEdgeActor->GetUserMatrix());
   GetMatrix(mySurfaceActor->GetUserMatrix());
 
-  using namespace SVTK::Representation;
+  using namespace VTKViewer::Representation;
   switch ( GetRepresentation() ) {
 
   case Surfaceframe:
@@ -716,7 +716,7 @@ VISU_ScalarMapAct
 {
   int result = 0; 
 
-  using namespace SVTK::Representation;
+  using namespace VTKViewer::Representation;
   switch ( GetRepresentation() ) {
   case Surfaceframe:
     result |= mySurfaceActor->HasTranslucentPolygonalGeometry();
index c6925b4eb795fd28360d9ab5010478ca747f074e..f7ecaeaf878bf897d4009915165c7769f2962ddc 100644 (file)
@@ -31,6 +31,7 @@
 
 #include "VISU_OBJECT.h"
 #include "VISU_DataSetActor.h"
+#include "SVTK_DeviceActor.h"
 
 namespace VTK
 {