VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions
vtkDistancePolyDataFilter Class Reference

#include <vtkDistancePolyDataFilter.h>

Inheritance diagram for vtkDistancePolyDataFilter:
Inheritance graph
[legend]
Collaboration diagram for vtkDistancePolyDataFilter:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkPolyDataAlgorithm Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
vtkPolyDataGetSecondDistanceOutput ()
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 (vtkObject *o)

Protected Member Functions

 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 44 of file vtkDistancePolyDataFilter.h.


Member Typedef Documentation

Reimplemented from vtkPolyDataAlgorithm.

Definition at line 47 of file vtkDistancePolyDataFilter.h.


Constructor & Destructor Documentation

vtkDistancePolyDataFilter::vtkDistancePolyDataFilter ( ) [protected]
vtkDistancePolyDataFilter::~vtkDistancePolyDataFilter ( ) [protected]

Member Function Documentation

static vtkDistancePolyDataFilter* vtkDistancePolyDataFilter::New ( ) [static]

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkPolyDataAlgorithm.

virtual const char* vtkDistancePolyDataFilter::GetClassName ( ) [virtual]

Reimplemented from vtkPolyDataAlgorithm.

static int vtkDistancePolyDataFilter::IsTypeOf ( const char *  name) [static]

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkPolyDataAlgorithm.

virtual int vtkDistancePolyDataFilter::IsA ( const char *  name) [virtual]

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkPolyDataAlgorithm.

static vtkDistancePolyDataFilter* vtkDistancePolyDataFilter::SafeDownCast ( vtkObject o) [static]

Reimplemented from vtkPolyDataAlgorithm.

void vtkDistancePolyDataFilter::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkPolyDataAlgorithm.

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 request,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector 
) [protected, virtual]

This is called by the superclass. This is the method you should override.

Reimplemented from vtkPolyDataAlgorithm.

int vtkDistancePolyDataFilter::FillInputPortInformation ( int  port,
vtkInformation info 
) [protected, virtual]

Fill the input port information objects for this algorithm. This is invoked by the first call to GetInputPortInformation for each port so subclasses can specify what they can handle.

Reimplemented from vtkPolyDataAlgorithm.

void vtkDistancePolyDataFilter::GetPolyDataDistance ( vtkPolyData ,
vtkPolyData  
) [protected]

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