• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

dox/Infovis/vtkTransferAttributes.h

Go to the documentation of this file.
00001 /*=========================================================================
00002   
00003 Program:   Visualization Toolkit
00004 Module:    $RCSfile: vtkTransferAttributes.h,v $
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   vtkTypeRevisionMacro(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);
00095   //ETX
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   //BTX
00112   vtkVariant DefaultValue;
00113   //ETX
00114   
00116   int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00117 private:
00118   vtkTransferAttributes(const vtkTransferAttributes&);  // Not implemented.
00119   void operator=(const vtkTransferAttributes&);  // Not implemented.
00120 };
00121 
00122 #endif

Generated by  doxygen 1.7.1