}
}
-void VISU::ScalarMapOnDeformedShape_i::SetScale(CORBA::Double theScale) {
+void
+VISU::ScalarMapOnDeformedShape_i
+::SetScale(CORBA::Double theScale)
+{
myScalarMapOnDeformedShapePL->SetScale(theScale);
}
-CORBA::Double VISU::ScalarMapOnDeformedShape_i::GetScale(){
+CORBA::Double
+VISU::ScalarMapOnDeformedShape_i
+::GetScale()
+{
return myScalarMapOnDeformedShapePL->GetScale();
}
VISU::ScalarMapOnDeformedShape_i
::SetRange(CORBA::Double theMin, CORBA::Double theMax)
{
- if(theMin > theMax)
- return;
- vtkFloatingPointType aScalarRange[2] = {theMin, theMax};
- myScalarMapOnDeformedShapePL->SetScalarRange(aScalarRange);
- myIsFixedRange = true;
+ TSuperClass::SetRange(theMin, theMax);
}
-void VISU::ScalarMapOnDeformedShape_i::SetSourceRange(CORBA::Double theMinRange,CORBA::Double theMaxRange){
- SetRange(theMinRange,theMaxRange);
+void
+VISU::ScalarMapOnDeformedShape_i
+::SetSourceRange(CORBA::Double theMin, CORBA::Double theMax)
+{
+ SetRange(theMin, theMax);
}
void
VISU::ScalarMapOnDeformedShape_i
::SetSourceRange()
{
- myScalarMapOnDeformedShapePL->SetSourceRange();
- myIsFixedRange = false;
+ TSuperClass::SetSourceRange();
}
-CORBA::Double VISU::ScalarMapOnDeformedShape_i::GetSourceRangeMin(){
- vtkFloatingPointType aRange[2];
- myScalarMapOnDeformedShapePL->GetSourceRange(aRange);
- return aRange[0];
+CORBA::Double
+VISU::ScalarMapOnDeformedShape_i
+::GetSourceRangeMin()
+{
+ return TSuperClass::GetSourceMin();
}
-CORBA::Double VISU::ScalarMapOnDeformedShape_i::GetSourceRangeMax(){
- vtkFloatingPointType aRange[2];
- myScalarMapOnDeformedShapePL->GetSourceRange(aRange);
- return aRange[1];
+CORBA::Double
+VISU::ScalarMapOnDeformedShape_i
+::GetSourceRangeMax()
+{
+ return TSuperClass::GetSourceMax();
}
void VISU::ScalarMapOnDeformedShape_i::DoHook()
{
- if(MYDEBUG) cout << "VISU::ScalarMapOnDeformedShape_i::DoHook:"<<__LINE__<<endl;
if(!myPipeLine)
myPipeLine = VISU_ScalarMapOnDeformedShapePL::New();
return "ICON_TREE_SCALAR_MAP_ON_DEFORMED_SHAPE_GROUPS";
}
-VISU_Actor* VISU::ScalarMapOnDeformedShape_i::CreateActor(const Handle(SALOME_InteractiveObject)& theIO)
+VISU_Actor*
+VISU::ScalarMapOnDeformedShape_i
+::CreateActor(const Handle(SALOME_InteractiveObject)& theIO)
{
- if(MYDEBUG) cout << "VISU::ScalarMapOnDeformedShape_i::CreateActor:"<<__LINE__<<endl;
VISU_Actor* anActor = TSuperClass::CreateActor(theIO, true);
SUIT_ResourceMgr* aResourceMgr = VISU::GetResourceMgr();
int aDispMode = aResourceMgr->integerValue("VISU", "scalar_def_represent", 2);
}
-void VISU::ScalarMapOnDeformedShape_i::UpdateActor(VISU_Actor* theActor) {
- if(MYDEBUG) cout << "VISU::ScalarMapOnDeformedShape_i::UpdateActor:"<<__LINE__<<endl;
+void
+VISU::ScalarMapOnDeformedShape_i
+::UpdateActor(VISU_Actor* theActor)
+{
if(VISU_ScalarMapAct* anActor = dynamic_cast<VISU_ScalarMapAct*>(theActor)){
if(IsColored()){
anActor->SetBarVisibility(true);
}
}
-void VISU::ScalarMapOnDeformedShape_i::SetScalarField(const char* theMeshName,
- const char* theFieldName,
- int theIteration,
- VISU::TEntity theEntity)
+void
+VISU::ScalarMapOnDeformedShape_i
+::SetScalarField(const char* theMeshName,
+ const char* theFieldName,
+ int theIteration,
+ VISU::TEntity theEntity)
{
- if(MYDEBUG) cout << "VISU::ScalarMapOnDeformedShape_i::SetScalarField:"<<__LINE__<<endl;
- if(MYDEBUG) cout << "\ttheFieldName="<<theFieldName<<endl;
- if(MYDEBUG) cout << "\ttheIteration="<<theIteration<<endl;
myScalarField = myResult->GetInput()->GetField(theMeshName,theEntity,theFieldName);
TVTKOutput* aOut = myResult->GetInput()->GetTimeStampOnMesh(theMeshName,
theEntity,
this->SetScalarEntity(theEntity);
}
-void VISU::ScalarMapOnDeformedShape_i::SetScalarField(const char* theMeshName,
- const char* theFieldName,
- CORBA::Long theIteration,
- VISU::Entity theEntity)
+void
+VISU::ScalarMapOnDeformedShape_i
+::SetScalarField(const char* theMeshName,
+ const char* theFieldName,
+ CORBA::Long theIteration,
+ VISU::Entity theEntity)
{
this->SetScalarField(theMeshName,theFieldName,(int)theIteration,VISU::TEntity(theEntity));
}