VTK  9.0.20201030
vtkFocalPlaneContourRepresentation.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkFocalPlaneContourRepresentation.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
33 #ifndef vtkFocalPlaneContourRepresentation_h
34 #define vtkFocalPlaneContourRepresentation_h
35 
37 #include "vtkInteractionWidgetsModule.h" // For export macro
38 
40 
41 class VTKINTERACTIONWIDGETS_EXPORT vtkFocalPlaneContourRepresentation
43 {
44 public:
46 
50  void PrintSelf(ostream& os, vtkIndent indent) override;
52 
59  int GetIntermediatePointWorldPosition(int n, int idx, double point[3]) override;
60 
67  virtual int GetIntermediatePointDisplayPosition(int n, int idx, double point[3]);
68 
74  int GetNthNodeDisplayPosition(int n, double pos[2]) override;
75 
81  int GetNthNodeWorldPosition(int n, double pos[3]) override;
82 
87  virtual void UpdateContourWorldPositionsBasedOnDisplayPositions();
88 
93  int UpdateContour() override;
94 
95  void UpdateLines(int index) override;
96 
97 protected:
100 
101 private:
103  void operator=(const vtkFocalPlaneContourRepresentation&) = delete;
104 };
105 
106 #endif
vtkFocalPlaneContourRepresentation
represent a contour drawn on the focal plane.
Definition: vtkFocalPlaneContourRepresentation.h:41
vtkContourRepresentation
represent the vtkContourWidget
Definition: vtkContourRepresentation.h:117
vtkHandleRepresentation
abstract class for representing widget handles
Definition: vtkHandleRepresentation.h:55
vtkContourRepresentation::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkContourRepresentation::GetIntermediatePointWorldPosition
virtual int GetIntermediatePointWorldPosition(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...
vtkX3D::point
Definition: vtkX3D.h:242
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkContourRepresentation.h
vtkContourRepresentation::UpdateContour
virtual int UpdateContour()
vtkContourRepresentation::GetNthNodeWorldPosition
virtual int GetNthNodeWorldPosition(int n, double pos[3])
Get the nth node's world position.
vtkX3D::index
Definition: vtkX3D.h:252
vtkContourRepresentation::UpdateLines
virtual void UpdateLines(int index)
vtkContourRepresentation::GetNthNodeDisplayPosition
virtual int GetNthNodeDisplayPosition(int n, double pos[2])
Get the nth node's display position.