dox/Common/vtkPixel.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00030
#ifndef __vtkPixel_h
00031
#define __vtkPixel_h
00032
00033
#include "vtkCell.h"
00034
00035
class vtkLine;
00036
00037 class VTK_COMMON_EXPORT vtkPixel :
public vtkCell
00038 {
00039
public:
00040
static vtkPixel *
New();
00041 vtkTypeRevisionMacro(vtkPixel,
vtkCell);
00042
00044
00045 int GetCellType() {
return VTK_PIXEL;};
00046 int GetCellDimension() {
return 2;};
00047 int GetNumberOfEdges() {
return 4;};
00048 int GetNumberOfFaces() {
return 0;};
00049
vtkCell *
GetEdge(
int edgeId);
00050 vtkCell *
GetFace(
int) {
return 0;};
00051
int CellBoundary(
int subId,
double pcoords[3],
vtkIdList *pts);
00052
void Contour(
double value,
vtkDataArray *cellScalars,
00053
vtkPointLocator *locator,
vtkCellArray *verts,
00054
vtkCellArray *lines,
vtkCellArray *polys,
00055
vtkPointData *inPd,
vtkPointData *outPd,
00056
vtkCellData *inCd,
vtkIdType cellId,
vtkCellData *outCd);
00057
void Clip(
double value,
vtkDataArray *cellScalars,
00058
vtkPointLocator *locator,
vtkCellArray *polys,
00059
vtkPointData *inPd,
vtkPointData *outPd,
00060
vtkCellData *inCd,
vtkIdType cellId,
vtkCellData *outCd,
00061
int insideOut);
00062
int EvaluatePosition(
double x[3],
double* closestPoint,
00063
int& subId,
double pcoords[3],
00064
double& dist2,
double *weights);
00065
void EvaluateLocation(
int& subId,
double pcoords[3],
double x[3],
00066
double *weights);
00067
int IntersectWithLine(
double p1[3],
double p2[3],
double tol,
double& t,
00068
double x[3],
double pcoords[3],
int& subId);
00069
int Triangulate(
int index,
vtkIdList *ptIds,
vtkPoints *pts);
00070
void Derivatives(
int subId,
double pcoords[3],
double *values,
00071
int dim,
double *derivs);
00072
virtual double *
GetParametricCoords();
00074
00076
00077
static void InterpolationFunctions(
double pcoords[3],
double weights[4]);
00078
static void InterpolationDerivs(
double pcoords[3],
double derivs[8]);
00080
00081
00082
protected:
00083 vtkPixel();
00084 ~vtkPixel();
00085
00086 vtkLine *Line;
00087
00088
private:
00089 vtkPixel(
const vtkPixel&);
00090
void operator=(
const vtkPixel&);
00091 };
00092
00093
#endif
00094
00095