]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Additional fix for the bug IPAL21936 bounding box does not account real size of object. BR_WIN_INDUS_514 mergeto_V6_main_21Mar11
authorrnv <rnv@opencascade.com>
Mon, 13 Dec 2010 09:12:47 +0000 (09:12 +0000)
committerrnv <rnv@opencascade.com>
Mon, 13 Dec 2010 09:12:47 +0000 (09:12 +0000)
src/OBJECT/VISU_ActorBase.cxx
src/OBJECT/VISU_ActorBase.h
src/OBJECT/VISU_VectorsAct.cxx
src/OBJECT/VISU_VectorsAct.h

index ae6c8e9db2a1b46e03be91599a26d59408d85812..387f9cfa9cabe0813c6ff2b0ac8f468accd31d7d 100644 (file)
@@ -178,3 +178,8 @@ void VISU_ActorBase::ConnectToFactory(boost::signal0<void>& theUpdateActorSignal
   myUpdateActorsConnection = theUpdateActorSignal.connect(boost::bind(&VISU_ActorBase::UpdateFromFactory,this));
   myRemoveFromRendererConnection = theRemoveFromRendererSignal.connect(boost::bind(&VISU_ActorBase::RemoveFromRender,this));
 }
+
+//--------------------------------------------------------------------------------------
+vtkDataSet* VISU_ActorBase::GetHighlightedDataSet() {
+  return myPassFilter.back()->GetOutput();
+}
index 10645c4027a84fc9876826da14b7b3b4d986dce6..c95d2da9428ad51b36ea0bc2fd73bd16c20f298e 100644 (file)
@@ -72,6 +72,12 @@ class VISU_OBJECT_EXPORT VISU_ActorBase: public SALOME_Actor,
 
   virtual void ConnectToFactory(boost::signal0<void>& , boost::signal0<void>&);
 
+  //----------------------------------------------------------------------------
+  //! Return pointer to the dataset, which used to calculation of the bounding box of the actor
+  //! Redefined from VTKViewer_Actor
+  virtual vtkDataSet* GetHighlightedDataSet();
+  
+
  protected:
   VISU_ActorBase();
   virtual  ~VISU_ActorBase();
index a2e866ba18383f9a0aa0c5c3d6b78e5a4055729f..9b2ee148127d4e0b0167e51aa03d97691bba9597 100644 (file)
@@ -143,3 +143,8 @@ VISU_VectorsAct
 
   return Superclass::GetValLabelsInput();
 }
+
+//--------------------------------------------------------------------------------------
+vtkDataSet* VISU_VectorsAct::GetHighlightedDataSet() {
+  return myPassFilter[3]->GetOutput();
+}
index 2729a6837e3c25fe29fb02d379a73cb2980912c7..b6e533e10aa3a68b437b7cb08852f7cfd920cacd 100644 (file)
@@ -69,6 +69,12 @@ class VISU_OBJECT_EXPORT VISU_VectorsAct : public VISU_ScalarMapAct
   virtual
   vtkDataSet*
   GetValLabelsInput();
+
+  //----------------------------------------------------------------------------
+  //! Return pointer to the dataset, which used to calculation of the bounding box of the actor
+  //! Redefined from VTKViewer_Actor
+  virtual vtkDataSet* GetHighlightedDataSet();
+
  
  protected:
   VISU_VectorsAct();