VTK
vtkTransferAttributes.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3 Program: Visualization Toolkit
4 Module: vtkTransferAttributes.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  -------------------------------------------------------------------------*/
38 #ifndef vtkTransferAttributes_h
39 #define vtkTransferAttributes_h
40 
41 #include "vtkInfovisCoreModule.h" // For export macro
43 #include "vtkVariant.h" //For vtkVariant method arguments
44 
45 class VTKINFOVISCORE_EXPORT vtkTransferAttributes : public vtkPassInputTypeAlgorithm
46 {
47 public:
55  static vtkTransferAttributes *New();
56 
58  void PrintSelf(ostream& os, vtkIndent indent) override;
59 
61 
67  vtkSetMacro(DirectMapping, bool);
68  vtkGetMacro(DirectMapping, bool);
69  vtkBooleanMacro(DirectMapping, bool);
71 
73 
76  vtkGetStringMacro(SourceArrayName);
77  vtkSetStringMacro(SourceArrayName);
79 
81 
84  vtkGetStringMacro(TargetArrayName);
85  vtkSetStringMacro(TargetArrayName);
87 
89 
93  vtkGetMacro(SourceFieldType, int);
94  vtkSetMacro(SourceFieldType, int);
96 
98 
102  vtkGetMacro(TargetFieldType, int);
103  vtkSetMacro(TargetFieldType, int);
105 
107 
110  vtkVariant GetDefaultValue();
111  void SetDefaultValue(vtkVariant value);
113 
117  int FillInputPortInformation(int port, vtkInformation* info) override;
118 
119 protected:
121  ~vtkTransferAttributes() override;
122 
128 
130 
135 
136 private:
138  void operator=(const vtkTransferAttributes&) = delete;
139 };
140 
141 #endif
Superclass for algorithms that produce output of the same type as input.
Store vtkAlgorithm input/output information.
A atomic type representing the union of many types.
Definition: vtkVariant.h:71
a simple class to control print indentation
Definition: vtkIndent.h:39
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
transfer data from a graph representation to a tree representation using direct mapping or pedigree i...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Store zero or more vtkInformation instances.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
static vtkPassInputTypeAlgorithm * New()