VMTK
Loading...
Searching...
No Matches
ComputationalGeometry
vtkvmtkPolyDataScissors.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: VMTK
4
5
Copyright (c) Luca Antiga, David Steinman. All rights reserved.
6
See LICENSE file for details.
7
8
Portions of this code are covered under the VTK copyright.
9
See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm
10
for details.
11
12
This software is distributed WITHOUT ANY WARRANTY; without even
13
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14
PURPOSE. See the above copyright notices for more information.
15
16
=========================================================================*/
28
29
#ifndef __vtkvmtkPolyDataScissors_h
30
#define __vtkvmtkPolyDataScissors_h
31
32
#include "vtkPolyDataAlgorithm.h"
33
#include "vtkPolyData.h"
34
//#include "vtkvmtkComputationalGeometryWin32Header.h"
35
#include "vtkvmtkWin32Header.h"
36
37
class
VTK_VMTK_COMPUTATIONAL_GEOMETRY_EXPORT
vtkvmtkPolyDataScissors
:
public
vtkPolyDataAlgorithm
38
{
39
public
:
40
vtkTypeMacro(
vtkvmtkPolyDataScissors
,vtkPolyDataAlgorithm);
41
void
PrintSelf
(std::ostream& os, vtkIndent indent)
override
;
42
43
static
vtkvmtkPolyDataScissors
*
New
();
44
46
51
vtkSetObjectMacro(
CutLine
,vtkPolyData);
52
vtkGetObjectMacro(
CutLine
,vtkPolyData);
54
56
60
vtkSetStringMacro(
CutLinePointIdsArrayName
);
61
vtkGetStringMacro(
CutLinePointIdsArrayName
);
63
64
protected
:
65
vtkvmtkPolyDataScissors
();
66
~vtkvmtkPolyDataScissors
();
67
68
virtual
int
RequestData
(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
override
;
69
int
GetCellsOnSameSide
(vtkPolyData* input, vtkIdType targetCellId0, vtkIdType targetCellId1, vtkIdType referenceCellId, vtkIdType linePointId0, vtkIdType linePointId1, vtkIdType linePointId2, vtkIdList *cellsOnSameSide);
70
int
IsEdgeInCell
(vtkPolyData *input, vtkIdType edgePointId0, vtkIdType edgePointId1, vtkIdType cellId);
71
72
char
*
CutLinePointIdsArrayName
;
73
vtkPolyData *
CutLine
;
74
75
private
:
76
vtkvmtkPolyDataScissors
(
const
vtkvmtkPolyDataScissors
&);
// Not implemented.
77
void
operator=(
const
vtkvmtkPolyDataScissors
&);
// Not implemented.
78
};
79
80
#endif
vtkvmtkPolyDataScissors::PrintSelf
void PrintSelf(std::ostream &os, vtkIndent indent) override
Definition
vtkvmtkPolyDataScissors.cxx:398
vtkvmtkPolyDataScissors::CutLinePointIdsArrayName
char * CutLinePointIdsArrayName
Definition
vtkvmtkPolyDataScissors.h:72
vtkvmtkPolyDataScissors::GetCellsOnSameSide
int GetCellsOnSameSide(vtkPolyData *input, vtkIdType targetCellId0, vtkIdType targetCellId1, vtkIdType referenceCellId, vtkIdType linePointId0, vtkIdType linePointId1, vtkIdType linePointId2, vtkIdList *cellsOnSameSide)
Definition
vtkvmtkPolyDataScissors.cxx:69
vtkvmtkPolyDataScissors::IsEdgeInCell
int IsEdgeInCell(vtkPolyData *input, vtkIdType edgePointId0, vtkIdType edgePointId1, vtkIdType cellId)
Definition
vtkvmtkPolyDataScissors.cxx:50
vtkvmtkPolyDataScissors::CutLine
vtkPolyData * CutLine
Definition
vtkvmtkPolyDataScissors.h:73
vtkvmtkPolyDataScissors::New
static vtkvmtkPolyDataScissors * New()
vtkvmtkPolyDataScissors::vtkvmtkPolyDataScissors
vtkvmtkPolyDataScissors()
Definition
vtkvmtkPolyDataScissors.cxx:35
vtkvmtkPolyDataScissors::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Definition
vtkvmtkPolyDataScissors.cxx:151
Generated by
1.15.0