Commit 34d2e740 authored by Kenneth Moreland's avatar Kenneth Moreland
Browse files

ENH: Mark as modified the array containing point positions of the polygon

representation whenever the data changes.
parent f4a43573
......@@ -34,7 +34,7 @@
#include "vtkSphereSource.h"
#include "vtkTransform.h"
vtkCxxRevisionMacro(vtkBoxWidget, "1.48");
vtkCxxRevisionMacro(vtkBoxWidget, "1.49");
vtkStandardNewMacro(vtkBoxWidget);
vtkBoxWidget::vtkBoxWidget()
......@@ -450,7 +450,8 @@ void vtkBoxWidget::PositionHandles()
{
this->HandleGeometry[i]->SetCenter(this->Points->GetPoint(8+i));
}
this->Points->GetData()->Modified();
this->HexFacePolyData->Modified();
this->HexPolyData->Modified();
this->GenerateOutline();
......
......@@ -41,7 +41,7 @@
#include "vtkTextureMapToPlane.h"
#include "vtkTransform.h"
vtkCxxRevisionMacro(vtkImagePlaneWidget, "1.90");
vtkCxxRevisionMacro(vtkImagePlaneWidget, "1.91");
vtkStandardNewMacro(vtkImagePlaneWidget);
vtkCxxSetObjectMacro(vtkImagePlaneWidget, PlaneProperty, vtkProperty);
......@@ -593,6 +593,7 @@ void vtkImagePlaneWidget::BuildRepresentation()
points->SetPoint(1,pt1);
points->SetPoint(2,x);
points->SetPoint(3,pt2);
points->GetData()->Modified();
this->PlaneOutlinePolyData->Modified();
this->PlaneSource->GetNormal(this->Normal);
......
......@@ -37,7 +37,7 @@
#include "vtkTransformPolyDataFilter.h"
#include "vtkTransform.h"
vtkCxxRevisionMacro(vtkImageTracerWidget, "1.14");
vtkCxxRevisionMacro(vtkImageTracerWidget, "1.15");
vtkStandardNewMacro(vtkImageTracerWidget);
vtkCxxSetObjectMacro(vtkImageTracerWidget, HandleProperty, vtkProperty);
......@@ -1015,6 +1015,7 @@ void vtkImageTracerWidget::Trace(int X, int Y)
{
this->AdjustHandlePosition(this->CurrentHandleIndex,pos);
this->LinePoints->SetPoint(this->PickCount,pos);
this->LinePoints->GetData()->Modified();
this->LineData->Modified();
}
}
......@@ -1055,6 +1056,7 @@ void vtkImageTracerWidget::MovePoint(const double *p1, const double *p2)
this->HandleGeometry[0]->GetCenter());
}
this->LinePoints->GetData()->Modified();
this->LineData->Modified();
}
......@@ -1090,6 +1092,7 @@ void vtkImageTracerWidget::Translate(const double *p1, const double *p2)
this->LinePoints->SetPoint(i,newCtr);
}
this->LinePoints->GetData()->Modified();
this->LineData->Modified();
}
......@@ -1310,6 +1313,7 @@ void vtkImageTracerWidget::AppendLine(double* pos)
this->LinePoints->InsertPoint(this->PickCount,pos);
this->LineCells->InsertNextCell(2,this->CurrentPoints);
this->LinePoints->GetData()->Modified();
this->LineData->SetPoints(this->LinePoints);
this->LineData->SetLines(this->LineCells);
this->LineData->Modified();
......@@ -1340,6 +1344,7 @@ void vtkImageTracerWidget::ClosePath()
if ( sqrt(vtkMath::Distance2BetweenPoints(p0,p1)) <= this->CaptureRadius )
{
this->LinePoints->SetPoint(npts-1,p0);
this->LinePoints->GetData()->Modified();
this->LineData->Modified();
}
}
......
......@@ -33,7 +33,7 @@
#include "vtkSphereSource.h"
#include "vtkTransform.h"
vtkCxxRevisionMacro(vtkSplineWidget, "1.27");
vtkCxxRevisionMacro(vtkSplineWidget, "1.28");
vtkStandardNewMacro(vtkSplineWidget);
vtkCxxSetObjectMacro(vtkSplineWidget, HandleProperty, vtkProperty);
......@@ -571,6 +571,7 @@ void vtkSplineWidget::BuildRepresentation()
this->ParametricSpline->Evaluate(u, pt, NULL);
points->SetPoint(i, pt);
}
points->GetData()->Modified();
this->LineData->Modified();
}
......
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