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 "vtkInfovisCoreModule.h" // For export macro 00041 #include "vtkPassInputTypeAlgorithm.h" 00042 #include "vtkVariant.h" //For vtkVariant method arguments 00043 00044 class VTKINFOVISCORE_EXPORT vtkTransferAttributes : public vtkPassInputTypeAlgorithm 00045 { 00046 public: 00052 static vtkTransferAttributes *New(); 00053 00054 vtkTypeMacro(vtkTransferAttributes,vtkPassInputTypeAlgorithm); 00055 void PrintSelf(ostream& os, vtkIndent indent); 00056 00058 00061 vtkSetMacro(DirectMapping, bool); 00062 vtkGetMacro(DirectMapping, bool); 00063 vtkBooleanMacro(DirectMapping, bool); 00065 00067 00068 vtkGetStringMacro(SourceArrayName); 00069 vtkSetStringMacro(SourceArrayName); 00071 00073 00074 vtkGetStringMacro(TargetArrayName); 00075 vtkSetStringMacro(TargetArrayName); 00077 00079 00081 vtkGetMacro(SourceFieldType, int); 00082 vtkSetMacro(SourceFieldType, int); 00084 00086 00088 vtkGetMacro(TargetFieldType, int); 00089 vtkSetMacro(TargetFieldType, int); 00091 00093 00094 vtkVariant GetDefaultValue(); 00095 void SetDefaultValue(vtkVariant value); 00097 00099 int FillInputPortInformation(int port, vtkInformation* info); 00100 00101 protected: 00102 vtkTransferAttributes(); 00103 ~vtkTransferAttributes(); 00104 00105 bool DirectMapping; 00106 char* SourceArrayName; 00107 char* TargetArrayName; 00108 int SourceFieldType; 00109 int TargetFieldType; 00110 00111 vtkVariant DefaultValue; 00112 00114 00115 int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00116 private: 00117 vtkTransferAttributes(const vtkTransferAttributes&); // Not implemented. 00118 void operator=(const vtkTransferAttributes&); // Not implemented. 00119 }; 00121 00122 #endif