VTK  9.4.20241013
vtkFocalPlaneContourRepresentation.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
21#ifndef vtkFocalPlaneContourRepresentation_h
22#define vtkFocalPlaneContourRepresentation_h
23
25#include "vtkInteractionWidgetsModule.h" // For export macro
26
27VTK_ABI_NAMESPACE_BEGIN
29
30class VTKINTERACTIONWIDGETS_EXPORT vtkFocalPlaneContourRepresentation
32{
33public:
35
39 void PrintSelf(ostream& os, vtkIndent indent) override;
41
48 int GetIntermediatePointWorldPosition(int n, int idx, double point[3]) override;
49
56 virtual int GetIntermediatePointDisplayPosition(int n, int idx, double point[3]);
57
63 int GetNthNodeDisplayPosition(int n, double pos[2]) override;
64
70 int GetNthNodeWorldPosition(int n, double pos[3]) override;
71
77
82 int UpdateContour() override;
83
84 void UpdateLines(int index) override;
85
86protected:
89
90private:
92 void operator=(const vtkFocalPlaneContourRepresentation&) = delete;
93};
94
95VTK_ABI_NAMESPACE_END
96#endif
represent the vtkContourWidget
represent a contour drawn on the focal plane.
int UpdateContour() override
The method must be called whenever the contour needs to be updated, usually from RenderOpaqueGeometry...
int GetNthNodeWorldPosition(int n, double pos[3]) override
Get the nth node's world position.
int GetIntermediatePointWorldPosition(int n, int idx, double point[3]) override
Get the world position of the intermediate point at index idx between nodes n and (n+1) (or n and 0 i...
virtual void UpdateContourWorldPositionsBasedOnDisplayPositions()
The class maintains its true contour locations based on display co-ords This method syncs the world c...
void PrintSelf(ostream &os, vtkIndent indent) override
Standard VTK methods.
int GetNthNodeDisplayPosition(int n, double pos[2]) override
Get the nth node's display position.
virtual int GetIntermediatePointDisplayPosition(int n, int idx, double point[3])
Get the world position of the intermediate point at index idx between nodes n and (n+1) (or n and 0 i...
void UpdateLines(int index) override
abstract class for representing widget handles
a simple class to control print indentation
Definition vtkIndent.h:108