From cd21ef12f83490db3b5770253b096fe09ab2fc87 Mon Sep 17 00:00:00 2001 From: ouv Date: Fri, 19 Jun 2009 14:31:26 +0000 Subject: [PATCH] Partial fix for issue 0020115: [CEA 308] Quadratic elements visualization --- src/OBJECT/VISU_Actor.cxx | 14 +++++++++++++- src/OBJECT/VISU_MeshAct.cxx | 1 + src/OBJECT/VISU_ScalarMapAct.cxx | 1 + 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/OBJECT/VISU_Actor.cxx b/src/OBJECT/VISU_Actor.cxx index 905eaa43..ea90a56d 100644 --- a/src/OBJECT/VISU_Actor.cxx +++ b/src/OBJECT/VISU_Actor.cxx @@ -31,6 +31,7 @@ #include "VISU_PipeLine.hxx" +#include "SVTK_Actor.h" #include "SVTK_Event.h" #include "VTKViewer_FramedTextActor.h" @@ -1273,5 +1274,16 @@ VISU_Actor::GetQuadratic2DRepresentation() const void VISU_Actor::SetQuadratic2DRepresentation( EQuadratic2DRepresentation theMode ) { - + switch(theMode) { + case VISU_Actor::eArcs: + myPreHighlightActor->SetQuadraticArcMode(true); + myHighlightActor->SetQuadraticArcMode(true); + break; + case VISU_Actor::eLines: + myPreHighlightActor->SetQuadraticArcMode(false); + myHighlightActor->SetQuadraticArcMode(false); + break; + default: + break; + } } diff --git a/src/OBJECT/VISU_MeshAct.cxx b/src/OBJECT/VISU_MeshAct.cxx index c5c87fe5..410d91bf 100644 --- a/src/OBJECT/VISU_MeshAct.cxx +++ b/src/OBJECT/VISU_MeshAct.cxx @@ -416,6 +416,7 @@ VISU_MeshAct::GetQuadratic2DRepresentation() const void VISU_MeshAct::SetQuadratic2DRepresentation( EQuadratic2DRepresentation theMode ) { + Superclass::SetQuadratic2DRepresentation( theMode ); switch(theMode) { case VISU_Actor::eArcs: mySurfaceActor->SetQuadraticArcMode(true); diff --git a/src/OBJECT/VISU_ScalarMapAct.cxx b/src/OBJECT/VISU_ScalarMapAct.cxx index 013ab3d4..51e3ed80 100644 --- a/src/OBJECT/VISU_ScalarMapAct.cxx +++ b/src/OBJECT/VISU_ScalarMapAct.cxx @@ -667,6 +667,7 @@ VISU_ScalarMapAct void VISU_ScalarMapAct::SetQuadratic2DRepresentation( VISU_Actor::EQuadratic2DRepresentation theMode ) { + Superclass::SetQuadratic2DRepresentation( theMode ); switch(theMode) { case VISU_Actor::eArcs: mySurfaceActor->SetQuadraticArcMode(true); -- 2.39.2