Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

Imaging/vtkBooleanTexture.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkBooleanTexture.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 =========================================================================*/
00046 #ifndef __vtkBooleanTexture_h
00047 #define __vtkBooleanTexture_h
00048 
00049 #include "vtkImageSource.h"
00050 
00051 class VTK_IMAGING_EXPORT vtkBooleanTexture : public vtkImageSource
00052 {
00053 public:
00054   static vtkBooleanTexture *New();
00055 
00056   vtkTypeRevisionMacro(vtkBooleanTexture,vtkImageSource);
00057   void PrintSelf(ostream& os, vtkIndent indent);
00058 
00060 
00061   vtkSetMacro(XSize,int);
00062   vtkGetMacro(XSize,int);
00064 
00066 
00067   vtkSetMacro(YSize,int);
00068   vtkGetMacro(YSize,int);
00070 
00072 
00073   vtkSetMacro(Thickness,int);
00074   vtkGetMacro(Thickness,int);
00076 
00078 
00079   vtkSetVector2Macro(InIn,unsigned char);
00080   vtkGetVectorMacro(InIn,unsigned char,2);
00082 
00084 
00085   vtkSetVector2Macro(InOut,unsigned char);
00086   vtkGetVectorMacro(InOut,unsigned char,2);
00088 
00090 
00091   vtkSetVector2Macro(OutIn,unsigned char);
00092   vtkGetVectorMacro(OutIn,unsigned char,2);
00094 
00096 
00097   vtkSetVector2Macro(OutOut,unsigned char);
00098   vtkGetVectorMacro(OutOut,unsigned char,2);
00100 
00102 
00103   vtkSetVector2Macro(OnOn,unsigned char);
00104   vtkGetVectorMacro(OnOn,unsigned char,2);
00106 
00108 
00109   vtkSetVector2Macro(OnIn,unsigned char);
00110   vtkGetVectorMacro(OnIn,unsigned char,2);
00112 
00114 
00115   vtkSetVector2Macro(OnOut,unsigned char);
00116   vtkGetVectorMacro(OnOut,unsigned char,2);
00118 
00120 
00121   vtkSetVector2Macro(InOn,unsigned char);
00122   vtkGetVectorMacro(InOn,unsigned char,2);
00124 
00126 
00127   vtkSetVector2Macro(OutOn,unsigned char);
00128   vtkGetVectorMacro(OutOn,unsigned char,2);
00130 
00131 protected:
00132   vtkBooleanTexture();
00133   ~vtkBooleanTexture() {};
00134 
00135   virtual void ExecuteInformation();
00136   virtual void ExecuteData(vtkDataObject *data);
00137 
00138   int XSize;
00139   int YSize;
00140 
00141   int Thickness;
00142   unsigned char InIn[2];
00143   unsigned char InOut[2];
00144   unsigned char OutIn[2];
00145   unsigned char OutOut[2];
00146   unsigned char OnOn[2];
00147   unsigned char OnIn[2];
00148   unsigned char OnOut[2];
00149   unsigned char InOn[2];
00150   unsigned char OutOn[2];
00151 
00152 private:
00153   vtkBooleanTexture(const vtkBooleanTexture&);  // Not implemented.
00154   void operator=(const vtkBooleanTexture&);  // Not implemented.
00155 };
00156 
00157 #endif
00158 
00159