Graphics/vtkRuledSurfaceFilter.h Source File

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

# Graphics/vtkRuledSurfaceFilter.h

Go to the documentation of this file.

    00001 /*=========================================================================
    00002
    00003   Program:   Visualization Toolkit
    00004   Module:    $RCSfile: vtkRuledSurfaceFilter.h,v $
    00005   Language:  C++
    00006
    00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
    00008   All rights reserved.
    00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
    00010
    00011      This software is distributed WITHOUT ANY WARRANTY; without even
    00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
    00013      PURPOSE.  See the above copyright notice for more information.
    00014
    00015 =========================================================================*/
    00073 #ifndef __vtkRuledSurfaceFilter_h
    00074 #define __vtkRuledSurfaceFilter_h
    00075
    00076 #include "vtkPolyDataToPolyDataFilter.h"
    00077
    00078 class vtkIdList;
    00079 class vtkPoints;
    00080 class vtkPolyData;
    00081
    00082 #define VTK_RULED_MODE_RESAMPLE 0
    00083 #define VTK_RULED_MODE_POINT_WALK 1
    00084
    00085 class VTK_GRAPHICS_EXPORT vtkRuledSurfaceFilter : public vtkPolyDataToPolyDataFilter
    00086 {
    00087 public:
    00088   vtkTypeRevisionMacro(vtkRuledSurfaceFilter,vtkPolyDataToPolyDataFilter);
    00089   void PrintSelf(ostream& os, vtkIndent indent);
    00090
    00093   static vtkRuledSurfaceFilter *New();
    00094
    00096
    00097   vtkSetClampMacro(DistanceFactor,float,1.0,VTK_LARGE_FLOAT);
    00098   vtkGetMacro(DistanceFactor,float);
    00100
    00102
    00105   vtkSetClampMacro(OnRatio,int,1,VTK_LARGE_INTEGER);
    00106   vtkGetMacro(OnRatio,int);
    00108
    00110
    00113   vtkSetClampMacro(Offset,int,0,VTK_LARGE_INTEGER);
    00114   vtkGetMacro(Offset,int);
    00116
    00118
    00123   vtkSetMacro(CloseSurface,int);
    00124   vtkGetMacro(CloseSurface,int);
    00125   vtkBooleanMacro(CloseSurface,int);
    00127
    00129
    00133   vtkSetClampMacro(RuledMode,int,
    00134                    VTK_RULED_MODE_RESAMPLE,VTK_RULED_MODE_POINT_WALK);
    00135   vtkGetMacro(RuledMode,int);
    00136   void SetRuledModeToResample()
    00137     {this->SetRuledMode(VTK_RULED_MODE_RESAMPLE);}
    00138   void SetRuledModeToPointWalk()
    00139     {this->SetRuledMode(VTK_RULED_MODE_POINT_WALK);}
    00140   const char *GetRuledModeAsString();
    00142
    00144
    00149   vtkSetVector2Macro(Resolution, int);
    00150   vtkGetVectorMacro(Resolution, int, 2);
    00152
    00154
    00156   vtkSetMacro(PassLines,int);
    00157   vtkGetMacro(PassLines,int);
    00158   vtkBooleanMacro(PassLines,int);
    00160
    00161 protected:
    00162   vtkRuledSurfaceFilter();
    00163   ~vtkRuledSurfaceFilter();
    00164
    00165   // Usual data generation method
    00166   void Execute();
    00167
    00168   float DistanceFactor;
    00169   int   OnRatio;
    00170   int   Offset;
    00171   int   CloseSurface;
    00172   int   RuledMode;
    00173   int   Resolution[2];
    00174   int   PassLines;
    00175
    00176 private:
    00177   vtkIdList *Ids;
    00178   float     Weights[4];
    00179
    00180   void  Resample(vtkPolyData *output, vtkPoints *inPts, vtkPoints *newPts,
    00181                  int npts, vtkIdType *pts, int npts2, vtkIdType *pts2);
    00182   void  PointWalk(vtkPolyData *output, vtkPoints *inPts,
    00183                   int npts, vtkIdType *pts, int npts2, vtkIdType *pts2);
    00184
    00185 private:
    00186   vtkRuledSurfaceFilter(const vtkRuledSurfaceFilter&);  // Not implemented.
    00187   void operator=(const vtkRuledSurfaceFilter&);  // Not implemented.
    00188 };
    00189
    00190 #endif
    00191
    00192