VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 -------------------------------------------------------------------------*/
36 #ifndef __vtkAssignCoordinates_h
37 #define __vtkAssignCoordinates_h
38 
39 #include "vtkInfovisLayoutModule.h" // For export macro
40 #include "vtkPassInputTypeAlgorithm.h"
41 
42 class VTKINFOVISLAYOUT_EXPORT vtkAssignCoordinates : public vtkPassInputTypeAlgorithm
43 {
44 public:
45  static vtkAssignCoordinates *New();
46 
47  vtkTypeMacro(vtkAssignCoordinates, vtkPassInputTypeAlgorithm);
48  void PrintSelf(ostream& os, vtkIndent indent);
49 
51 
52  vtkSetStringMacro(XCoordArrayName);
53  vtkGetStringMacro(XCoordArrayName);
55 
57 
58  vtkSetStringMacro(YCoordArrayName);
59  vtkGetStringMacro(YCoordArrayName);
61 
63 
64  vtkSetStringMacro(ZCoordArrayName);
65  vtkGetStringMacro(ZCoordArrayName);
67 
69 
70  vtkSetMacro(Jitter,bool);
72 
73 protected:
76 
77  int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
78  int FillInputPortInformation(int port, vtkInformation* info);
79 
80 private:
81 
82  char* XCoordArrayName;
83  char* YCoordArrayName;
84  char* ZCoordArrayName;
85  bool Jitter;
86 
87  vtkAssignCoordinates(const vtkAssignCoordinates&); // Not implemented.
88  void operator=(const vtkAssignCoordinates&); // Not implemented.
89 };
90 
91 #endif
92 
Given two(or three) arrays take the values in those arrays and simply assign them to the coordinates ...