VTK  9.5.2
vtkTessellatedBoxSource.h File Reference
#include "vtkFiltersSourcesModule.h"
#include "vtkPolyDataAlgorithm.h"
Include dependency graph for vtkTessellatedBoxSource.h:

Go to the source code of this file.

Functions

 vtkTessellatedBoxSource ()
 ~vtkTessellatedBoxSource () override
int RequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
 Called by the superclass.
void DuplicateSharedPointsMethod (double *bounds, vtkPoints *points, vtkCellArray *polys)
void MinimalPointsMethod (double *bounds, vtkPoints *points, vtkCellArray *polys)
vtkIdType LocalFacePointCoordinatesToPointId (int f, int i, int j)
 Compute the pointId of point (i,j) of face f.
void BuildFace (vtkPoints *points, vtkCellArray *polys, vtkIdType firstPointId, double facePoints[3][3], int changed)
 Build one of the face of the box with some level of tessellation.
virtual void SetBounds (double, double, double, double, double, double)
virtual void SetBounds (double[6])
virtual double * GetBounds ()
 Bounds of the box in world coordinates.
virtual void GetBounds (double &, double &, double &, double &, double &, double &)
 Bounds of the box in world coordinates.
virtual void GetBounds (double[6])
 Bounds of the box in world coordinates.
virtual void SetLevel (int)
 Set the level of subdivision of the faces.
virtual int GetLevel ()
 Level of subdivision of the faces.
virtual void SetDuplicateSharedPoints (vtkTypeBool)
 Flag to tell the source to duplicate points shared between faces (vertices of the box and internal edge points).
virtual vtkTypeBool GetDuplicateSharedPoints ()
 Flag to tell the source to duplicate points shared between faces (vertices of the box and internal edge points).
virtual void DuplicateSharedPointsOn ()
 Flag to tell the source to duplicate points shared between faces (vertices of the box and internal edge points).
virtual void DuplicateSharedPointsOff ()
 Flag to tell the source to duplicate points shared between faces (vertices of the box and internal edge points).
virtual void SetQuads (vtkTypeBool)
 Flag to tell the source to generate either a quad or two triangle for a set of four points.
virtual vtkTypeBool GetQuads ()
 Flag to tell the source to generate either a quad or two triangle for a set of four points.
virtual void QuadsOn ()
 Flag to tell the source to generate either a quad or two triangle for a set of four points.
virtual void QuadsOff ()
 Flag to tell the source to generate either a quad or two triangle for a set of four points.
virtual void SetOutputPointsPrecision (int)
 Set/get the desired precision for the output points.
virtual int GetOutputPointsPrecision ()
 Set/get the desired precision for the output points.

Variables

double Bounds [6]
int Level
vtkTypeBool DuplicateSharedPoints
vtkTypeBool Quads
int OutputPointsPrecision

Function Documentation

◆ SetBounds() [1/2]

virtual void SetBounds ( double ,
double ,
double ,
double ,
double ,
double  )
virtual

◆ SetBounds() [2/2]

virtual void SetBounds ( double [6])
virtual

◆ GetBounds() [1/3]

virtual double * GetBounds ( )
virtual

Bounds of the box in world coordinates.

This a 6-uple of xmin,xmax,ymin, ymax,zmin and zmax. Initial value is (-0.5,0.5,-0.5,0.5,-0.5,0.5), bounds of a cube of length 1 centered at (0,0,0). Bounds are defined such that xmin<=xmax, ymin<=ymax and zmin<zmax.

Postcondition
xmin<=xmax && ymin<=ymax && zmin<zmax

◆ GetBounds() [2/3]

virtual void GetBounds ( double & ,
double & ,
double & ,
double & ,
double & ,
double &  )
virtual

Bounds of the box in world coordinates.

This a 6-uple of xmin,xmax,ymin, ymax,zmin and zmax. Initial value is (-0.5,0.5,-0.5,0.5,-0.5,0.5), bounds of a cube of length 1 centered at (0,0,0). Bounds are defined such that xmin<=xmax, ymin<=ymax and zmin<zmax.

Postcondition
xmin<=xmax && ymin<=ymax && zmin<zmax

◆ GetBounds() [3/3]

virtual void GetBounds ( double [6])
virtual

Bounds of the box in world coordinates.

This a 6-uple of xmin,xmax,ymin, ymax,zmin and zmax. Initial value is (-0.5,0.5,-0.5,0.5,-0.5,0.5), bounds of a cube of length 1 centered at (0,0,0). Bounds are defined such that xmin<=xmax, ymin<=ymax and zmin<zmax.

Postcondition
xmin<=xmax && ymin<=ymax && zmin<zmax

◆ SetLevel()

virtual void SetLevel ( int )
virtual

Set the level of subdivision of the faces.

Precondition
positive_level: level>=0

◆ GetLevel()

virtual int GetLevel ( )
virtual

Level of subdivision of the faces.

Initial value is 0.

Postcondition
positive_level: level>=0

◆ SetDuplicateSharedPoints()

virtual void SetDuplicateSharedPoints ( vtkTypeBool )
virtual

Flag to tell the source to duplicate points shared between faces (vertices of the box and internal edge points).

Initial value is false. Implementation note: duplicating points is an easier method to implement than a minimal number of points.

◆ GetDuplicateSharedPoints()

virtual vtkTypeBool GetDuplicateSharedPoints ( )
virtual

Flag to tell the source to duplicate points shared between faces (vertices of the box and internal edge points).

Initial value is false. Implementation note: duplicating points is an easier method to implement than a minimal number of points.

◆ DuplicateSharedPointsOn()

virtual void DuplicateSharedPointsOn ( )
virtual

Flag to tell the source to duplicate points shared between faces (vertices of the box and internal edge points).

Initial value is false. Implementation note: duplicating points is an easier method to implement than a minimal number of points.

◆ DuplicateSharedPointsOff()

virtual void DuplicateSharedPointsOff ( )
virtual

Flag to tell the source to duplicate points shared between faces (vertices of the box and internal edge points).

Initial value is false. Implementation note: duplicating points is an easier method to implement than a minimal number of points.

◆ SetQuads()

virtual void SetQuads ( vtkTypeBool )
virtual

Flag to tell the source to generate either a quad or two triangle for a set of four points.

Initial value is false (generate triangles).

◆ GetQuads()

virtual vtkTypeBool GetQuads ( )
virtual

Flag to tell the source to generate either a quad or two triangle for a set of four points.

Initial value is false (generate triangles).

◆ QuadsOn()

virtual void QuadsOn ( )
virtual

Flag to tell the source to generate either a quad or two triangle for a set of four points.

Initial value is false (generate triangles).

◆ QuadsOff()

virtual void QuadsOff ( )
virtual

Flag to tell the source to generate either a quad or two triangle for a set of four points.

Initial value is false (generate triangles).

◆ SetOutputPointsPrecision()

virtual void SetOutputPointsPrecision ( int )
virtual

Set/get the desired precision for the output points.

vtkAlgorithm::SINGLE_PRECISION - Output single-precision floating point. vtkAlgorithm::DOUBLE_PRECISION - Output double-precision floating point.

◆ GetOutputPointsPrecision()

virtual int GetOutputPointsPrecision ( )
virtual

Set/get the desired precision for the output points.

vtkAlgorithm::SINGLE_PRECISION - Output single-precision floating point. vtkAlgorithm::DOUBLE_PRECISION - Output double-precision floating point.

◆ vtkTessellatedBoxSource()

vtkTessellatedBoxSource ( )
protected

◆ ~vtkTessellatedBoxSource()

~vtkTessellatedBoxSource ( )
overrideprotected

◆ RequestData()

int RequestData ( vtkInformation * request,
vtkInformationVector ** inputVector,
vtkInformationVector * outputVector )
overrideprotected

Called by the superclass.

Actual creation of the points and cells happens here.

◆ DuplicateSharedPointsMethod()

void DuplicateSharedPointsMethod ( double * bounds,
vtkPoints * points,
vtkCellArray * polys )
protected

◆ MinimalPointsMethod()

void MinimalPointsMethod ( double * bounds,
vtkPoints * points,
vtkCellArray * polys )
protected

◆ LocalFacePointCoordinatesToPointId()

vtkIdType LocalFacePointCoordinatesToPointId ( int f,
int i,
int j )
protected

Compute the pointId of point (i,j) of face f.

Used by MinimalPointsMethod().

Precondition
valid_face: f>=0 && f<6
valid_i: i>=0 && i<=(this->Level+1)
valid_j: j>=0 && j<=(this->Level+1)

◆ BuildFace()

void BuildFace ( vtkPoints * points,
vtkCellArray * polys,
vtkIdType firstPointId,
double facePoints[3][3],
int changed )
protected

Build one of the face of the box with some level of tessellation.

facePoints[0] is the lower-left point facePoints[1] is the point along the first axis facePoints[2] is the point along the second axis

Precondition
positive_id: firstPointId>=0
points_exists: points!=0
polys_exists: polys!=0

Variable Documentation

◆ Bounds

double Bounds[6]
protected

Definition at line 143 of file vtkTessellatedBoxSource.h.

◆ Level

int Level
protected

Definition at line 144 of file vtkTessellatedBoxSource.h.

◆ DuplicateSharedPoints

vtkTypeBool DuplicateSharedPoints
protected

Definition at line 145 of file vtkTessellatedBoxSource.h.

◆ Quads

vtkTypeBool Quads
protected

Definition at line 146 of file vtkTessellatedBoxSource.h.

◆ OutputPointsPrecision

int OutputPointsPrecision
protected

Definition at line 147 of file vtkTessellatedBoxSource.h.