Commit 9f8b013f authored by Mathieu Westphal's avatar Mathieu Westphal

Correcting Border Representation MTime

this vtkObject needs to check some
members mTime to determine it's own MTime
This was missing
parent 0b7d6de3
Pipeline #18288 passed 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