VTK  9.6.1
vtkPolyDataSilhouette.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
28
29#ifndef vtkPolyDataSilhouette_h
30#define vtkPolyDataSilhouette_h
31
32#include "vtkFiltersHybridModule.h" // For export macro
34
35VTK_ABI_NAMESPACE_BEGIN
36class vtkCamera;
37class vtkProp3D;
38class vtkTransform;
39class vtkPolyDataEdges;
40
41class VTKFILTERSHYBRID_EXPORT vtkPolyDataSilhouette : public vtkPolyDataAlgorithm
42{
43public:
48
50 void PrintSelf(ostream& os, vtkIndent indent) override;
51
53
56 vtkSetMacro(EnableFeatureAngle, int);
57 vtkGetMacro(EnableFeatureAngle, int);
59
61
64 vtkSetMacro(FeatureAngle, double);
65 vtkGetMacro(FeatureAngle, double);
67
69
73 vtkSetMacro(BorderEdges, vtkTypeBool);
74 vtkGetMacro(BorderEdges, vtkTypeBool);
75 vtkBooleanMacro(BorderEdges, vtkTypeBool);
77
79
85 vtkBooleanMacro(PieceInvariant, vtkTypeBool);
87
95
97
101 vtkSetMacro(Direction, int);
102 vtkGetMacro(Direction, int);
108
110
115 virtual void SetCamera(vtkCamera VTK_WRAP_EXTERN*);
116 vtkGetObjectMacro(Camera, vtkCamera VTK_WRAP_EXTERN);
118
120
127 void SetProp3D(vtkProp3D VTK_WRAP_EXTERN*);
128 vtkProp3D VTK_WRAP_EXTERN* GetProp3D();
130
132
137 vtkSetVector3Macro(Vector, double);
138 vtkGetVectorMacro(Vector, double, 3);
140
142
147 vtkSetVector3Macro(Origin, double);
148 vtkGetVectorMacro(Origin, double, 3);
150
156
157protected:
160
162 void ComputeProjectionVector(double vector[3], double origin[3]);
163
168 double Vector[3];
169 double Origin[3];
170
173
176
177 vtkPolyDataEdges* PreComp; // precomputed data for a given point of view
178
179private:
181 void operator=(const vtkPolyDataSilhouette&) = delete;
182};
183
184VTK_ABI_NAMESPACE_END
185#endif
a virtual camera for 3D rendering
Definition vtkCamera.h:42
a simple class to control print indentation
Definition vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
void SetDirectionToSpecifiedVector()
Specify how view direction is computed.
void SetDirectionToCameraOrigin()
Specify how view direction is computed.
~vtkPolyDataSilhouette() override
virtual void SetDirection(int)
Specify how view direction is computed.
void SetDirectionToCameraVector()
Specify how view direction is computed.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetProp3D(vtkProp3D VTK_WRAP_EXTERN *)
Specify a transformation matrix (via the vtkProp3D::GetMatrix() method) that is used to include the e...
vtkMTimeType GetMTime() override
Return MTime also considering the dependent objects: the camera and/or the prop3D.
vtkProp3D VTK_WRAP_EXTERN * GetProp3D()
Specify a transformation matrix (via the vtkProp3D::GetMatrix() method) that is used to include the e...
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void ComputeProjectionVector(double vector[3], double origin[3])
static vtkPolyDataSilhouette * New()
Instantiate object.
void SetDirectionToSpecifiedOrigin()
Specify how view direction is computed.
virtual void SetCamera(vtkCamera VTK_WRAP_EXTERN *)
Specify a camera that is used to define the view direction.
represents an 3D object for placement in a rendered scene
Definition vtkProp3D.h:40
describes linear transformations via a 4x4 matrix
int vtkTypeBool
Definition vtkABI.h:64
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:323