#ifdef _DEBUG_
static int MYDEBUG = 1;
-static int MYDEBUGWITHFILES = 0;
#else
static int MYDEBUG = 0;
-static int MYDEBUGWITHFILES = 0;
#endif
//=======================================================================
myIO = NULL;
myName = "";
-
- vtkProperty* aProperty = GetProperty();
- aProperty->SetAmbient(0.5);
- aProperty->SetDiffuse(0.2);
- aProperty->SetSpecular(0.2);
- aProperty->SetAmbientColor(1, 1, 1);
- aProperty->SetDiffuseColor(1, 1, 1);
- aProperty->SetSpecularColor(0.5, 0.5, 0.5);
- this->SetProperty(aProperty);
}
VISU_Actor::~VISU_Actor(){
return SALOME_Actor::GetVisibility();
}
-void VISU_Actor::SetProperty(vtkProperty* theProperty){
- SALOME_Actor::SetProperty(theProperty);
-}
-
-vtkProperty* VISU_Actor::GetProperty(){
- return SALOME_Actor::GetProperty();
-}
-
void VISU_Actor::SetLineWidth(float theLineWidth){
GetProperty()->SetLineWidth(theLineWidth);
}
virtual void SetRepresentation(int theMode);
-
virtual bool IsShrunkable() { return myIsShrinkable;}
virtual bool IsShrunk() { return myIsShrunk;}
virtual void SetShrink();
virtual void SetShrinkFactor(float theFactor = 0.8);
virtual float GetShrinkFactor();
-
virtual void SetVisibility(int theMode);
virtual int GetVisibility();
- virtual void SetProperty(vtkProperty* theProperty);
- virtual vtkProperty* GetProperty();
-
virtual void SetLineWidth(float theLineWidth);
virtual float GetLineWidth();
-
-
+
virtual int GetNodeObjId(int theVtkID);
virtual int GetElemObjId(int theVtkID);
-
std::string myFieldName;
protected:
VISU_ScalarMapAct::VISU_ScalarMapAct(){
myScalarBar = VISU_ScalarBarActor::New();
- GetProperty()->FrontfaceCullingOff();
- GetProperty()->BackfaceCullingOff();
+
+ vtkProperty* aProperty = GetProperty();
+ aProperty->SetAmbient(1.0);
+ aProperty->SetDiffuse(0.0);
+ aProperty->SetSpecular(0.0);
+
+ myProperty->DeepCopy(aProperty);
}
VISU_ScalarMapAct::~VISU_ScalarMapAct(){