VTK  9.2.6
vtkPolyDataSilhouette.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkPolyDataSilhouette.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
40
41#ifndef vtkPolyDataSilhouette_h
42#define vtkPolyDataSilhouette_h
43
44#include "vtkFiltersHybridModule.h" // For export macro
46
47class vtkCamera;
48class vtkProp3D;
49class vtkTransform;
50class vtkPolyDataEdges;
51
52class VTKFILTERSHYBRID_EXPORT vtkPolyDataSilhouette : public vtkPolyDataAlgorithm
53{
54public:
59
61 void PrintSelf(ostream& os, vtkIndent indent) override;
62
64
67 vtkSetMacro(EnableFeatureAngle, int);
68 vtkGetMacro(EnableFeatureAngle, int);
70
72
75 vtkSetMacro(FeatureAngle, double);
76 vtkGetMacro(FeatureAngle, double);
78
80
84 vtkSetMacro(BorderEdges, vtkTypeBool);
85 vtkGetMacro(BorderEdges, vtkTypeBool);
86 vtkBooleanMacro(BorderEdges, vtkTypeBool);
88
90
96 vtkBooleanMacro(PieceInvariant, vtkTypeBool);
98
106
108
112 vtkSetMacro(Direction, int);
113 vtkGetMacro(Direction, int);
119
121
126 virtual void SetCamera(vtkCamera VTK_WRAP_EXTERN*);
127 vtkGetObjectMacro(Camera, vtkCamera VTK_WRAP_EXTERN);
129
131
138 void SetProp3D(vtkProp3D VTK_WRAP_EXTERN*);
139 vtkProp3D VTK_WRAP_EXTERN* GetProp3D();
141
143
148 vtkSetVector3Macro(Vector, double);
149 vtkGetVectorMacro(Vector, double, 3);
151
153
158 vtkSetVector3Macro(Origin, double);
159 vtkGetVectorMacro(Origin, double, 3);
161
167
168protected:
171
173 void ComputeProjectionVector(double vector[3], double origin[3]);
174
179 double Vector[3];
180 double Origin[3];
181
184
187
188 vtkPolyDataEdges* PreComp; // precomputed data for a given point of view
189
190private:
192 void operator=(const vtkPolyDataSilhouette&) = delete;
193};
194
195#endif
a virtual camera for 3D rendering
Definition vtkCamera.h:52
a simple class to control print indentation
Definition vtkIndent.h:40
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:50
describes linear transformations via a 4x4 matrix
int vtkTypeBool
Definition vtkABI.h:69
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:287