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 | Protected Attributes | List of all members
vtkFeatureEdges Class Reference

extract boundary, non-manifold, and/or sharp edges from polygonal data More...

#include <vtkFeatureEdges.h>

Inheritance diagram for vtkFeatureEdges:
[legend]
Collaboration diagram for vtkFeatureEdges:
[legend]

Public Types

typedef vtkPolyDataAlgorithm Superclass
 
- Public Types inherited from vtkPolyDataAlgorithm
typedef vtkAlgorithm Superclass
 
- Public Types inherited from vtkAlgorithm
typedef vtkObject Superclass
 
enum  DesiredOutputPrecision { SINGLE_PRECISION, DOUBLE_PRECISION, DEFAULT_PRECISION }
 

Public Member Functions

virtual int IsA (const char *type)
 
vtkFeatureEdgesNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
void CreateDefaultLocator ()
 
unsigned long GetMTime ()
 
virtual void SetBoundaryEdges (int)
 
virtual int GetBoundaryEdges ()
 
virtual void BoundaryEdgesOn ()
 
virtual void BoundaryEdgesOff ()
 
virtual void SetFeatureEdges (int)
 
virtual int GetFeatureEdges ()
 
virtual void FeatureEdgesOn ()
 
virtual void FeatureEdgesOff ()
 
virtual void SetFeatureAngle (double)
 
virtual double GetFeatureAngle ()
 
virtual void SetNonManifoldEdges (int)
 
virtual int GetNonManifoldEdges ()
 
virtual void NonManifoldEdgesOn ()
 
virtual void NonManifoldEdgesOff ()
 
virtual void SetManifoldEdges (int)
 
virtual int GetManifoldEdges ()
 
virtual void ManifoldEdgesOn ()
 
virtual void ManifoldEdgesOff ()
 
virtual void SetColoring (int)
 
virtual int GetColoring ()
 
virtual void ColoringOn ()
 
virtual void ColoringOff ()
 
void SetLocator (vtkIncrementalPointLocator *locator)
 
virtual
vtkIncrementalPointLocator
GetLocator ()
 
- Public Member Functions inherited from vtkPolyDataAlgorithm
vtkPolyDataAlgorithmNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
vtkDataObjectGetInput ()
 
vtkDataObjectGetInput (int port)
 
vtkPolyDataGetPolyDataInput (int port)
 
vtkPolyDataGetOutput ()
 
vtkPolyDataGetOutput (int)
 
virtual void SetOutput (vtkDataObject *d)
 
virtual int ProcessRequest (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
void SetInputData (vtkDataObject *)
 
void SetInputData (int, vtkDataObject *)
 
void AddInputData (vtkDataObject *)
 
void AddInputData (int, vtkDataObject *)
 
- Public Member Functions inherited from vtkAlgorithm
vtkAlgorithmNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
int HasExecutive ()
 
vtkExecutiveGetExecutive ()
 
virtual void SetExecutive (vtkExecutive *executive)
 
virtual int ModifyRequest (vtkInformation *request, int when)
 
vtkInformation * GetInputPortInformation (int port)
 
vtkInformation * GetOutputPortInformation (int port)
 
int GetNumberOfInputPorts ()
 
int GetNumberOfOutputPorts ()
 
void UpdateProgress (double amount)
 
vtkInformation * GetInputArrayInformation (int idx)
 
void RemoveAllInputs ()
 
vtkDataObjectGetOutputDataObject (int port)
 
virtual void RemoveInputConnection (int port, vtkAlgorithmOutput *input)
 
virtual void RemoveInputConnection (int port, int idx)
 
virtual void RemoveAllInputConnections (int port)
 
int GetNumberOfInputConnections (int port)
 
int GetTotalNumberOfInputConnections ()
 
vtkAlgorithmOutputGetInputConnection (int port, int index)
 
vtkAlgorithmGetInputAlgorithm (int port, int index, int &algPort)
 
vtkAlgorithmGetInputAlgorithm (int port, int index)
 
vtkExecutiveGetInputExecutive (int port, int index)
 
vtkInformation * GetInputInformation (int port, int index)
 
vtkInformation * GetOutputInformation (int port)
 
virtual void UpdateInformation ()
 
virtual void PropagateUpdateExtent ()
 
virtual void UpdateWholeExtent ()
 
void ConvertTotalInputToPortConnection (int ind, int &port, int &conn)
 
virtual double ComputePriority ()
 
int SetUpdateExtentToWholeExtent (int port)
 
int SetUpdateExtentToWholeExtent ()
 
void SetUpdateExtent (int port, int extent[6])
 
int ProcessRequest (vtkInformation *request, vtkCollection *inInfo, vtkInformationVector *outInfo)
 
virtual int ComputePipelineMTime (vtkInformation *request, vtkInformationVector **inInfoVec, vtkInformationVector *outInfoVec, int requestFromOutputPort, unsigned long *mtime)
 
virtual vtkInformation * GetInformation ()
 
virtual void SetInformation (vtkInformation *)
 
virtual void Register (vtkObjectBase *o)
 
virtual void UnRegister (vtkObjectBase *o)
 
virtual void SetAbortExecute (int)
 
virtual int GetAbortExecute ()
 
virtual void AbortExecuteOn ()
 
virtual void AbortExecuteOff ()
 
virtual void SetProgress (double)
 
virtual double GetProgress ()
 
void SetProgressText (const char *ptext)
 
virtual char * GetProgressText ()
 
virtual unsigned long GetErrorCode ()
 
virtual void SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, const char *name)
 
virtual void SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, int fieldAttributeType)
 
virtual void SetInputArrayToProcess (int idx, vtkInformation *info)
 
virtual void SetInputArrayToProcess (int idx, int port, int connection, const char *fieldAssociation, const char *attributeTypeorName)
 
vtkDataObjectGetInputDataObject (int port, int connection)
 
virtual void SetInputConnection (int port, vtkAlgorithmOutput *input)
 
virtual void SetInputConnection (vtkAlgorithmOutput *input)
 
virtual void AddInputConnection (int port, vtkAlgorithmOutput *input)
 
virtual void AddInputConnection (vtkAlgorithmOutput *input)
 
virtual void SetInputDataObject (int port, vtkDataObject *data)
 
virtual void SetInputDataObject (vtkDataObject *data)
 
virtual void AddInputDataObject (int port, vtkDataObject *data)
 
virtual void AddInputDataObject (vtkDataObject *data)
 
vtkAlgorithmOutputGetOutputPort (int index)
 
vtkAlgorithmOutputGetOutputPort ()
 
vtkAlgorithmGetInputAlgorithm ()
 
vtkExecutiveGetInputExecutive ()
 
vtkInformation * GetInputInformation ()
 
virtual void Update (int port)
 
virtual void Update ()
 
virtual void SetReleaseDataFlag (int)
 
virtual int GetReleaseDataFlag ()
 
void ReleaseDataFlagOn ()
 
void ReleaseDataFlagOff ()
 
int UpdateExtentIsEmpty (vtkInformation *pinfo, vtkDataObject *output)
 
int UpdateExtentIsEmpty (vtkInformation *pinfo, int extentType)
 
void SetUpdateExtent (int port, int piece, int numPieces, int ghostLevel)
 
void SetUpdateExtent (int piece, int numPieces, int ghostLevel)
 
void SetUpdateExtent (int extent[6])
 
int * GetUpdateExtent ()
 
int * GetUpdateExtent (int port)
 
void GetUpdateExtent (int &x0, int &x1, int &y0, int &y1, int &z0, int &z1)
 
void GetUpdateExtent (int port, int &x0, int &x1, int &y0, int &y1, int &z0, int &z1)
 
void GetUpdateExtent (int extent[6])
 
void GetUpdateExtent (int port, int extent[6])
 
int GetUpdatePiece ()
 
int GetUpdatePiece (int port)
 
int GetUpdateNumberOfPieces ()
 
int GetUpdateNumberOfPieces (int port)
 
int GetUpdateGhostLevel ()
 
int GetUpdateGhostLevel (int port)
 

Static Public Member Functions

static int IsTypeOf (const char *type)
 
static vtkFeatureEdgesSafeDownCast (vtkObjectBase *o)
 
static vtkFeatureEdgesNew ()
 
- Static Public Member Functions inherited from vtkPolyDataAlgorithm
static vtkPolyDataAlgorithmNew ()
 
static int IsTypeOf (const char *type)
 
static vtkPolyDataAlgorithmSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkAlgorithm
static vtkAlgorithmNew ()
 
static int IsTypeOf (const char *type)
 
static vtkAlgorithmSafeDownCast (vtkObjectBase *o)
 
static void SetDefaultExecutivePrototype (vtkExecutive *proto)
 
static vtkInformationIntegerKey * INPUT_IS_OPTIONAL ()
 
static vtkInformationIntegerKey * INPUT_IS_REPEATABLE ()
 
static
vtkInformationInformationVectorKey * 
INPUT_REQUIRED_FIELDS ()
 
static
vtkInformationStringVectorKey * 
INPUT_REQUIRED_DATA_TYPE ()
 
static
vtkInformationInformationVectorKey * 
INPUT_ARRAYS_TO_PROCESS ()
 
static vtkInformationIntegerKey * INPUT_PORT ()
 
static vtkInformationIntegerKey * INPUT_CONNECTION ()
 
static vtkInformationIntegerKey * PRESERVES_DATASET ()
 
static vtkInformationIntegerKey * PRESERVES_GEOMETRY ()
 
static vtkInformationIntegerKey * PRESERVES_BOUNDS ()
 
static vtkInformationIntegerKey * PRESERVES_TOPOLOGY ()
 
static vtkInformationIntegerKey * PRESERVES_ATTRIBUTES ()
 
static vtkInformationIntegerKey * PRESERVES_RANGES ()
 
static vtkInformationIntegerKey * MANAGES_METAINFORMATION ()
 

Protected Member Functions

virtual vtkObjectBase * NewInstanceInternal () const
 
 vtkFeatureEdges ()
 
 ~vtkFeatureEdges ()
 
int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
int RequestUpdateExtent (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
- Protected Member Functions inherited from vtkPolyDataAlgorithm
 vtkPolyDataAlgorithm ()
 
 ~vtkPolyDataAlgorithm ()
 
virtual int RequestInformation (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
 
virtual int FillOutputPortInformation (int port, vtkInformation *info)
 
virtual int FillInputPortInformation (int port, vtkInformation *info)
 
- Protected Member Functions inherited from vtkAlgorithm
 vtkAlgorithm ()
 
 ~vtkAlgorithm ()
 
virtual void SetNumberOfInputPorts (int n)
 
virtual void SetNumberOfOutputPorts (int n)
 
int InputPortIndexInRange (int index, const char *action)
 
int OutputPortIndexInRange (int index, const char *action)
 
int GetInputArrayAssociation (int idx, vtkInformationVector **inputVector)
 
virtual vtkExecutiveCreateDefaultExecutive ()
 
virtual void ReportReferences (vtkGarbageCollector *)
 
virtual void SetNumberOfInputConnections (int port, int n)
 
int GetInputArrayAssociation (int idx, int connection, vtkInformationVector **inputVector)
 
int GetInputArrayAssociation (int idx, vtkDataObject *input)
 
vtkDataArray * GetInputArrayToProcess (int idx, vtkInformationVector **inputVector)
 
vtkDataArray * GetInputArrayToProcess (int idx, vtkInformationVector **inputVector, int &association)
 
vtkDataArray * GetInputArrayToProcess (int idx, int connection, vtkInformationVector **inputVector)
 
vtkDataArray * GetInputArrayToProcess (int idx, int connection, vtkInformationVector **inputVector, int &association)
 
vtkDataArray * GetInputArrayToProcess (int idx, vtkDataObject *input)
 
vtkDataArray * GetInputArrayToProcess (int idx, vtkDataObject *input, int &association)
 
vtkAbstractArray * GetInputAbstractArrayToProcess (int idx, vtkInformationVector **inputVector)
 
vtkAbstractArray * GetInputAbstractArrayToProcess (int idx, vtkInformationVector **inputVector, int &association)
 
vtkAbstractArray * GetInputAbstractArrayToProcess (int idx, int connection, vtkInformationVector **inputVector)
 
vtkAbstractArray * GetInputAbstractArrayToProcess (int idx, int connection, vtkInformationVector **inputVector, int &association)
 
vtkAbstractArray * GetInputAbstractArrayToProcess (int idx, vtkDataObject *input)
 
vtkAbstractArray * GetInputAbstractArrayToProcess (int idx, vtkDataObject *input, int &association)
 
vtkInformation * GetInputArrayFieldInformation (int idx, vtkInformationVector **inputVector)
 
virtual void SetNthInputConnection (int port, int index, vtkAlgorithmOutput *input)
 
void SetInputDataInternal (int port, vtkDataObject *input)
 
void AddInputDataInternal (int port, vtkDataObject *input)
 
virtual void SetErrorCode (unsigned long)
 

Protected Attributes

double FeatureAngle
 
int BoundaryEdges
 
int FeatureEdges
 
int NonManifoldEdges
 
int ManifoldEdges
 
int Coloring
 
vtkIncrementalPointLocatorLocator
 
- Protected Attributes inherited from vtkAlgorithm
vtkInformation * Information
 
double Progress
 
char * ProgressText
 
unsigned long ErrorCode
 

Additional Inherited Members

- Public Attributes inherited from vtkAlgorithm
int AbortExecute
 
- Static Protected Member Functions inherited from vtkAlgorithm
static vtkInformationIntegerKey * PORT_REQUIREMENTS_FILLED ()
 
- Static Protected Attributes inherited from vtkAlgorithm
static vtkExecutiveDefaultExecutivePrototype
 

Detailed Description

extract boundary, non-manifold, and/or sharp edges from polygonal data

vtkFeatureEdges is a filter to extract special types of edges from input polygonal data. These edges are either 1) boundary (used by one polygon) or a line cell; 2) non-manifold (used by three or more polygons); 3) feature edges (edges used by two triangles and whose dihedral angle > FeatureAngle); or 4) manifold edges (edges used by exactly two polygons). These edges may be extracted in any combination. Edges may also be "colored" (i.e., scalar values assigned) based on edge type. The cell coloring is assigned to the cell data of the extracted edges.

Warning
To see the coloring of the liens you may have to set the ScalarMode instance variable of the mapper to SetScalarModeToUseCellData(). (This is only a problem if there are point data scalars.)
See Also
vtkExtractEdges
Examples:
vtkFeatureEdges (Examples)
Tests:
vtkFeatureEdges (Tests)

Definition at line 51 of file vtkFeatureEdges.h.

Member Typedef Documentation

Definition at line 54 of file vtkFeatureEdges.h.

Constructor & Destructor Documentation

vtkFeatureEdges::vtkFeatureEdges ( )
protected
vtkFeatureEdges::~vtkFeatureEdges ( )
protected

Member Function Documentation

static int vtkFeatureEdges::IsTypeOf ( const char *  type)
static
virtual int vtkFeatureEdges::IsA ( const char *  type)
virtual

Reimplemented from vtkPolyDataAlgorithm.

static vtkFeatureEdges* vtkFeatureEdges::SafeDownCast ( vtkObjectBase *  o)
static
virtual vtkObjectBase* vtkFeatureEdges::NewInstanceInternal ( ) const
protectedvirtual

Reimplemented from vtkPolyDataAlgorithm.

vtkFeatureEdges* vtkFeatureEdges::NewInstance ( ) const
void vtkFeatureEdges::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
static vtkFeatureEdges* vtkFeatureEdges::New ( )
static

Construct object with feature angle = 30; all types of edges extracted and colored.

virtual void vtkFeatureEdges::SetBoundaryEdges ( int  )
virtual

Turn on/off the extraction of boundary edges.

virtual int vtkFeatureEdges::GetBoundaryEdges ( )
virtual

Turn on/off the extraction of boundary edges.

virtual void vtkFeatureEdges::BoundaryEdgesOn ( )
virtual

Turn on/off the extraction of boundary edges.

virtual void vtkFeatureEdges::BoundaryEdgesOff ( )
virtual

Turn on/off the extraction of boundary edges.

virtual void vtkFeatureEdges::SetFeatureEdges ( int  )
virtual

Turn on/off the extraction of feature edges.

virtual int vtkFeatureEdges::GetFeatureEdges ( )
virtual

Turn on/off the extraction of feature edges.

virtual void vtkFeatureEdges::FeatureEdgesOn ( )
virtual

Turn on/off the extraction of feature edges.

virtual void vtkFeatureEdges::FeatureEdgesOff ( )
virtual

Turn on/off the extraction of feature edges.

virtual void vtkFeatureEdges::SetFeatureAngle ( double  )
virtual

Specify the feature angle for extracting feature edges.

virtual double vtkFeatureEdges::GetFeatureAngle ( )
virtual

Specify the feature angle for extracting feature edges.

virtual void vtkFeatureEdges::SetNonManifoldEdges ( int  )
virtual

Turn on/off the extraction of non-manifold edges.

virtual int vtkFeatureEdges::GetNonManifoldEdges ( )
virtual

Turn on/off the extraction of non-manifold edges.

virtual void vtkFeatureEdges::NonManifoldEdgesOn ( )
virtual

Turn on/off the extraction of non-manifold edges.

virtual void vtkFeatureEdges::NonManifoldEdgesOff ( )
virtual

Turn on/off the extraction of non-manifold edges.

virtual void vtkFeatureEdges::SetManifoldEdges ( int  )
virtual

Turn on/off the extraction of manifold edges.

virtual int vtkFeatureEdges::GetManifoldEdges ( )
virtual

Turn on/off the extraction of manifold edges.

virtual void vtkFeatureEdges::ManifoldEdgesOn ( )
virtual

Turn on/off the extraction of manifold edges.

virtual void vtkFeatureEdges::ManifoldEdgesOff ( )
virtual

Turn on/off the extraction of manifold edges.

virtual void vtkFeatureEdges::SetColoring ( int  )
virtual

Turn on/off the coloring of edges by type.

virtual int vtkFeatureEdges::GetColoring ( )
virtual

Turn on/off the coloring of edges by type.

virtual void vtkFeatureEdges::ColoringOn ( )
virtual

Turn on/off the coloring of edges by type.

virtual void vtkFeatureEdges::ColoringOff ( )
virtual

Turn on/off the coloring of edges by type.

void vtkFeatureEdges::SetLocator ( vtkIncrementalPointLocator locator)

Set / get a spatial locator for merging points. By default an instance of vtkMergePoints is used.

virtual vtkIncrementalPointLocator* vtkFeatureEdges::GetLocator ( )
virtual

Set / get a spatial locator for merging points. By default an instance of vtkMergePoints is used.

void vtkFeatureEdges::CreateDefaultLocator ( )

Create default locator. Used to create one when none is specified.

unsigned long vtkFeatureEdges::GetMTime ( )

Return MTime also considering the locator.

int vtkFeatureEdges::RequestData ( vtkInformation *  request,
vtkInformationVector **  inputVector,
vtkInformationVector *  outputVector 
)
protectedvirtual

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

Reimplemented from vtkPolyDataAlgorithm.

int vtkFeatureEdges::RequestUpdateExtent ( vtkInformation *  ,
vtkInformationVector **  ,
vtkInformationVector *   
)
protectedvirtual

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

Reimplemented from vtkPolyDataAlgorithm.

Member Data Documentation

double vtkFeatureEdges::FeatureAngle
protected

Definition at line 123 of file vtkFeatureEdges.h.

int vtkFeatureEdges::BoundaryEdges
protected

Definition at line 124 of file vtkFeatureEdges.h.

int vtkFeatureEdges::FeatureEdges
protected

Definition at line 125 of file vtkFeatureEdges.h.

int vtkFeatureEdges::NonManifoldEdges
protected

Definition at line 126 of file vtkFeatureEdges.h.

int vtkFeatureEdges::ManifoldEdges
protected

Definition at line 127 of file vtkFeatureEdges.h.

int vtkFeatureEdges::Coloring
protected

Definition at line 128 of file vtkFeatureEdges.h.

vtkIncrementalPointLocator* vtkFeatureEdges::Locator
protected

Definition at line 129 of file vtkFeatureEdges.h.


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