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 =========================================================================*/
00072 #ifndef __vtkSynchronizedTemplates2D_h
00073 #define __vtkSynchronizedTemplates2D_h
00074 
00075 #include "vtkStructuredPointsToPolyDataFilter.h"
00076 #include "vtkContourValues.h"
00077 #include "vtkKitwareContourFilter.h"
00078 
00079 class VTK_EXPORT vtkSynchronizedTemplates2D : public vtkStructuredPointsToPolyDataFilter
00080 {
00081 public:
00082   static vtkSynchronizedTemplates2D *New();
00083   vtkTypeMacro(vtkSynchronizedTemplates2D,vtkStructuredPointsToPolyDataFilter);
00084   void PrintSelf(ostream& os, vtkIndent indent);
00085 
00087   unsigned long int GetMTime();
00088 
00091   void SetValue(int i, float value) {this->ContourValues->SetValue(i,value);}
00092 
00094   float GetValue(int i) {return this->ContourValues->GetValue(i);}
00095 
00098   float *GetValues() {return this->ContourValues->GetValues();}
00099 
00103   void GetValues(float *contourValues) {
00104     this->ContourValues->GetValues(contourValues);}
00105 
00109   void SetNumberOfContours(int number) {
00110     this->ContourValues->SetNumberOfContours(number);}
00111 
00113   int GetNumberOfContours() {
00114     return this->ContourValues->GetNumberOfContours();}
00115 
00118   void GenerateValues(int numContours, float range[2]) {
00119     this->ContourValues->GenerateValues(numContours, range);}
00120 
00123   void GenerateValues(int numContours, float rangeStart, float rangeEnd)
00124     {this->ContourValues->GenerateValues(numContours, rangeStart, rangeEnd);}
00125 
00126 protected:
00127   vtkSynchronizedTemplates2D();
00128   ~vtkSynchronizedTemplates2D();
00129   vtkSynchronizedTemplates2D(const vtkSynchronizedTemplates2D&) {};
00130   void operator=(const vtkSynchronizedTemplates2D&) {};
00131 
00132   void Execute();
00133   vtkContourValues *ContourValues;
00134 
00135 private:
00136   //BTX
00137   friend VTK_EXPORT vtkKitwareContourFilter;
00138   //ETX
00139 };
00140 
00141 
00142 #endif
00143 

Generated on Wed Nov 21 12:27:09 2001 for VTK by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001