00001 /*========================================================================= 00002 00003 Program: MIMX Meshing Toolkit 00004 Module: $RCSfile: vtkMimxUnstructuredGridFromFourPoints.h,v $ 00005 Language: C++ 00006 Date: $Date: 2007/07/12 14:15:21 $ 00007 Version: $Revision: 1.6 $ 00008 00009 Musculoskeletal Imaging, Modelling and Experimentation (MIMX) 00010 Center for Computer Aided Design 00011 The University of Iowa 00012 Iowa City, IA 52242 00013 http://www.ccad.uiowa.edu/mimx/ 00014 00015 Copyright (c) The University of Iowa. All rights reserved. 00016 See MIMXCopyright.txt or http://www.ccad.uiowa.edu/mimx/Copyright.htm for details. 00017 00018 This software is distributed WITHOUT ANY WARRANTY; without even 00019 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00020 PURPOSE. See the above copyright notices for more information. 00021 00022 =========================================================================*/ 00023 00024 // .NAME vtkMimxUnstructuredGridFromFourPoints - 00025 // .SECTION Caveats 00026 // Filter takes in a list of four point co-ordinates. The output will be an 00027 // unstructuredgrid containing a hexahedron cell. The other 4 points are added 00028 // by extruding the four initial points in the direction of normal of the average 00029 // plane containing the initial input points. 00030 00031 #ifndef __vtkMimxUnstructuredGridFromFourPoints_h 00032 #define __vtkMimxUnstructuredGridFromFourPoints_h 00033 00034 #include "vtkUnstructuredGridAlgorithm.h" 00035 #include "vtkMimxFilterWin32Header.h" 00036 00037 class vtkPoints; 00038 00039 class VTK_MIMXFILTER_EXPORT vtkMimxUnstructuredGridFromFourPoints : public vtkUnstructuredGridAlgorithm 00040 { 00041 public: 00042 00043 static vtkMimxUnstructuredGridFromFourPoints *New(); 00044 vtkTypeRevisionMacro(vtkMimxUnstructuredGridFromFourPoints,vtkUnstructuredGridAlgorithm); 00045 void PrintSelf(ostream& os, vtkIndent indent); 00046 vtkSetMacro(Points, vtkPoints*); 00047 vtkSetMacro(ExtrusionLength, double); 00048 00049 protected: 00050 vtkMimxUnstructuredGridFromFourPoints(); 00051 ~vtkMimxUnstructuredGridFromFourPoints(); 00052 vtkPoints *Points; 00053 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00054 double ExtrusionLength; 00055 00056 private: 00057 vtkMimxUnstructuredGridFromFourPoints(const vtkMimxUnstructuredGridFromFourPoints&); // Not implemented. 00058 void operator=(const vtkMimxUnstructuredGridFromFourPoints&); // Not implemented. 00059 }; 00060 00061 #endif
1.6.1