Skip to content

Commit

Permalink
BUG: Fix SliceIntersectionInteractionRepresentationHelper base class
Browse files Browse the repository at this point in the history
Reduce memory footprint updating base class to vtkObject. As an helper
class, there is no need to derive from the abstract widget representation.

Follow-up of bc5d5b4 (ENH: Add interactive slice intersections widget)
  • Loading branch information
jcfr committed Oct 3, 2023
1 parent 0ee89bb commit 31fe28e
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@

/**
* @class vtkMRMLSliceIntersectionInteractionRepresentationHelper
* @brief represent intersections of other slice views in the current slice view
*
* @sa
* vtkSliceIntersectionWidget vtkWidgetRepresentation vtkAbstractWidget
* @brief utility class to compute slice intersection interactions
*/

#ifndef vtkMRMLSliceIntersectionInteractionRepresentationHelper_h
Expand All @@ -29,12 +26,12 @@
#include "vtkMRMLDisplayableManagerExport.h" // For export macro

// VTK includes
#include <vtkMRMLAbstractWidgetRepresentation.h>
#include <vtkObject.h>
class vtkPoints;
class vtkMatrix4x4;
class vtkMRMLSliceNode;

class VTK_MRML_DISPLAYABLEMANAGER_EXPORT vtkMRMLSliceIntersectionInteractionRepresentationHelper : public vtkMRMLAbstractWidgetRepresentation
class VTK_MRML_DISPLAYABLEMANAGER_EXPORT vtkMRMLSliceIntersectionInteractionRepresentationHelper : public vtkObject
{
public:
/**
Expand All @@ -46,7 +43,7 @@ class VTK_MRML_DISPLAYABLEMANAGER_EXPORT vtkMRMLSliceIntersectionInteractionRepr
/**
* Standard methods for instances of this class.
*/
vtkTypeMacro(vtkMRMLSliceIntersectionInteractionRepresentationHelper, vtkMRMLAbstractWidgetRepresentation);
vtkTypeMacro(vtkMRMLSliceIntersectionInteractionRepresentationHelper, vtkObject);
void PrintSelf(ostream& os, vtkIndent indent) override;
//@}

Expand Down

0 comments on commit 31fe28e

Please sign in to comment.