Commit 2c7c07ce authored by Mathieu Westphal's avatar Mathieu Westphal Committed by Kitware Robot

Merge topic 'CorrectingBorderRepresentationMTime'

9f8b013f Correcting Border Representation MTime
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !1595
parents c13fd420 9f8b013f
Pipeline #18393 running with stage
......@@ -25,6 +25,7 @@
#include "vtkWindow.h"
#include "vtkObjectFactory.h"
#include <algorithm>
#include <cassert>
vtkStandardNewMacro(vtkBorderRepresentation);
......@@ -110,6 +111,16 @@ vtkBorderRepresentation::~vtkBorderRepresentation()
this->BorderProperty->Delete();
}
//----------------------------------------------------------------------------
unsigned long int vtkBorderRepresentation::GetMTime()
{
unsigned long mTime = this->Superclass::GetMTime();
mTime = std::max(mTime, this->PositionCoordinate->GetMTime());
mTime = std::max(mTime, this->Position2Coordinate->GetMTime());
mTime = std::max(mTime, this->BorderProperty->GetMTime());
return mTime;
}
//-------------------------------------------------------------------------
void vtkBorderRepresentation::SetShowBorder(int border)
{
......
......@@ -164,6 +164,11 @@ public:
AdjustingE3
};
// Description:
// Return the MTime of this object. It takes into account MTimes
// of position coordinates and border's property.
virtual unsigned long GetMTime();
// Description:
// Subclasses should implement these methods. See the superclasses'
// documentation for more information.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment