VTK  9.2.20220926
vtkAssignCoordinates.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkAssignCoordinates.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 =========================================================================*/
15 /*-------------------------------------------------------------------------
16  Copyright 2008 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
34 #ifndef vtkAssignCoordinates_h
35 #define vtkAssignCoordinates_h
36 
37 #include "vtkInfovisLayoutModule.h" // For export macro
39 
40 VTK_ABI_NAMESPACE_BEGIN
41 class VTKINFOVISLAYOUT_EXPORT vtkAssignCoordinates : public vtkPassInputTypeAlgorithm
42 {
43 public:
45 
47  void PrintSelf(ostream& os, vtkIndent indent) override;
48 
50 
53  vtkSetStringMacro(XCoordArrayName);
54  vtkGetStringMacro(XCoordArrayName);
56 
58 
61  vtkSetStringMacro(YCoordArrayName);
62  vtkGetStringMacro(YCoordArrayName);
64 
66 
69  vtkSetStringMacro(ZCoordArrayName);
70  vtkGetStringMacro(ZCoordArrayName);
72 
74 
77  vtkSetMacro(Jitter, bool);
79 
80 protected:
83 
86 
87 private:
88  char* XCoordArrayName;
89  char* YCoordArrayName;
90  char* ZCoordArrayName;
91  bool Jitter;
92 
94  void operator=(const vtkAssignCoordinates&) = delete;
95 };
96 
98 #endif
Given two(or three) arrays take the values in those arrays and simply assign them to the coordinates ...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkAssignCoordinates * New()
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
~vtkAssignCoordinates() override
a simple class to control print indentation
Definition: vtkIndent.h:120
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce output of the same type as input.
@ info
Definition: vtkX3D.h:388
@ port
Definition: vtkX3D.h:459