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 | Friends | List of all members
vtkBridgeDataSet Class Reference

Implementation of vtkGenericDataSet. More...

#include <vtkBridgeDataSet.h>

Inherits vtkGenericDataSet.

Public Types

typedef vtkGenericDataSet Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 
vtkBridgeDataSetNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
vtkDataSet * GetDataSet ()
 
void SetDataSet (vtkDataSet *ds)
 
virtual vtkIdType GetNumberOfPoints ()
 
virtual vtkIdType GetNumberOfCells (int dim=-1)
 
virtual int GetCellDimension ()
 
void GetCellTypes (vtkCellTypes *types)
 
vtkGenericCellIterator * NewCellIterator (int dim=-1)
 
vtkGenericPointIterator * NewPointIterator ()
 
vtkIdType GetEstimatedSize ()
 
unsigned long int GetMTime ()
 
void ComputeBounds ()
 
vtkGenericCellIterator * NewBoundaryIterator (int dim=-1, int exteriorOnly=0)
 
int FindCell (double x[3], vtkGenericCellIterator *&cell, double tol2, int &subId, double pcoords[3])
 
void FindPoint (double x[3], vtkGenericPointIterator *p)
 

Static Public Member Functions

static vtkBridgeDataSetNew ()
 
static int IsTypeOf (const char *type)
 
static vtkBridgeDataSetSafeDownCast (vtkObjectBase *o)
 

Protected Member Functions

virtual vtkObjectBase * NewInstanceInternal () const
 
 vtkBridgeDataSet ()
 
virtual ~vtkBridgeDataSet ()
 
void ComputeNumberOfCellsAndTypes ()
 

Protected Attributes

vtkDataSet * Implementation
 
vtkIdType NumberOf0DCells
 
vtkIdType NumberOf1DCells
 
vtkIdType NumberOf2DCells
 
vtkIdType NumberOf3DCells
 
vtkCellTypes * Types
 
vtkTimeStamp ComputeNumberOfCellsTime
 

Friends

class vtkBridgeCell
 
class vtkBridgeCellIterator
 
class vtkBridgeCellIteratorOnDataSet
 
class vtkBridgeCellIteratorOne
 
class vtkBridgePointIterator
 
class vtkBridgePointIteratorOnCell
 
class vtkBridgePointIteratorOnDataSet
 
class vtkBridgePointIteratorOne
 

Detailed Description

Implementation of vtkGenericDataSet.

It is just an example that show how to implement the Generic. It is also used for testing and evaluating the Generic.

Tests:
vtkBridgeDataSet (Tests)

Definition at line 33 of file vtkBridgeDataSet.h.

Member Typedef Documentation

typedef vtkGenericDataSet vtkBridgeDataSet::Superclass

Definition at line 37 of file vtkBridgeDataSet.h.

Constructor & Destructor Documentation

vtkBridgeDataSet::vtkBridgeDataSet ( )
protected
virtual vtkBridgeDataSet::~vtkBridgeDataSet ( )
protectedvirtual

Member Function Documentation

static vtkBridgeDataSet* vtkBridgeDataSet::New ( )
static
static int vtkBridgeDataSet::IsTypeOf ( const char *  type)
static
virtual int vtkBridgeDataSet::IsA ( const char *  type)
virtual
static vtkBridgeDataSet* vtkBridgeDataSet::SafeDownCast ( vtkObjectBase *  o)
static
virtual vtkObjectBase* vtkBridgeDataSet::NewInstanceInternal ( ) const
protectedvirtual
vtkBridgeDataSet* vtkBridgeDataSet::NewInstance ( ) const
void vtkBridgeDataSet::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
vtkDataSet* vtkBridgeDataSet::GetDataSet ( )

Return the dataset that will be manipulated through the adaptor interface.

void vtkBridgeDataSet::SetDataSet ( vtkDataSet *  ds)

Set the dataset that will be manipulated through the adaptor interface.

Precondition
ds_exists: ds!=0
virtual vtkIdType vtkBridgeDataSet::GetNumberOfPoints ( )
virtual

Number of points composing the dataset. See NewPointIterator for more details.

Postcondition
positive_result: result>=0
virtual vtkIdType vtkBridgeDataSet::GetNumberOfCells ( int  dim = -1)
virtual

Number of cells that explicitly define the dataset. See NewCellIterator for more details.

Precondition
valid_dim_range: (dim>=-1) && (dim<=3)
Postcondition
positive_result: result>=0
virtual int vtkBridgeDataSet::GetCellDimension ( )
virtual

Return -1 if the dataset is explicitly defined by cells of several dimensions or if there is no cell. If the dataset is explicitly defined by cells of a unique dimension, return this dimension.

Postcondition
valid_range: (result>=-1) && (result<=3)
void vtkBridgeDataSet::GetCellTypes ( vtkCellTypes *  types)

Get a list of types of cells in a dataset. The list consists of an array of types (not necessarily in any order), with a single entry per type. For example a dataset 5 triangles, 3 lines, and 100 hexahedra would result a list of three entries, corresponding to the types VTK_TRIANGLE, VTK_LINE, and VTK_HEXAHEDRON. THIS METHOD IS THREAD SAFE IF FIRST CALLED FROM A SINGLE THREAD AND THE DATASET IS NOT MODIFIED

Precondition
types_exist: types!=0
vtkGenericCellIterator* vtkBridgeDataSet::NewCellIterator ( int  dim = -1)

Cells of dimension `dim' (or all dimensions if -1) that explicitly define the dataset. For instance, it will return only tetrahedra if the mesh is defined by tetrahedra. If the mesh is composed of two parts, one with tetrahedra and another part with triangles, it will return both, but will not return edges and vertices.

Precondition
valid_dim_range: (dim>=-1) && (dim<=3)
Postcondition
result_exists: result!=0
vtkGenericCellIterator* vtkBridgeDataSet::NewBoundaryIterator ( int  dim = -1,
int  exteriorOnly = 0 
)

Boundaries of dimension `dim' (or all dimensions if -1) of the dataset. If `exteriorOnly' is true, only the exterior boundaries of the dataset will be returned, otherwise it will return exterior and interior boundaries.

Precondition
valid_dim_range: (dim>=-1) && (dim<=2)
Postcondition
result_exists: result!=0
vtkGenericPointIterator* vtkBridgeDataSet::NewPointIterator ( )

Points composing the dataset; they can be on a vertex or isolated.

Postcondition
result_exists: result!=0
vtkIdType vtkBridgeDataSet::GetEstimatedSize ( )

Estimated size needed after tessellation (or special operation)

int vtkBridgeDataSet::FindCell ( double  x[3],
vtkGenericCellIterator *&  cell,
double  tol2,
int &  subId,
double  pcoords[3] 
)

Locate closest cell to position `x' (global coordinates) with respect to a tolerance squared `tol2' and an initial guess `cell' (if valid). The result consists in the `cell', the `subId' of the sub-cell (0 if primary cell), the parametric coordinates `pcoord' of the position. It returns whether the position is inside the cell or not. Tolerance is used to control how close the point is to be considered "in" the cell. THIS METHOD IS NOT THREAD SAFE.

Precondition
not_empty: GetNumberOfCells()>0
cell_exists: cell!=0
positive_tolerance: tol2>0
void vtkBridgeDataSet::FindPoint ( double  x[3],
vtkGenericPointIterator *  p 
)

Locate closest point `p' to position `x' (global coordinates)

Precondition
not_empty: GetNumberOfPoints()>0
p_exists: p!=0
unsigned long int vtkBridgeDataSet::GetMTime ( )

Datasets are composite objects and need to check each part for MTime.

void vtkBridgeDataSet::ComputeBounds ( )

Compute the geometry bounding box.

void vtkBridgeDataSet::ComputeNumberOfCellsAndTypes ( )
protected

Compute the number of cells for each dimension and the list of types of cells.

Friends And Related Function Documentation

friend class vtkBridgeCell
friend

Definition at line 134 of file vtkBridgeDataSet.h.

friend class vtkBridgeCellIterator
friend

Definition at line 135 of file vtkBridgeDataSet.h.

friend class vtkBridgeCellIteratorOnDataSet
friend

Definition at line 136 of file vtkBridgeDataSet.h.

friend class vtkBridgeCellIteratorOne
friend

Definition at line 137 of file vtkBridgeDataSet.h.

friend class vtkBridgePointIterator
friend

Definition at line 138 of file vtkBridgeDataSet.h.

friend class vtkBridgePointIteratorOnCell
friend

Definition at line 139 of file vtkBridgeDataSet.h.

friend class vtkBridgePointIteratorOnDataSet
friend

Definition at line 140 of file vtkBridgeDataSet.h.

friend class vtkBridgePointIteratorOne
friend

Definition at line 141 of file vtkBridgeDataSet.h.

Member Data Documentation

vtkDataSet* vtkBridgeDataSet::Implementation
protected

Definition at line 148 of file vtkBridgeDataSet.h.

vtkIdType vtkBridgeDataSet::NumberOf0DCells
protected

Definition at line 149 of file vtkBridgeDataSet.h.

vtkIdType vtkBridgeDataSet::NumberOf1DCells
protected

Definition at line 150 of file vtkBridgeDataSet.h.

vtkIdType vtkBridgeDataSet::NumberOf2DCells
protected

Definition at line 151 of file vtkBridgeDataSet.h.

vtkIdType vtkBridgeDataSet::NumberOf3DCells
protected

Definition at line 152 of file vtkBridgeDataSet.h.

vtkCellTypes* vtkBridgeDataSet::Types
protected

Definition at line 153 of file vtkBridgeDataSet.h.

vtkTimeStamp vtkBridgeDataSet::ComputeNumberOfCellsTime
protected

Definition at line 154 of file vtkBridgeDataSet.h.


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