using namespace std;
#ifdef _DEBUG_
-static int MYDEBUG = 0;
+static int MYDEBUG = 1;
#else
static int MYDEBUG = 0;
#endif
}
+//----------------------------------------------------------------------------
+VISU_GaussPointsPL*
+VISU::GaussPoints_i
+::GetGaussPointsPL()
+{
+ return myGaussPointsPL;
+}
+
+QColor
+VISU::GaussPoints_i
+::GetColor()
+{
+ return myColor;
+}
+
+void
+VISU::GaussPoints_i
+::SetColor( const QColor& theColor )
+{
+ myColor = theColor;
+}
+
+bool
+VISU::GaussPoints_i
+::IsColored()
+{
+ return myIsColored;
+}
+
+void
+VISU::GaussPoints_i
+::ShowColored( bool theColored )
+{
+ myIsColored = theColored;
+}
+
+
//----------------------------------------------------------------------------
void
VISU::GaussPoints_i
VISU::GaussPoints_i
::GetPipeLine()
{
- VISU_GaussPointsPL* aPipeLine = VISU_GaussPointsPL::New();
- aPipeLine->ShallowCopy(myPipeLine);
- aPipeLine->Update();
- return aPipeLine;
+ return GetPL();
}
return anActor;
}
+//----------------------------------------------------------------------------
+VISU_Actor*
+VISU::GaussPoints_i
+::CloneActor(VISU_Actor* theActor)
+{
+ VISU::ScalarMap_i::CloneActor(theActor);
+}
//----------------------------------------------------------------------------
void
}
}
-
//----------------------------------------------------------------------------
-VISU_Actor*
+void
VISU::GaussPoints_i
-::CloneActor(VISU_Actor* theActor)
+::UpdateFromActor(VISU_Actor* theActor)
{
- VISU::ScalarMap_i::CloneActor(theActor);
+ if(VISU_GaussPtsAct* anActor = dynamic_cast<VISU_GaussPtsAct*>(theActor)){
+ bool aChangeMagnification = anActor->ChangeMagnification();
+ if(MYDEBUG) MESSAGE("GaussPoints_i::UpdateFromActor - this = "<<this<<
+ "; aChangeMagnification = "<<aChangeMagnification);
+ myGaussPointsPL->ChangeMagnification(aChangeMagnification);
+ }
+ VISU::Prs3d_i::UpdateFromActor(theActor);
}
-
//----------------------------------------------------------------------------
void
VISU::GaussPoints_i
::SetImplicitFunction(VISU_Actor* theActor,
vtkImplicitFunction* theImplicitFunction)
{
- //VISU::ScalarMap_i::SetImplicitFunction(theActor,theImplicitFunction);
if(VISU_PipeLine* aPipeLine = theActor->GetPipeLine())
aPipeLine->SetImplicitFunction(theImplicitFunction);
}
typedef VISU::GaussPoints TInterface;
- VISU_GaussPointsPL* GetGaussPointsPL(){ return myGaussPointsPL; }
+ VISU_GaussPointsPL*
+ GetGaussPointsPL();
- QColor GetColor() { return myColor;}
- void SetColor( const QColor& theColor ) { myColor = theColor; }
+ QColor
+ GetColor();
- bool IsColored() { return myIsColored; }
- void ShowColored( bool theColored ) { myIsColored = theColored; }
+ void
+ SetColor( const QColor& theColor );
+
+ bool
+ IsColored();
+
+ void
+ ShowColored( bool theColored );
protected:
- virtual void DoSetInput(Result_i* theResult);
- virtual void DoHook();
+ virtual
+ void
+ DoSetInput(Result_i* theResult);
+
+ virtual
+ void
+ DoHook();
virtual
VISU_PipeLine*
GetPipeLine();
VISU_GaussPointsPL *myGaussPointsPL;
- QColor myColor;
bool myIsColored;
+ QColor myColor;
public:
static
VISU_Actor*
CreateActor(const Handle(SALOME_InteractiveObject)& theIO = NULL);
+ virtual
+ VISU_Actor*
+ CloneActor(VISU_Actor* theActor);
+
virtual
void
UpdateActor(VISU_Actor* theActor);
virtual
- VISU_Actor*
- CloneActor(VISU_Actor* theActor);
+ void
+ UpdateFromActor(VISU_Actor* theActor);
//----------------------------------------------------------------------------
virtual
VISU::Prs3d_i
::Update()
{
- if(MYDEBUG) MESSAGE("Prs3d_i::Update() - this = "<<this);
+ if(MYDEBUG) MESSAGE("Prs3d_i::Update - this = "<<this);
try{
myPipeLine->Update();
}catch(...){
}
}
+VISU_Actor*
+VISU::Prs3d_i
+::CloneActor(VISU_Actor* theActor)
+{
+ VISU_Actor* anActor = CreateActor();
+ theActor->Connect(anActor);
+ return anActor;
+}
+
void
VISU::Prs3d_i
::UpdateActor(VISU_Actor* theActor)
{
- if(MYDEBUG) MESSAGE("Prs3d_i::UpdateActor() - this = "<<this);
+ if(MYDEBUG) MESSAGE("Prs3d_i::UpdateActor - this = "<<this);
theActor->GetMapper()->ShallowCopy(myPipeLine->GetMapper());
theActor->SetPosition(myOffset);
theActor->Modified();
}
-VISU_Actor*
+void
VISU::Prs3d_i
-::CloneActor(VISU_Actor* theActor)
+::UpdateFromActor(VISU_Actor* theActor)
{
- VISU_Actor* anActor = CreateActor();
- theActor->Connect(anActor);
- return anActor;
+ if(MYDEBUG) MESSAGE("Prs3d_i::UpdateFromActor - this = "<<this);
+ UpdateActors();
}
void
VISU::Prs3d_i
-::UpdateActors()
+::UpdateActors()
{
- if(MYDEBUG) MESSAGE("Prs3d_i::UpdateActors() - this = "<<this);
+ if(MYDEBUG) MESSAGE("Prs3d_i::UpdateActors - this = "<<this);
Update();
myUpdateActorsSignal();
}
VISU_Actor*
CreateActor(const Handle(SALOME_InteractiveObject)& theIO = NULL) = 0;
+ virtual
+ VISU_Actor*
+ CloneActor(VISU_Actor* theActor);
+
virtual
void
UpdateActor(VISU_Actor* theActor);
virtual
- VISU_Actor*
- CloneActor(VISU_Actor* theActor);
+ void
+ UpdateFromActor(VISU_Actor* theActor);
virtual
void