// VISU OBJECT : interactive object for VISU entities implementation
//
// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-//
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
-//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-//
-// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
+// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+//
+// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
//
//
//
#include "VISU_ScalarMapPL.hxx"
#include "VISU_PipeLineUtils.hxx"
-#ifdef _DEBUG_
-static int MYDEBUG = 1;
-#else
-static int MYDEBUG = 0;
-#endif
-
vtkStandardNewMacro(VISU_ScalarMapPL);
myExtractor = VISU_Extractor::New();
//myExtractor->DebugOn();
+ myIsShrinkable = true;
}
}
-int VISU_ScalarMapPL::GetScaling() {
+int VISU_ScalarMapPL::GetScaling() {
return myBarTable->GetScale();
}
void VISU_ScalarMapPL::SetScaling(int theScaling) {
}
-float* VISU_ScalarMapPL::GetScalarRange() {
+float* VISU_ScalarMapPL::GetScalarRange() {
return myFieldTransform->GetScalarRange();
-}
+}
void VISU_ScalarMapPL::SetScalarRange(float theRange[2]){
myFieldTransform->SetScalarRange(theRange);
myBarTable->SetRange(theRange);
}
-void VISU_ScalarMapPL::SetNbColors(int theNbColors) {
+void VISU_ScalarMapPL::SetNbColors(int theNbColors) {
myMapperTable->SetNumberOfColors(theNbColors);
myBarTable->SetNumberOfColors(theNbColors);
Modified();
}
-int VISU_ScalarMapPL::GetNbColors() {
+int VISU_ScalarMapPL::GetNbColors() {
return myMapperTable->GetNumberOfColors();
}
}
-void VISU_ScalarMapPL::Build() {
- myExtractor->SetInput(myInput);
+void VISU_ScalarMapPL::Build() {
+ myExtractor->SetInput(GetInput2());
myFieldTransform->SetInput(myExtractor->GetOutput());
myMapper->SetInput(DoHook());
}
myMapperTable->Build();
myBarTable->Build();
- myMapper->SetLookupTable(myMapperTable);
+ myMapper->SetLookupTable(myMapperTable);
myMapper->SetScalarRange(aScalarRange);
VISU_PipeLine::Update();