ActiViz .NET  5.8.0
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Static Private Member Functions
Kitware.VTK.vtkSimpleCellTessellator Class Reference

vtkSimpleCellTessellator - helper class to perform cell tessellation More...

Inheritance diagram for Kitware.VTK.vtkSimpleCellTessellator:
[legend]
Collaboration diagram for Kitware.VTK.vtkSimpleCellTessellator:
[legend]

List of all members.

Public Member Functions

 vtkSimpleCellTessellator (IntPtr rawCppThis, bool callDisposalMethod, bool strong)
 Automatically generated constructor - called from generated code. DO NOT call directly.
 vtkSimpleCellTessellator ()
 *Undocumented Block
int GetFixedSubdivisions ()
 Return the number of fixed subdivisions. It is used to prevent from infinite loop in degenerated cases. For order 3 or higher, if the inflection point is exactly on the mid-point, error metric will not detect that a subdivision is required. 0 means no fixed subdivision: there will be only adaptive subdivisions.
virtual vtkGenericAdaptorCell GetGenericCell ()
 Get the higher order cell in order to access the evaluation function.
int GetMaxAdaptiveSubdivisions ()
 Return the maximum number of adaptive subdivisions.
int GetMaxSubdivisionLevel ()
 Return the maximum level of subdivision. It is used to prevent from infinite loop in degenerated cases. For order 3 or higher, if the inflection point is exactly on the mid-point, error metric will not detect that a subdivision is required. 0 means no subdivision, neither fixed nor adaptive.
override void Initialize (vtkGenericDataSet ds)
 Initialize the tessellator with a data set `ds'.
override int IsA (string type)
 *Undocumented Block
new vtkSimpleCellTessellator NewInstance ()
 *Undocumented Block
void Reset ()
 Reset the output for repeated use of this class.
void SetFixedSubdivisions (int level)
 Set the number of fixed subdivisions. See GetFixedSubdivisions() for more explanations.
void SetMaxSubdivisionLevel (int level)
 Set the maximum level of subdivision. See GetMaxSubdivisionLevel() for more explanations.
void SetSubdivisionLevels (int arg0, int maxLevel)
 Set both the number of fixed subdivisions and the maximum level of subdivisions. See GetFixedSubdivisions(), GetMaxSubdivisionLevel() and GetMaxAdaptiveSubdivisions() for more explanations.
override void Tessellate (vtkGenericAdaptorCell cell, vtkGenericAttributeCollection att, vtkDoubleArray points, vtkCellArray cellArray, vtkPointData internalPd)
 Tessellate a 3D cell'. The result is a set of smaller linear tetrahedra incellArray' with points' and point datainternalPd'.
override void TessellateFace (vtkGenericAdaptorCell cell, vtkGenericAttributeCollection att, int index, vtkDoubleArray points, vtkCellArray cellArray, vtkPointData internalPd)
 Tessellate a face of a 3D `cell'. The face is specified by the index value. The result is a set of smaller linear triangles in cellArray' with points' and point data `internalPd'.
override void Triangulate (vtkGenericAdaptorCell cell, vtkGenericAttributeCollection att, vtkDoubleArray points, vtkCellArray cellArray, vtkPointData internalPd)
 Triangulate a 2D cell'. The result is a set of smaller linear triangles incellArray' with points' and point datainternalPd'.
- Public Member Functions inherited from Kitware.VTK.vtkGenericCellTessellator
 vtkGenericCellTessellator (IntPtr rawCppThis, bool callDisposalMethod, bool strong)
 Automatically generated constructor - called from generated code. DO NOT call directly.
virtual vtkCollection GetErrorMetrics ()
 Specify the list of error metrics used to decide if an edge has to be splitted or not. It is a collection of vtkGenericSubdivisionErrorMetric-s.
void GetMaxErrors (IntPtr errors)
 Get the maximum error measured after the fixed subdivision.
virtual int GetMeasurement ()
 If true, measure the quality of the fixed subdivision.
void InitErrorMetrics (vtkGenericDataSet ds)
 Init the error metric with the dataset. Should be called in each filter before any tessellation of any cell.
virtual void SetErrorMetrics (vtkCollection someErrorMetrics)
 Specify the list of error metrics used to decide if an edge has to be splitted or not. It is a collection of vtkGenericSubdivisionErrorMetric-s.
virtual void SetMeasurement (int _arg)
 If true, measure the quality of the fixed subdivision.
- Public Member Functions inherited from Kitware.VTK.vtkObject
 vtkObject (IntPtr rawCppThis, bool callDisposalMethod, bool strong)
 Automatically generated constructor - called from generated code. DO NOT call directly.
 vtkObject ()
 Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
uint AddObserver (uint arg0, vtkCommand arg1, float priority)
 This is a global flag that controls whether any debug, warning or error messages are displayed.
uint AddObserver (string arg0, vtkCommand arg1, float priority)
 This is a global flag that controls whether any debug, warning or error messages are displayed.
virtual void DebugOff ()
 Turn debugging output off.
virtual void DebugOn ()
 Turn debugging output on.
vtkCommand GetCommand (uint tag)
 This is a global flag that controls whether any debug, warning or error messages are displayed.
byte GetDebug ()
 Get the value of the debug flag.
virtual uint GetMTime ()
 Return this object's modified time.
int HasObserver (uint arg0, vtkCommand arg1)
 This is a global flag that controls whether any debug, warning or error messages are displayed.
int HasObserver (string arg0, vtkCommand arg1)
 This is a global flag that controls whether any debug, warning or error messages are displayed.
int HasObserver (uint arg0)
 This is a global flag that controls whether any debug, warning or error messages are displayed.
int HasObserver (string arg0)
 This is a global flag that controls whether any debug, warning or error messages are displayed.
int InvokeEvent (uint arg0, IntPtr callData)
 This is a global flag that controls whether any debug, warning or error messages are displayed.
int InvokeEvent (string arg0, IntPtr callData)
 This is a global flag that controls whether any debug, warning or error messages are displayed.
int InvokeEvent (uint arg0)
 This is a global flag that controls whether any debug, warning or error messages are displayed.
int InvokeEvent (string arg0)
 This is a global flag that controls whether any debug, warning or error messages are displayed.
virtual void Modified ()
 Update the modification time for this object. Many filters rely on the modification time to determine if they need to recompute their data. The modification time is a unique monotonically increasing unsigned long integer.
void RemoveAllObservers ()
 This is a global flag that controls whether any debug, warning or error messages are displayed.
void RemoveObserver (vtkCommand arg0)
 This is a global flag that controls whether any debug, warning or error messages are displayed.
void RemoveObserver (uint tag)
 This is a global flag that controls whether any debug, warning or error messages are displayed.
void RemoveObservers (uint arg0, vtkCommand arg1)
 This is a global flag that controls whether any debug, warning or error messages are displayed.
void RemoveObservers (string arg0, vtkCommand arg1)
 This is a global flag that controls whether any debug, warning or error messages are displayed.
void RemoveObservers (uint arg0)
 This is a global flag that controls whether any debug, warning or error messages are displayed.
void RemoveObservers (string arg0)
 This is a global flag that controls whether any debug, warning or error messages are displayed.
void SetDebug (byte debugFlag)
 Set the value of the debug flag. A non-zero value turns debugging on.
override string ToString ()
 Returns the result of calling vtkObject::Print as a C# string.
delegate void vtkObjectEventHandler (vtkObject sender, vtkObjectEventArgs e)
 Generic signature for all vtkObject events.
void RemoveAllHandlersForAllEvents ()
 Call RemoveAllHandlers on each non-null vtkObjectEventRelay. TODO: This method needs to get called by the generated Dispose. Make that happen...
- Public Member Functions inherited from Kitware.VTK.vtkObjectBase
 vtkObjectBase (IntPtr rawCppThis, bool callDisposalMethod, bool strong)
 Automatically generated constructor - called from generated code. DO NOT call directly.
 vtkObjectBase ()
 Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
virtual void Register (vtkObjectBase o)
 Increase the reference count (mark as used by another object).
virtual void FastDelete ()
 Delete a reference to this object. This version will not invoke garbage collection and can potentially leak the object if it is part of a reference loop. Use this method only when it is known that the object has another reference and would not be collected if a full garbage collection check were done.
string GetClassName ()
 Return the class name as a string. This method is defined in all subclasses of vtkObjectBase with the vtkTypeMacro found in vtkSetGet.h.
int GetReferenceCount ()
 Return the current reference count of this object.
void SetReferenceCount (int arg0)
 Sets the reference count. (This is very dangerous, use with care.)

Static Public Member Functions

static new vtkSimpleCellTessellator New ()
 *Undocumented Block
static new int IsTypeOf (string type)
 *Undocumented Block
static new vtkSimpleCellTessellator SafeDownCast (vtkObjectBase o)
 *Undocumented Block

Public Attributes

new const string MRFullTypeName = "Kitware.VTK.vtkSimpleCellTessellator"
 Automatically generated type registration mechanics.
- Public Attributes inherited from Kitware.VTK.vtkGenericCellTessellator
- Public Attributes inherited from Kitware.VTK.vtkObject
- Public Attributes inherited from Kitware.VTK.vtkObjectBase
- Public Attributes inherited from Kitware.VTK.WrappedObject
const string vtkChartsEL_dll = "libKitware.VTK.vtkCharts.Unmanaged.so"
 Export layer functions for 'vtkCharts' are exported from the DLL named by the value of this variable.
const string vtkCommonEL_dll = "libKitware.VTK.vtkCommon.Unmanaged.so"
 Export layer functions for 'vtkCommon' are exported from the DLL named by the value of this variable.
const string vtkFilteringEL_dll = "libKitware.VTK.vtkFiltering.Unmanaged.so"
 Export layer functions for 'vtkFiltering' are exported from the DLL named by the value of this variable.
const string vtkGenericFilteringEL_dll = "libKitware.VTK.vtkGenericFiltering.Unmanaged.so"
 Export layer functions for 'vtkGenericFiltering' are exported from the DLL named by the value of this variable.
const string vtkGeovisEL_dll = "libKitware.VTK.vtkGeovis.Unmanaged.so"
 Export layer functions for 'vtkGeovis' are exported from the DLL named by the value of this variable.
const string vtkGraphicsEL_dll = "libKitware.VTK.vtkGraphics.Unmanaged.so"
 Export layer functions for 'vtkGraphics' are exported from the DLL named by the value of this variable.
const string vtkHybridEL_dll = "libKitware.VTK.vtkHybrid.Unmanaged.so"
 Export layer functions for 'vtkHybrid' are exported from the DLL named by the value of this variable.
const string vtkIOEL_dll = "libKitware.VTK.vtkIO.Unmanaged.so"
 Export layer functions for 'vtkIO' are exported from the DLL named by the value of this variable.
const string vtkImagingEL_dll = "libKitware.VTK.vtkImaging.Unmanaged.so"
 Export layer functions for 'vtkImaging' are exported from the DLL named by the value of this variable.
const string vtkInfovisEL_dll = "libKitware.VTK.vtkInfovis.Unmanaged.so"
 Export layer functions for 'vtkInfovis' are exported from the DLL named by the value of this variable.
const string vtkParallelEL_dll = "libKitware.VTK.vtkParallel.Unmanaged.so"
 Export layer functions for 'vtkParallel' are exported from the DLL named by the value of this variable.
const string vtkRenderingEL_dll = "libKitware.VTK.vtkRendering.Unmanaged.so"
 Export layer functions for 'vtkRendering' are exported from the DLL named by the value of this variable.
const string vtkViewsEL_dll = "libKitware.VTK.vtkViews.Unmanaged.so"
 Export layer functions for 'vtkViews' are exported from the DLL named by the value of this variable.
const string vtkVolumeRenderingEL_dll = "libKitware.VTK.vtkVolumeRendering.Unmanaged.so"
 Export layer functions for 'vtkVolumeRendering' are exported from the DLL named by the value of this variable.
const string vtkWidgetsEL_dll = "libKitware.VTK.vtkWidgets.Unmanaged.so"
 Export layer functions for 'vtkWidgets' are exported from the DLL named by the value of this variable.

Static Public Attributes

static new readonly string MRClassNameKey = "24vtkSimpleCellTessellator"
 Automatically generated type registration mechanics.
- Static Public Attributes inherited from Kitware.VTK.vtkGenericCellTessellator
- Static Public Attributes inherited from Kitware.VTK.vtkObject
- Static Public Attributes inherited from Kitware.VTK.vtkObjectBase

Protected Member Functions

override void Dispose (bool disposing)
 Automatically generated protected Dispose method - called from public Dispose or the C# destructor. DO NOT call directly.

Static Private Member Functions

static vtkSimpleCellTessellator ()
 Automatically generated type registration mechanics.

Detailed Description

vtkSimpleCellTessellator - helper class to perform cell tessellation

Description vtkSimpleCellTessellator is a helper class to perform adaptive tessellation of particular cell topologies. The major purpose for this class is to transform higher-order cell types (e.g., higher-order finite elements) into linear cells that can then be easily visualized by VTK. This class works in conjunction with the vtkGenericDataSet and vtkGenericAdaptorCell classes.

This algorithm is based on edge subdivision. An error metric along each edge is evaluated, and if the error is greater than some tolerance, the edge is subdivided (as well as all connected 2D and 3D cells). The process repeats until the error metric is satisfied. Since the algorithm is based on edge subdivision it inherently avoid T-junctions.

A significant issue addressed by this algorithm is to insure face compatibility across neigboring cells. That is, diagonals due to face triangulation must match to insure that the mesh is compatible. The algorithm employs a precomputed table to accelerate the tessellation process. The table was generated with the help of vtkOrderedTriangulator the basic idea is that the choice of diagonal is made only by considering the relative value of the point ids.

vtkGenericCellTessellator vtkGenericSubdivisionErrorMetric vtkAttributesErrorMetric vtkGeometricErrorMetric vtkViewDependentErrorMetric


Constructor & Destructor Documentation

static Kitware.VTK.vtkSimpleCellTessellator.vtkSimpleCellTessellator ( )
staticprivate

Automatically generated type registration mechanics.

Kitware.VTK.vtkSimpleCellTessellator.vtkSimpleCellTessellator ( IntPtr  rawCppThis,
bool  callDisposalMethod,
bool  strong 
)

Automatically generated constructor - called from generated code. DO NOT call directly.

Kitware.VTK.vtkSimpleCellTessellator.vtkSimpleCellTessellator ( )

*Undocumented Block


Member Function Documentation

override void Kitware.VTK.vtkSimpleCellTessellator.Dispose ( bool  disposing)
protected

Automatically generated protected Dispose method - called from public Dispose or the C# destructor. DO NOT call directly.

Reimplemented from Kitware.VTK.vtkGenericCellTessellator.

int Kitware.VTK.vtkSimpleCellTessellator.GetFixedSubdivisions ( )

Return the number of fixed subdivisions. It is used to prevent from infinite loop in degenerated cases. For order 3 or higher, if the inflection point is exactly on the mid-point, error metric will not detect that a subdivision is required. 0 means no fixed subdivision: there will be only adaptive subdivisions.

The algorithm first performs GetFixedSubdivisions' non adaptive subdivisions followed by at mostGetMaxAdaptiveSubdivisions' adaptive subdivisions. Hence, there are at most `GetMaxSubdivisionLevel' subdivisions.

Postcondition:
positive_result: result>=0 && result<=GetMaxSubdivisionLevel()
virtual vtkGenericAdaptorCell Kitware.VTK.vtkSimpleCellTessellator.GetGenericCell ( )
virtual

Get the higher order cell in order to access the evaluation function.

Here is the call graph for this function:

int Kitware.VTK.vtkSimpleCellTessellator.GetMaxAdaptiveSubdivisions ( )

Return the maximum number of adaptive subdivisions.

Postcondition:
valid_result: result==GetMaxSubdivisionLevel()-GetFixedSubdivisions()
int Kitware.VTK.vtkSimpleCellTessellator.GetMaxSubdivisionLevel ( )

Return the maximum level of subdivision. It is used to prevent from infinite loop in degenerated cases. For order 3 or higher, if the inflection point is exactly on the mid-point, error metric will not detect that a subdivision is required. 0 means no subdivision, neither fixed nor adaptive.

Postcondition:
positive_result: result>=GetFixedSubdivisions()
override void Kitware.VTK.vtkSimpleCellTessellator.Initialize ( vtkGenericDataSet  ds)
virtual

Initialize the tessellator with a data set `ds'.

Reimplemented from Kitware.VTK.vtkGenericCellTessellator.

override int Kitware.VTK.vtkSimpleCellTessellator.IsA ( string  type)
virtual

*Undocumented Block

Reimplemented from Kitware.VTK.vtkGenericCellTessellator.

static new int Kitware.VTK.vtkSimpleCellTessellator.IsTypeOf ( string  type)
static

*Undocumented Block

Reimplemented from Kitware.VTK.vtkGenericCellTessellator.

static new vtkSimpleCellTessellator Kitware.VTK.vtkSimpleCellTessellator.New ( )
static

*Undocumented Block

Reimplemented from Kitware.VTK.vtkObject.

new vtkSimpleCellTessellator Kitware.VTK.vtkSimpleCellTessellator.NewInstance ( )

*Undocumented Block

Reimplemented from Kitware.VTK.vtkGenericCellTessellator.

void Kitware.VTK.vtkSimpleCellTessellator.Reset ( )

Reset the output for repeated use of this class.

static new vtkSimpleCellTessellator Kitware.VTK.vtkSimpleCellTessellator.SafeDownCast ( vtkObjectBase  o)
static

*Undocumented Block

Reimplemented from Kitware.VTK.vtkGenericCellTessellator.

Here is the call graph for this function:

void Kitware.VTK.vtkSimpleCellTessellator.SetFixedSubdivisions ( int  level)

Set the number of fixed subdivisions. See GetFixedSubdivisions() for more explanations.

Precondition:
positive_level: level>=0 && level<=GetMaxSubdivisionLevel()
Postcondition:
is_set: GetFixedSubdivisions()==level
void Kitware.VTK.vtkSimpleCellTessellator.SetMaxSubdivisionLevel ( int  level)

Set the maximum level of subdivision. See GetMaxSubdivisionLevel() for more explanations.

Precondition:
positive_level: level>=GetFixedSubdivisions()
Postcondition:
is_set: level==GetMaxSubdivisionLevel()
void Kitware.VTK.vtkSimpleCellTessellator.SetSubdivisionLevels ( int  arg0,
int  maxLevel 
)

Set both the number of fixed subdivisions and the maximum level of subdivisions. See GetFixedSubdivisions(), GetMaxSubdivisionLevel() and GetMaxAdaptiveSubdivisions() for more explanations.

Precondition:
positive_fixed: fixed>=0
valid_range: fixed<=maxLevel
Postcondition:
fixed_is_set: fixed==GetFixedSubdivisions()
maxLevel_is_set: maxLevel==GetMaxSubdivisionLevel()
override void Kitware.VTK.vtkSimpleCellTessellator.Tessellate ( vtkGenericAdaptorCell  cell,
vtkGenericAttributeCollection  att,
vtkDoubleArray  points,
vtkCellArray  cellArray,
vtkPointData  internalPd 
)
virtual

Tessellate a 3D cell'. The result is a set of smaller linear tetrahedra incellArray' with points' and point datainternalPd'.

Precondition:
cell_exists: cell!=0
valid_dimension: cell->GetDimension()==3
att_exists: att!=0
points_exists: points!=0
cellArray_exists: cellArray!=0
internalPd_exists: internalPd!=0

Reimplemented from Kitware.VTK.vtkGenericCellTessellator.

override void Kitware.VTK.vtkSimpleCellTessellator.TessellateFace ( vtkGenericAdaptorCell  cell,
vtkGenericAttributeCollection  att,
int  index,
vtkDoubleArray  points,
vtkCellArray  cellArray,
vtkPointData  internalPd 
)
virtual

Tessellate a face of a 3D `cell'. The face is specified by the index value. The result is a set of smaller linear triangles in cellArray' with points' and point data `internalPd'.

Precondition:
cell_exists: cell!=0
valid_dimension: cell->GetDimension()==3
valid_index_range: (index>=0) && (index<cell->GetNumberOfBoundaries(2))
att_exists: att!=0
points_exists: points!=0
cellArray_exists: cellArray!=0
internalPd_exists: internalPd!=0

Reimplemented from Kitware.VTK.vtkGenericCellTessellator.

override void Kitware.VTK.vtkSimpleCellTessellator.Triangulate ( vtkGenericAdaptorCell  cell,
vtkGenericAttributeCollection  att,
vtkDoubleArray  points,
vtkCellArray  cellArray,
vtkPointData  internalPd 
)
virtual

Triangulate a 2D cell'. The result is a set of smaller linear triangles incellArray' with points' and point datainternalPd'.

Precondition:
cell_exists: cell!=0
valid_dimension: cell->GetDimension()==2
att_exists: att!=0
points_exists: points!=0
cellArray_exists: cellArray!=0
internalPd_exists: internalPd!=0

Reimplemented from Kitware.VTK.vtkGenericCellTessellator.


Member Data Documentation

new readonly string Kitware.VTK.vtkSimpleCellTessellator.MRClassNameKey = "24vtkSimpleCellTessellator"
static

Automatically generated type registration mechanics.

Reimplemented from Kitware.VTK.vtkGenericCellTessellator.

new const string Kitware.VTK.vtkSimpleCellTessellator.MRFullTypeName = "Kitware.VTK.vtkSimpleCellTessellator"

Automatically generated type registration mechanics.

Reimplemented from Kitware.VTK.vtkGenericCellTessellator.


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