VTK
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=========================================================================*/
41#ifndef vtkPolyDataSilhouette_h
42#define vtkPolyDataSilhouette_h
43
44#include "vtkFiltersHybridModule.h" // For export macro
46
47
48class vtkCamera;
49class vtkProp3D;
50class vtkTransform;
51class vtkPolyDataEdges;
52
53class VTKFILTERSHYBRID_EXPORT vtkPolyDataSilhouette : public vtkPolyDataAlgorithm
54{
55public:
60
62 void PrintSelf(ostream& os, vtkIndent indent);
63
65
68 vtkSetMacro(EnableFeatureAngle,int);
69 vtkGetMacro(EnableFeatureAngle,int);
71
73
76 vtkSetMacro(FeatureAngle,double);
77 vtkGetMacro(FeatureAngle,double);
79
81
85 vtkSetMacro(BorderEdges,int);
86 vtkGetMacro(BorderEdges,int);
87 vtkBooleanMacro(BorderEdges,int);
89
91
95 vtkSetMacro(PieceInvariant,int);
96 vtkGetMacro(PieceInvariant,int);
97 vtkBooleanMacro(PieceInvariant,int);
99
101 {
102 VTK_DIRECTION_SPECIFIED_VECTOR = 0,
103 VTK_DIRECTION_SPECIFIED_ORIGIN = 1,
104 VTK_DIRECTION_CAMERA_ORIGIN = 2,
105 VTK_DIRECTION_CAMERA_VECTOR = 3
106 };
107
109
113 vtkSetMacro(Direction,int);
114 vtkGetMacro(Direction,int);
116 {this->SetDirection( VTK_DIRECTION_SPECIFIED_VECTOR ); }
118 {this->SetDirection( VTK_DIRECTION_SPECIFIED_ORIGIN ); }
120 {this->SetDirection( VTK_DIRECTION_CAMERA_VECTOR ); }
122 {this->SetDirection( VTK_DIRECTION_CAMERA_ORIGIN ); }
124
126
131 virtual void SetCamera(vtkCamera VTK_WRAP_EXTERN*);
132 vtkGetObjectMacro(Camera,vtkCamera VTK_WRAP_EXTERN);
134
136
143 void SetProp3D(vtkProp3D VTK_WRAP_EXTERN*);
144 vtkProp3D VTK_WRAP_EXTERN*GetProp3D();
146
148
153 vtkSetVector3Macro(Vector,double);
154 vtkGetVectorMacro(Vector,double,3);
156
158
163 vtkSetVector3Macro(Origin,double);
164 vtkGetVectorMacro(Origin,double,3);
166
172
173protected:
176
178 void ComputeProjectionVector(double vector[3], double origin[3]);
179
184 double Vector[3];
185 double Origin[3];
186
189
192
193 vtkPolyDataEdges* PreComp; // precomputed data for a given point of view
194
195private:
196 vtkPolyDataSilhouette(const vtkPolyDataSilhouette&) VTK_DELETE_FUNCTION;
197 void operator=(const vtkPolyDataSilhouette&) VTK_DELETE_FUNCTION;
198};
199
200#endif
a virtual camera for 3D rendering
Definition: vtkCamera.h:51
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
sort polydata along camera view direction
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkPolyDataEdges * PreComp
void SetProp3D(vtkProp3D VTK_WRAP_EXTERN *)
Specify a transformation matrix (via the vtkProp3D::GetMatrix() method) that is used to include the e...
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
vtkProp3D VTK_WRAP_EXTERN * GetProp3D()
void ComputeProjectionVector(double vector[3], double origin[3])
static vtkPolyDataSilhouette * New()
Instantiate object.
virtual void SetCamera(vtkCamera VTK_WRAP_EXTERN *)
Specify a camera that is used to define the view direction.
vtkMTimeType GetMTime()
Return MTime also considering the dependent objects: the camera and/or the prop3D.
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:47
describes linear transformations via a 4x4 matrix
Definition: vtkTransform.h:61
@ vector
Definition: vtkX3D.h:237
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248