VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkTransferAttributes.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00015 /*------------------------------------------------------------------------- 00016 Copyright 2008 Sandia Corporation. 00017 Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, 00018 the U.S. Government retains certain rights in this software. 00019 -------------------------------------------------------------------------*/ 00037 #ifndef __vtkTransferAttributes_h 00038 #define __vtkTransferAttributes_h 00039 00040 #include "vtkPassInputTypeAlgorithm.h" 00041 #include "vtkVariant.h" //For vtkVariant method arguments 00042 00043 class VTK_INFOVIS_EXPORT vtkTransferAttributes : public vtkPassInputTypeAlgorithm 00044 { 00045 public: 00051 static vtkTransferAttributes *New(); 00052 00053 vtkTypeMacro(vtkTransferAttributes,vtkPassInputTypeAlgorithm); 00054 void PrintSelf(ostream& os, vtkIndent indent); 00055 00057 00060 vtkSetMacro(DirectMapping, bool); 00061 vtkGetMacro(DirectMapping, bool); 00062 vtkBooleanMacro(DirectMapping, bool); 00064 00066 00067 vtkGetStringMacro(SourceArrayName); 00068 vtkSetStringMacro(SourceArrayName); 00070 00072 00073 vtkGetStringMacro(TargetArrayName); 00074 vtkSetStringMacro(TargetArrayName); 00076 00078 00080 vtkGetMacro(SourceFieldType, int); 00081 vtkSetMacro(SourceFieldType, int); 00083 00085 00087 vtkGetMacro(TargetFieldType, int); 00088 vtkSetMacro(TargetFieldType, int); 00090 00092 00093 vtkVariant GetDefaultValue(); 00094 void SetDefaultValue(vtkVariant value); 00096 00098 int FillInputPortInformation(int port, vtkInformation* info); 00099 00100 protected: 00101 vtkTransferAttributes(); 00102 ~vtkTransferAttributes(); 00103 00104 bool DirectMapping; 00105 char* SourceArrayName; 00106 char* TargetArrayName; 00107 int SourceFieldType; 00108 int TargetFieldType; 00109 00110 vtkVariant DefaultValue; 00111 00113 00114 int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00115 private: 00116 vtkTransferAttributes(const vtkTransferAttributes&); // Not implemented. 00117 void operator=(const vtkTransferAttributes&); // Not implemented. 00118 }; 00120 00121 #endif