BIN =
BIN_SRC =
-CPPFLAGS+= $(OCC_INCLUDES) $(VTK_INCLUDES) \
+CPPFLAGS+= $(OCC_INCLUDES) $(VTK_INCLUDES) $(QT_INCLUDES) \
-I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
LDFLAGS+= $(VTK_LIBS) -lSalomeObject -lVisuPipeLine \
-L${KERNEL_ROOT_DIR}/lib/salome -L${GUI_ROOT_DIR}/lib/salome
aProperty->SetAmbient(1.0);
aProperty->SetDiffuse(0.0);
aProperty->SetSpecular(0.0);
-
+
myProperty->DeepCopy(aProperty);
}
myBarVisibility = theMode;
if(myScalarBar) myScalarBar->SetVisibility(myBarVisibility);
}
+
+void VISU_ScalarMapAct::SetShading(bool theOn)
+{
+ vtkProperty* aProperty = GetProperty();
+
+ if (theOn)
+ {
+ aProperty->SetAmbient(0.0);
+ aProperty->SetDiffuse(1.0);
+ }
+ else
+ {
+ aProperty->SetAmbient(1.0);
+ aProperty->SetDiffuse(0.0);
+ }
+ myProperty->DeepCopy(aProperty);
+}
+
+bool VISU_ScalarMapAct::IsShading()
+{
+ vtkProperty* aProperty = GetProperty();
+
+ return (aProperty->GetAmbient() == 0 && aProperty->GetDiffuse() == 1);
+}
virtual void SetBarVisibility(bool theMode);
virtual bool GetBarVisibility(){ return myBarVisibility;}
+ virtual void SetShading(bool theOn = true);
+ virtual bool IsShading();
+
protected:
VISU_ScalarMapAct();
bool myBarVisibility;