#include <vtkNonLinearCell.h>
Inheritance diagram for vtkNonLinearCell:
vtkNonLinearCell is an abstract superclass for non-linear cell types. Cells that are a direct subclass of vtkCell or vtkCell3D are linear; cells that are a subclass of vtkNonLinearCell have non-linear interpolation functions. Non-linear cells require special treatment when tessellating or converting to graphics primitives. Note that the linearity of the cell is a function of whether the cell needs tessellation, which does not strictly correlate with interpolation order (e.g., vtkHexahedron has non-linear interpolation functions (a product of three linear functions in r-s-t) even thought vtkHexahedron is considered linear.)
The Error instance variable is used to control the tessellation of the cell. Error is normalized between (0.001,1) and typically measures the chordal deviation of linear (tessellated) primitives from the actual cell boundary. Each cell may have its own interpretation of this error measure.
Definition at line 47 of file vtkNonLinearCell.h.
Public Types | |
typedef vtkCell | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | SetError (double) |
virtual double | GetError () |
virtual int | IsLinear () |
virtual void | Tessellate (vtkIdType cellId, vtkDataSet *input, vtkPolyData *output, vtkPointLocator *locator=NULL) |
virtual void | Tessellate (vtkIdType cellId, vtkDataSet *input, vtkUnstructuredGrid *output, vtkPointLocator *locator=NULL) |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkNonLinearCell * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkNonLinearCell () | |
~vtkNonLinearCell () | |
vtkIdType | InsertPoint (vtkPointLocator *locator, vtkPoints *pts, double *x) |
Protected Attributes | |
double | Error |
|
Reimplemented from vtkCell. Reimplemented in vtkExplicitCell, vtkQuadraticEdge, vtkQuadraticHexahedron, vtkQuadraticPyramid, vtkQuadraticQuad, vtkQuadraticTetra, vtkQuadraticTriangle, and vtkQuadraticWedge. Definition at line 50 of file vtkNonLinearCell.h. |
|
|
|
Definition at line 100 of file vtkNonLinearCell.h. |
|
Reimplemented from vtkCell. Reimplemented in vtkExplicitCell, vtkQuadraticEdge, vtkQuadraticHexahedron, vtkQuadraticPyramid, vtkQuadraticQuad, vtkQuadraticTetra, vtkQuadraticTriangle, and vtkQuadraticWedge. |
|
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 vtkTypeRevisionMacro found in vtkSetGet.h. Reimplemented from vtkCell. Reimplemented in vtkExplicitCell, vtkQuadraticEdge, vtkQuadraticHexahedron, vtkQuadraticPyramid, vtkQuadraticQuad, vtkQuadraticTetra, vtkQuadraticTriangle, and vtkQuadraticWedge. |
|
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 vtkTypeRevisionMacro found in vtkSetGet.h. Reimplemented from vtkCell. Reimplemented in vtkExplicitCell, vtkQuadraticEdge, vtkQuadraticHexahedron, vtkQuadraticPyramid, vtkQuadraticQuad, vtkQuadraticTetra, vtkQuadraticTriangle, and vtkQuadraticWedge. |
|
Reimplemented from vtkCell. Reimplemented in vtkExplicitCell, vtkQuadraticEdge, vtkQuadraticHexahedron, vtkQuadraticPyramid, vtkQuadraticQuad, vtkQuadraticTetra, vtkQuadraticTriangle, and vtkQuadraticWedge. |
|
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 vtkCell. Reimplemented in vtkExplicitCell, vtkQuadraticEdge, vtkQuadraticHexahedron, vtkQuadraticPyramid, vtkQuadraticQuad, vtkQuadraticTetra, vtkQuadraticTriangle, and vtkQuadraticWedge. |
|
Set/Get the normalized error measure used to control the tessellation of the cell. |
|
|
|
Non-linear cells require special treatment (tessellation) when converting to graphics primitives (during mapping). The vtkCell API IsLinear() is modified to indicate this requirement. Reimplemented from vtkCell. Definition at line 63 of file vtkNonLinearCell.h. |
|
This method tessellates the cell returning polydata. (The Error ivar controls the tessellation depth.) The new dataset will contain polydata primitives, possibly new points as well as interpolated point and cell data. The user must provide (the output) polydata which is filled in by the method. If the optional PointLocator is supplied, then any new points that are created are inserted through the vtkPointLocator, rather than directly in the vtkPolyData. (Note: the input dataset and cellId are used if the cell requires access to its owning dataset.) This method is called when the topological dimension of the cell is 2D or less. |
|
This method tessellates the cell returning unstructured grid. (The Error ivar controls the tessellation depth.) The new dataset will contain unstructured grid primitives, possibly new points as well as interpolated point and cell data. The user must provide (the output) unstructured grid which is filled in by the method. If the optional PointLocator is supplied, then any new points that are created are inserted through the vtkPointLocator, rather than directly in the vtkUnstructuredGrid. (Note: the input dataset and cellId are used if the cell requires access to its owning dataset.) This method is called when the topological dimension of the cell is 3D. |
|
Definition at line 105 of file vtkNonLinearCell.h. References vtkPoints::InsertNextPoint(), and vtkPointLocator::InsertUniquePoint(). |
|
Definition at line 102 of file vtkNonLinearCell.h. |