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

Patented/vtkSynchronizedTemplates2D.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkSynchronizedTemplates2D.h,v $
00005   Language:  C++
00006 
00007 
00008 
00009 
00010 Copyright (c) 1993-2001 Ken Martin, Will Schroeder, Bill Lorensen 
00011 All rights reserved.
00012 
00013     THIS CLASS IS PATENT PENDING.
00014 
00015     Application of this software for commercial purposes requires 
00016     a license grant from Kitware. Contact:
00017         Ken Martin
00018         Kitware
00019         469 Clifton Corporate Parkway,
00020         Clifton Park, NY 12065
00021         Phone:1-518-371-3971 
00022     for more information.
00023 
00024 Redistribution and use in source and binary forms, with or without
00025 modification, are permitted provided that the following conditions are met:
00026 
00027  * Redistributions of source code must retain the above copyright notice,
00028    this list of conditions and the following disclaimer.
00029 
00030  * Redistributions in binary form must reproduce the above copyright notice,
00031    this list of conditions and the following disclaimer in the documentation
00032    and/or other materials provided with the distribution.
00033 
00034  * Neither name of Ken Martin, Will Schroeder, or Bill Lorensen nor the names
00035    of any contributors may be used to endorse or promote products derived
00036    from this software without specific prior written permission.
00037 
00038  * Modified source versions must be plainly marked as such, and must not be
00039    misrepresented as being the original software.
00040 
00041 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS''
00042 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00043 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00044 ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR
00045 ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00046 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
00047 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
00048 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
00049 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
00050 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00051 
00052 =========================================================================*/
00070 #ifndef __vtkSynchronizedTemplates2D_h
00071 #define __vtkSynchronizedTemplates2D_h
00072 
00073 #include "vtkPolyDataSource.h"
00074 #include "vtkImageData.h"
00075 #include "vtkContourValues.h"
00076 #include "vtkKitwareContourFilter.h"
00077 
00078 class VTK_PATENTED_EXPORT vtkSynchronizedTemplates2D : public vtkPolyDataSource
00079 {
00080 public:
00081   static vtkSynchronizedTemplates2D *New();
00082   vtkTypeMacro(vtkSynchronizedTemplates2D,vtkPolyDataSource);
00083   void PrintSelf(ostream& os, vtkIndent indent);
00084 
00086 
00087   void SetInput(vtkImageData *input);
00088   vtkImageData *GetInput();
00090   
00092   unsigned long int GetMTime();
00093 
00096   void SetValue(int i, float value) {this->ContourValues->SetValue(i,value);}
00097 
00099   float GetValue(int i) {return this->ContourValues->GetValue(i);}
00100 
00103   float *GetValues() {return this->ContourValues->GetValues();}
00104 
00106 
00109   void GetValues(float *contourValues) {
00110     this->ContourValues->GetValues(contourValues);}
00112 
00114 
00117   void SetNumberOfContours(int number) {
00118     this->ContourValues->SetNumberOfContours(number);}
00120 
00122 
00123   int GetNumberOfContours() {
00124     return this->ContourValues->GetNumberOfContours();}
00126 
00128 
00130   void GenerateValues(int numContours, float range[2]) {
00131     this->ContourValues->GenerateValues(numContours, range);}
00133 
00135 
00137   void GenerateValues(int numContours, float rangeStart, float rangeEnd)
00138     {this->ContourValues->GenerateValues(numContours, rangeStart, rangeEnd);}
00140 
00142 
00144   vtkSetMacro(ComputeScalars,int);
00145   vtkGetMacro(ComputeScalars,int);
00146   vtkBooleanMacro(ComputeScalars,int);
00148 
00149 protected:
00150   vtkSynchronizedTemplates2D();
00151   ~vtkSynchronizedTemplates2D();
00152 
00153   void Execute();
00154   vtkContourValues *ContourValues;
00155 
00156   int ComputeScalars;
00157 
00158 private:
00159   //BTX
00160   friend class VTK_PATENTED_EXPORT vtkKitwareContourFilter;
00161   //ETX
00162 private:
00163   vtkSynchronizedTemplates2D(const vtkSynchronizedTemplates2D&);  // Not implemented.
00164   void operator=(const vtkSynchronizedTemplates2D&);  // Not implemented.
00165 };
00166 
00167 
00168 #endif
00169 

Generated on Thu Mar 28 14:19:31 2002 for VTK by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001