28 #ifndef __vtkvmtkUnstructuredGridCenterlineSections_h 29 #define __vtkvmtkUnstructuredGridCenterlineSections_h 31 #include "vtkPolyDataAlgorithm.h" 32 #include "vtkvmtkWin32Header.h" 33 #include "vtkPolyData.h" 35 class vtkUnstructuredGrid;
42 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
46 vtkSetObjectMacro(Centerlines,vtkPolyData);
47 vtkGetObjectMacro(Centerlines,vtkPolyData);
49 vtkSetObjectMacro(SectionSource,vtkPolyData);
50 vtkGetObjectMacro(SectionSource,vtkPolyData);
52 vtkSetStringMacro(SectionUpNormalsArrayName);
53 vtkGetStringMacro(SectionUpNormalsArrayName);
55 vtkSetStringMacro(SectionNormalsArrayName);
56 vtkGetStringMacro(SectionNormalsArrayName);
58 vtkSetStringMacro(AdditionalNormalsArrayName);
59 vtkGetStringMacro(AdditionalNormalsArrayName);
61 vtkSetStringMacro(AdditionalScalarsArrayName);
62 vtkGetStringMacro(AdditionalScalarsArrayName);
64 vtkSetMacro(TransformSections,
int);
65 vtkGetMacro(TransformSections,
int);
66 vtkBooleanMacro(TransformSections,
int);
68 vtkSetMacro(UseSectionSource,
int);
69 vtkGetMacro(UseSectionSource,
int);
70 vtkBooleanMacro(UseSectionSource,
int);
72 vtkSetMacro(SourceScaling,
int);
73 vtkGetMacro(SourceScaling,
int);
74 vtkBooleanMacro(SourceScaling,
int);
76 vtkSetVectorMacro(OriginOffset,
double,3);
77 vtkGetVectorMacro(OriginOffset,
double,3);
79 vtkSetStringMacro(VectorsArrayName);
80 vtkGetStringMacro(VectorsArrayName);
82 vtkSetStringMacro(SectionIdsArrayName);
83 vtkGetStringMacro(SectionIdsArrayName);
85 vtkGetObjectMacro(SectionPointsPolyData,vtkPolyData);
91 int FillInputPortInformation(
int, vtkInformation *info) VTK_OVERRIDE;
93 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
95 double ComputeAngle(
double vector0[3],
double vector1[3]);
96 void CreateTransform(vtkTransform* transform,
double currentOrigin[3],
double currentNormal[3],
double currentUpNormal[3],
double targetOrigin[3],
double targetNormal[3],
double targetUpNormal[3]);
115 double OriginOffset[3];
char * AdditionalNormalsArrayName
char * SectionUpNormalsArrayName
char * AdditionalScalarsArrayName
obtain sections of an unstructured grid mesh with lie along a centerline path.
char * SectionNormalsArrayName
vtkPolyData * SectionPointsPolyData
char * SectionIdsArrayName
vtkPolyData * Centerlines
vtkPolyData * SectionSource