int
VISU_ScalarMapAct
-::GetVisibility()
+::GetBarVisibility()
{
- return Superclass::GetVisibility();
+ return myBarVisibility;
+}
+
+VISU_ScalarBarActor*
+VISU_ScalarMapAct
+::GetScalarBar()
+{
+ return myScalarBar;
}
void
if(myScalarBar) myScalarBar->SetVisibility(myBarVisibility);
}
-void VISU_ScalarMapAct::SetShading(bool theOn)
+
+void
+VISU_ScalarMapAct
+::SetRepresentation(int theMode)
+{
+ bool anIsShanding = IsShading();
+ Superclass::SetRepresentation(theMode);
+ SetShading(anIsShanding);
+}
+
+
+void
+VISU_ScalarMapAct
+::SetShading(bool theOn)
{
vtkProperty* aProperty = GetProperty();
aProperty->SetAmbient(1.0);
aProperty->SetDiffuse(0.0);
}
- myProperty->DeepCopy(aProperty);
}
-bool VISU_ScalarMapAct::IsShading()
+bool
+VISU_ScalarMapAct
+::IsShading()
{
vtkProperty* aProperty = GetProperty();
class VISU_ScalarBarActor;
-class VTKOCC_EXPORT VISU_ScalarMapAct : public VISU_Actor {
+class VTKOCC_EXPORT VISU_ScalarMapAct : public VISU_Actor
+{
public:
vtkTypeMacro(VISU_ScalarMapAct,VISU_Actor);
- static VISU_ScalarMapAct* New();
+
+ static
+ VISU_ScalarMapAct*
+ New();
+
~VISU_ScalarMapAct();
- virtual void AddToRender(vtkRenderer* theRenderer);
- virtual void RemoveFromRender(vtkRenderer* theRenderer);
+ virtual
+ void
+ AddToRender(vtkRenderer* theRenderer);
+
+ virtual
+ void
+ RemoveFromRender(vtkRenderer* theRenderer);
+
+ virtual
+ void
+ SetVisibility(int theMode);
+
+ virtual
+ int
+ GetBarVisibility();
+
+ virtual
+ VISU_ScalarBarActor*
+ GetScalarBar();
- virtual void SetVisibility(int theMode);
- virtual int GetVisibility();
+ virtual
+ void
+ SetBarVisibility(bool theMode);
- virtual VISU_ScalarBarActor* GetScalarBar(){ return myScalarBar;}
+ virtual
+ void
+ SetRepresentation(int theMode);
- virtual void SetBarVisibility(bool theMode);
- virtual bool GetBarVisibility(){ return myBarVisibility;}
+ virtual
+ void
+ SetShading(bool theOn = true);
- virtual void SetShading(bool theOn = true);
- virtual bool IsShading();
+ virtual
+ bool
+ IsShading();
protected:
VISU_ScalarMapAct();