VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
vtkDistancePolyDataFilter Class Reference

#include <vtkDistancePolyDataFilter.h>

Inherits vtkPolyDataAlgorithm.

Public Types

typedef vtkPolyDataAlgorithm Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 
vtkDistancePolyDataFilterNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
vtkPolyData * GetSecondDistanceOutput ()
 
virtual void SetSignedDistance (int)
 
virtual int GetSignedDistance ()
 
virtual void SignedDistanceOn ()
 
virtual void SignedDistanceOff ()
 
virtual void SetNegateDistance (int)
 
virtual int GetNegateDistance ()
 
virtual void NegateDistanceOn ()
 
virtual void NegateDistanceOff ()
 
virtual void SetComputeSecondDistance (int)
 
virtual int GetComputeSecondDistance ()
 
virtual void ComputeSecondDistanceOn ()
 
virtual void ComputeSecondDistanceOff ()
 

Static Public Member Functions

static vtkDistancePolyDataFilterNew ()
 
static int IsTypeOf (const char *type)
 
static vtkDistancePolyDataFilterSafeDownCast (vtkObjectBase *o)
 

Protected Member Functions

virtual vtkObjectBase * NewInstanceInternal () const
 
 vtkDistancePolyDataFilter ()
 
 ~vtkDistancePolyDataFilter ()
 
int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
int FillInputPortInformation (int, vtkInformation *)
 
void GetPolyDataDistance (vtkPolyData *, vtkPolyData *)
 

Detailed Description

Computes the signed distance from one vtkPolyData to another. The signed distance to the second input is computed at every point in the first input using vtkImplicitPolyDataDistance. Optionally, the signed distance to the first input at every point in the second input can be computed. This may be enabled by calling ComputeSecondDistanceOn().

If the signed distance is not desired, the unsigned distance can be computed by calling SignedDistanceOff(). The signed distance field may be negated by calling NegateDistanceOn();

This code was contributed in the VTK Journal paper: "Boolean Operations on Surfaces in VTK Without External Libraries" by Cory Quammen, Chris Weigle C., Russ Taylor http://hdl.handle.net/10380/3262 http://www.midasjournal.org/browse/publication/797

Tests:
vtkDistancePolyDataFilter (Tests)

Definition at line 45 of file vtkDistancePolyDataFilter.h.

Member Typedef Documentation

typedef vtkPolyDataAlgorithm vtkDistancePolyDataFilter::Superclass

Definition at line 48 of file vtkDistancePolyDataFilter.h.

Constructor & Destructor Documentation

vtkDistancePolyDataFilter::vtkDistancePolyDataFilter ( )
protected
vtkDistancePolyDataFilter::~vtkDistancePolyDataFilter ( )
protected

Member Function Documentation

static vtkDistancePolyDataFilter* vtkDistancePolyDataFilter::New ( )
static
static int vtkDistancePolyDataFilter::IsTypeOf ( const char *  type)
static
virtual int vtkDistancePolyDataFilter::IsA ( const char *  type)
virtual
static vtkDistancePolyDataFilter* vtkDistancePolyDataFilter::SafeDownCast ( vtkObjectBase *  o)
static
virtual vtkObjectBase* vtkDistancePolyDataFilter::NewInstanceInternal ( ) const
protectedvirtual
vtkDistancePolyDataFilter* vtkDistancePolyDataFilter::NewInstance ( ) const
void vtkDistancePolyDataFilter::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual void vtkDistancePolyDataFilter::SetSignedDistance ( int  )
virtual

Enable/disable computation of the signed distance between the first poly data and the second poly data. Defaults to on.

virtual int vtkDistancePolyDataFilter::GetSignedDistance ( )
virtual

Enable/disable computation of the signed distance between the first poly data and the second poly data. Defaults to on.

virtual void vtkDistancePolyDataFilter::SignedDistanceOn ( )
virtual

Enable/disable computation of the signed distance between the first poly data and the second poly data. Defaults to on.

virtual void vtkDistancePolyDataFilter::SignedDistanceOff ( )
virtual

Enable/disable computation of the signed distance between the first poly data and the second poly data. Defaults to on.

virtual void vtkDistancePolyDataFilter::SetNegateDistance ( int  )
virtual

Enable/disable negation of the distance values. Defaults to off. Has no effect if SignedDistance is off.

virtual int vtkDistancePolyDataFilter::GetNegateDistance ( )
virtual

Enable/disable negation of the distance values. Defaults to off. Has no effect if SignedDistance is off.

virtual void vtkDistancePolyDataFilter::NegateDistanceOn ( )
virtual

Enable/disable negation of the distance values. Defaults to off. Has no effect if SignedDistance is off.

virtual void vtkDistancePolyDataFilter::NegateDistanceOff ( )
virtual

Enable/disable negation of the distance values. Defaults to off. Has no effect if SignedDistance is off.

virtual void vtkDistancePolyDataFilter::SetComputeSecondDistance ( int  )
virtual

Enable/disable computation of a second output poly data with the distance from the first poly data at each point. Defaults to on.

virtual int vtkDistancePolyDataFilter::GetComputeSecondDistance ( )
virtual

Enable/disable computation of a second output poly data with the distance from the first poly data at each point. Defaults to on.

virtual void vtkDistancePolyDataFilter::ComputeSecondDistanceOn ( )
virtual

Enable/disable computation of a second output poly data with the distance from the first poly data at each point. Defaults to on.

virtual void vtkDistancePolyDataFilter::ComputeSecondDistanceOff ( )
virtual

Enable/disable computation of a second output poly data with the distance from the first poly data at each point. Defaults to on.

vtkPolyData* vtkDistancePolyDataFilter::GetSecondDistanceOutput ( )

Get the second output, which is a copy of the second input with an additional distance scalar field.

int vtkDistancePolyDataFilter::RequestData ( vtkInformation *  ,
vtkInformationVector **  ,
vtkInformationVector *   
)
protected
int vtkDistancePolyDataFilter::FillInputPortInformation ( int  ,
vtkInformation *   
)
protected
void vtkDistancePolyDataFilter::GetPolyDataDistance ( vtkPolyData *  ,
vtkPolyData *   
)
protected

The documentation for this class was generated from the following file: