sort polydata along camera view direction
More...
#include <vtkPolyDataSilhouette.h>
Inherits vtkPolyDataAlgorithm.
sort polydata along camera view direction
vtkPolyDataSilhouette extracts a subset of a polygonal mesh edges to generate an outline (silhouette) of the corresponding 3D object. In addition, this filter can also extracts sharp edges (aka feature angles). In order to use this filter you must specify the a point of view (origin) or a direction (vector). given this direction or origin, a silhouette is generated wherever the surface's normal is orthogonal to the view direction.
- Warning
- when the active camera is used, almost everything is recomputed for each frame, keep this in mind when dealing with extremely large surface data sets.
- Thanks:
- Contribution by Thierry Carrard
CEA/DIF - Commissariat a l'Energie Atomique, Centre DAM Ile-De-France
BP12, F-91297 Arpajon, France.
- Tests:
- vtkPolyDataSilhouette (Tests)
Definition at line 56 of file vtkPolyDataSilhouette.h.
vtkPolyDataSilhouette::vtkPolyDataSilhouette |
( |
| ) |
|
|
protected |
vtkPolyDataSilhouette::~vtkPolyDataSilhouette |
( |
| ) |
|
|
protected |
static int vtkPolyDataSilhouette::IsTypeOf |
( |
const char * |
type | ) |
|
|
static |
virtual int vtkPolyDataSilhouette::IsA |
( |
const char * |
type | ) |
|
|
virtual |
virtual vtkObjectBase* vtkPolyDataSilhouette::NewInstanceInternal |
( |
| ) |
const |
|
protectedvirtual |
void vtkPolyDataSilhouette::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
| |
virtual void vtkPolyDataSilhouette::SetEnableFeatureAngle |
( |
int |
| ) |
|
|
virtual |
Enables or Disables generation of silhouette edges along sharp edges
virtual int vtkPolyDataSilhouette::GetEnableFeatureAngle |
( |
| ) |
|
|
virtual |
Enables or Disables generation of silhouette edges along sharp edges
virtual void vtkPolyDataSilhouette::SetFeatureAngle |
( |
double |
| ) |
|
|
virtual |
Sets/Gets minimal angle for sharp edges detection. Default is 60
virtual double vtkPolyDataSilhouette::GetFeatureAngle |
( |
| ) |
|
|
virtual |
Sets/Gets minimal angle for sharp edges detection. Default is 60
virtual void vtkPolyDataSilhouette::SetBorderEdges |
( |
int |
| ) |
|
|
virtual |
Enables or Disables generation of border edges. Note: borders exist only in case of non closed surface
virtual int vtkPolyDataSilhouette::GetBorderEdges |
( |
| ) |
|
|
virtual |
Enables or Disables generation of border edges. Note: borders exist only in case of non closed surface
virtual void vtkPolyDataSilhouette::BorderEdgesOn |
( |
| ) |
|
|
virtual |
Enables or Disables generation of border edges. Note: borders exist only in case of non closed surface
virtual void vtkPolyDataSilhouette::BorderEdgesOff |
( |
| ) |
|
|
virtual |
Enables or Disables generation of border edges. Note: borders exist only in case of non closed surface
virtual void vtkPolyDataSilhouette::SetPieceInvariant |
( |
int |
| ) |
|
|
virtual |
Enables or Disables piece invariance. This is useful when dealing with multi-block data sets. Note: requires one level of ghost cells
virtual int vtkPolyDataSilhouette::GetPieceInvariant |
( |
| ) |
|
|
virtual |
Enables or Disables piece invariance. This is useful when dealing with multi-block data sets. Note: requires one level of ghost cells
virtual void vtkPolyDataSilhouette::PieceInvariantOn |
( |
| ) |
|
|
virtual |
Enables or Disables piece invariance. This is useful when dealing with multi-block data sets. Note: requires one level of ghost cells
virtual void vtkPolyDataSilhouette::PieceInvariantOff |
( |
| ) |
|
|
virtual |
Enables or Disables piece invariance. This is useful when dealing with multi-block data sets. Note: requires one level of ghost cells
virtual void vtkPolyDataSilhouette::SetDirection |
( |
int |
| ) |
|
|
virtual |
Specify how view direction is computed. By default, the camera origin (eye) is used.
virtual int vtkPolyDataSilhouette::GetDirection |
( |
| ) |
|
|
virtual |
Specify how view direction is computed. By default, the camera origin (eye) is used.
void vtkPolyDataSilhouette::SetDirectionToSpecifiedVector |
( |
| ) |
|
|
inline |
Specify how view direction is computed. By default, the camera origin (eye) is used.
Definition at line 98 of file vtkPolyDataSilhouette.h.
void vtkPolyDataSilhouette::SetDirectionToSpecifiedOrigin |
( |
| ) |
|
|
inline |
Specify how view direction is computed. By default, the camera origin (eye) is used.
Definition at line 100 of file vtkPolyDataSilhouette.h.
void vtkPolyDataSilhouette::SetDirectionToCameraVector |
( |
| ) |
|
|
inline |
Specify how view direction is computed. By default, the camera origin (eye) is used.
Definition at line 102 of file vtkPolyDataSilhouette.h.
void vtkPolyDataSilhouette::SetDirectionToCameraOrigin |
( |
| ) |
|
|
inline |
Specify how view direction is computed. By default, the camera origin (eye) is used.
Definition at line 104 of file vtkPolyDataSilhouette.h.
virtual void vtkPolyDataSilhouette::SetCamera |
( |
vtkCamera VTK_WRAP_EXTERN * |
| ) |
|
|
virtual |
Specify a camera that is used to define the view direction. This ivar only has effect if the direction is set to VTK_DIRECTION_CAMERA_ORIGIN or VTK_DIRECTION_CAMERA_VECTOR, and a camera is specified.
virtual vtkCamera VTK_WRAP_EXTERN* vtkPolyDataSilhouette::GetCamera |
( |
| ) |
|
|
virtual |
Specify a camera that is used to define the view direction. This ivar only has effect if the direction is set to VTK_DIRECTION_CAMERA_ORIGIN or VTK_DIRECTION_CAMERA_VECTOR, and a camera is specified.
void vtkPolyDataSilhouette::SetProp3D |
( |
vtkProp3D VTK_WRAP_EXTERN * |
| ) |
|
Specify a transformation matrix (via the vtkProp3D::GetMatrix() method) that is used to include the effects of transformation. This ivar only has effect if the direction is set to VTK_DIRECTION_CAMERA_ORIGIN or VTK_DIRECTION_CAMERA_VECTOR, and a camera is specified. Specifying the vtkProp3D is optional.
vtkProp3D VTK_WRAP_EXTERN* vtkPolyDataSilhouette::GetProp3D |
( |
| ) |
|
Specify a transformation matrix (via the vtkProp3D::GetMatrix() method) that is used to include the effects of transformation. This ivar only has effect if the direction is set to VTK_DIRECTION_CAMERA_ORIGIN or VTK_DIRECTION_CAMERA_VECTOR, and a camera is specified. Specifying the vtkProp3D is optional.
virtual void vtkPolyDataSilhouette::SetVector |
( |
double |
, |
|
|
double |
, |
|
|
double |
|
|
) |
| |
|
virtual |
Set/Get the sort direction. This ivar only has effect if the sort direction is set to SetDirectionToSpecifiedVector(). The edge detection occurs in the direction of the vector.
virtual void vtkPolyDataSilhouette::SetVector |
( |
double |
[3] | ) |
|
|
virtual |
Set/Get the sort direction. This ivar only has effect if the sort direction is set to SetDirectionToSpecifiedVector(). The edge detection occurs in the direction of the vector.
virtual double* vtkPolyDataSilhouette::GetVector |
( |
| ) |
|
|
virtual |
Set/Get the sort direction. This ivar only has effect if the sort direction is set to SetDirectionToSpecifiedVector(). The edge detection occurs in the direction of the vector.
virtual void vtkPolyDataSilhouette::GetVector |
( |
double |
data[3] | ) |
|
|
virtual |
Set/Get the sort direction. This ivar only has effect if the sort direction is set to SetDirectionToSpecifiedVector(). The edge detection occurs in the direction of the vector.
virtual void vtkPolyDataSilhouette::SetOrigin |
( |
double |
, |
|
|
double |
, |
|
|
double |
|
|
) |
| |
|
virtual |
Set/Get the sort origin. This ivar only has effect if the sort direction is set to SetDirectionToSpecifiedOrigin(). The edge detection occurs in the direction of the origin to each edge's center.
virtual void vtkPolyDataSilhouette::SetOrigin |
( |
double |
[3] | ) |
|
|
virtual |
Set/Get the sort origin. This ivar only has effect if the sort direction is set to SetDirectionToSpecifiedOrigin(). The edge detection occurs in the direction of the origin to each edge's center.
virtual double* vtkPolyDataSilhouette::GetOrigin |
( |
| ) |
|
|
virtual |
Set/Get the sort origin. This ivar only has effect if the sort direction is set to SetDirectionToSpecifiedOrigin(). The edge detection occurs in the direction of the origin to each edge's center.
virtual void vtkPolyDataSilhouette::GetOrigin |
( |
double |
data[3] | ) |
|
|
virtual |
Set/Get the sort origin. This ivar only has effect if the sort direction is set to SetDirectionToSpecifiedOrigin(). The edge detection occurs in the direction of the origin to each edge's center.
unsigned long vtkPolyDataSilhouette::GetMTime |
( |
| ) |
|
Return MTime also considering the dependent objects: the camera and/or the prop3D.
int vtkPolyDataSilhouette::RequestData |
( |
vtkInformation * |
, |
|
|
vtkInformationVector ** |
, |
|
|
vtkInformationVector * |
|
|
) |
| |
|
protected |
void vtkPolyDataSilhouette::ComputeProjectionVector |
( |
double |
vector[3], |
|
|
double |
origin[3] |
|
) |
| |
|
protected |
int vtkPolyDataSilhouette::Direction |
|
protected |
vtkCamera* vtkPolyDataSilhouette::Camera |
|
protected |
vtkProp3D* vtkPolyDataSilhouette::Prop3D |
|
protected |
vtkTransform* vtkPolyDataSilhouette::Transform |
|
protected |
double vtkPolyDataSilhouette::Vector[3] |
|
protected |
double vtkPolyDataSilhouette::Origin[3] |
|
protected |
int vtkPolyDataSilhouette::EnableFeatureAngle |
|
protected |
double vtkPolyDataSilhouette::FeatureAngle |
|
protected |
int vtkPolyDataSilhouette::BorderEdges |
|
protected |
int vtkPolyDataSilhouette::PieceInvariant |
|
protected |
vtkPolyDataEdges* vtkPolyDataSilhouette::PreComp |
|
protected |
The documentation for this class was generated from the following file: