::highlight(bool theIsHighlight)
{
vtkFloatingPointType aBounds[6];
- vtkDataSet * aDataSet = myPassFilter.back()->GetOutput();
+ vtkDataSet * aDataSet = GetHighlightedDataSet();
aDataSet->GetBounds(aBounds);
myOutline->SetBounds(aBounds);
myOutlineActor->SetVisibility( GetVisibility() && theIsHighlight );
return myGeomFilter->GetQuadraticArcAngle();
}
+/*!
+ * Return pointer to the dataset, which used to calculation of the bounding box of the actor.
+ * By default it is the input dataset.
+ */
+vtkDataSet* VTKViewer_Actor::GetHighlightedDataSet() {
+ return GetInput();
+}
virtual void SetQuadraticArcAngle(vtkFloatingPointType theMaxAngle);
virtual vtkFloatingPointType GetQuadraticArcAngle() const;
+ //----------------------------------------------------------------------------
+ //! Return pointer to the dataset, which used to calculation of the bounding box of the actor
+ virtual vtkDataSet* GetHighlightedDataSet();
protected:
//----------------------------------------------------------------------------