VTK
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>

Inheritance diagram for vtkBridgeDataSet:
[legend]
Collaboration diagram for vtkBridgeDataSet:
[legend]

Public Types

typedef vtkGenericDataSet Superclass
- Public Types inherited from vtkGenericDataSet
typedef vtkDataObject Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
vtkDataSetGetDataSet ()
void SetDataSet (vtkDataSet *ds)
virtual vtkIdType GetNumberOfPoints ()
virtual vtkIdType GetNumberOfCells (int dim=-1)
virtual int GetCellDimension ()
void GetCellTypes (vtkCellTypes *types)
vtkGenericCellIteratorNewCellIterator (int dim=-1)
vtkGenericPointIteratorNewPointIterator ()
vtkIdType GetEstimatedSize ()
unsigned long int GetMTime ()
void ComputeBounds ()
vtkGenericCellIteratorNewBoundaryIterator (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)
- Public Member Functions inherited from vtkGenericDataSet
virtual double * GetBounds ()
virtual void GetBounds (double bounds[6])
virtual double * GetCenter ()
virtual void GetCenter (double center[3])
virtual double GetLength ()
virtual unsigned long GetActualMemorySize ()
int GetDataObjectType ()
virtual
vtkGenericAttributeCollection
GetAttributes ()
virtual vtkDataSetAttributesGetAttributes (int type)
virtual void SetTessellator (vtkGenericCellTessellator *tessellator)
virtual vtkGenericCellTessellatorGetTessellator ()
- Public Member Functions inherited from vtkDataObject
virtual vtkAlgorithmOutputGetProducerPort ()
virtual void Initialize ()
void ReleaseData ()
int ShouldIReleaseData ()
virtual void Register (vtkObjectBase *o)
virtual void UnRegister (vtkObjectBase *o)
virtual void Update ()
virtual void UpdateInformation ()
virtual void PropagateUpdateExtent ()
virtual void TriggerAsynchronousUpdate ()
virtual void UpdateData ()
virtual unsigned long GetEstimatedMemorySize ()
unsigned long GetUpdateTime ()
void SetUpdateExtentToWholeExtent ()
unsigned long GetPipelineMTime ()
void CopyInformation (vtkDataObject *data)
virtual void CopyInformationFromPipeline (vtkInformation *request)
void DataHasBeenGenerated ()
virtual void PrepareForNewData ()
virtual int GetExtentType ()
virtual void Crop ()
virtual vtkFieldDataGetAttributesAsFieldData (int type)
virtual int GetAttributeTypeForArray (vtkAbstractArray *arr)
virtual vtkIdType GetNumberOfElements (int type)
virtual vtkSourceGetSource ()
void SetSource (vtkSource *s)
virtual vtkInformationGetInformation ()
virtual void SetInformation (vtkInformation *)
virtual vtkInformationGetPipelineInformation ()
virtual void SetPipelineInformation (vtkInformation *)
virtual int GetDataReleased ()
void SetReleaseDataFlag (int)
int GetReleaseDataFlag ()
virtual void ReleaseDataFlagOn ()
virtual void ReleaseDataFlagOff ()
virtual void SetFieldData (vtkFieldData *)
virtual vtkFieldDataGetFieldData ()
virtual void SetUpdateExtent (int piece, int numPieces, int ghostLevel)
void SetUpdateExtent (int piece, int numPieces)
virtual void SetUpdateExtent (int x0, int x1, int y0, int y1, int z0, int z1)
virtual void SetUpdateExtent (int extent[6])
virtual int * GetUpdateExtent ()
virtual void GetUpdateExtent (int &x0, int &x1, int &y0, int &y1, int &z0, int &z1)
virtual void GetUpdateExtent (int extent[6])
virtual void CopyTypeSpecificInformation (vtkDataObject *data)
void SetUpdatePiece (int piece)
void SetUpdateNumberOfPieces (int num)
virtual int GetUpdatePiece ()
virtual int GetUpdateNumberOfPieces ()
void SetUpdateGhostLevel (int level)
virtual int GetUpdateGhostLevel ()
virtual void SetRequestExactExtent (int flag)
virtual int GetRequestExactExtent ()
virtual void RequestExactExtentOn ()
virtual void RequestExactExtentOff ()
virtual void SetWholeExtent (int x0, int x1, int y0, int y1, int z0, int z1)
virtual void SetWholeExtent (int extent[6])
virtual int * GetWholeExtent ()
virtual void GetWholeExtent (int &x0, int &x1, int &y0, int &y1, int &z0, int &z1)
virtual void GetWholeExtent (int extent[6])
virtual void SetWholeBoundingBox (double x0, double x1, double y0, double y1, double z0, double z1)
virtual void SetWholeBoundingBox (double bb[6])
virtual double * GetWholeBoundingBox ()
virtual void GetWholeBoundingBox (double &x0, double &x1, double &y0, double &y1, double &z0, double &z1)
virtual void GetWholeBoundingBox (double extent[6])
virtual void SetMaximumNumberOfPieces (int)
virtual int GetMaximumNumberOfPieces ()
virtual void CopyInformationToPipeline (vtkInformation *request, vtkInformation *input, vtkInformation *output, int forceCopy)
void CopyInformationToPipeline (vtkInformation *request, vtkInformation *input)
virtual void ShallowCopy (vtkDataObject *src)
virtual void DeepCopy (vtkDataObject *src)
void SetExtentTranslator (vtkExtentTranslator *translator)
vtkExtentTranslatorGetExtentTranslator ()
void GlobalReleaseDataFlagOn ()
void GlobalReleaseDataFlagOff ()
- Public Member Functions inherited from vtkObject
virtual void DebugOn ()
virtual void DebugOff ()
unsigned char GetDebug ()
void SetDebug (unsigned char debugFlag)
virtual void Modified ()
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
vtkCommandGetCommand (unsigned long tag)
void RemoveObserver (vtkCommand *)
void RemoveObservers (unsigned long event, vtkCommand *)
void RemoveObservers (const char *event, vtkCommand *)
int HasObserver (unsigned long event, vtkCommand *)
int HasObserver (const char *event, vtkCommand *)
void RemoveObserver (unsigned long tag)
void RemoveObservers (unsigned long event)
void RemoveObservers (const char *event)
void RemoveAllObservers ()
int HasObserver (unsigned long event)
int HasObserver (const char *event)
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
int InvokeEvent (unsigned long event, void *callData)
int InvokeEvent (const char *event, void *callData)
int InvokeEvent (unsigned long event)
int InvokeEvent (const char *event)
- Public Member Functions inherited from vtkObjectBase
const char * GetClassName () const
virtual void Delete ()
virtual void FastDelete ()
void Print (ostream &os)
void SetReferenceCount (int)
void PrintRevisions (ostream &os)
virtual void PrintHeader (ostream &os, vtkIndent indent)
virtual void PrintTrailer (ostream &os, vtkIndent indent)
int GetReferenceCount ()

Static Public Member Functions

static vtkBridgeDataSetNew ()
static int IsTypeOf (const char *type)
static vtkBridgeDataSetSafeDownCast (vtkObject *o)
- Static Public Member Functions inherited from vtkGenericDataSet
static vtkGenericDataSetGetData (vtkInformation *info)
static vtkGenericDataSetGetData (vtkInformationVector *v, int i=0)
- Static Public Member Functions inherited from vtkDataObject
static const char * GetAssociationTypeAsString (int associationType)
static vtkInformationStringKeyDATA_TYPE_NAME ()
static
vtkInformationDataObjectKey
DATA_OBJECT ()
static vtkInformationIntegerKeyDATA_EXTENT_TYPE ()
static
vtkInformationIntegerPointerKey
DATA_EXTENT ()
static vtkInformationIntegerKeyDATA_PIECE_NUMBER ()
static vtkInformationIntegerKeyDATA_NUMBER_OF_PIECES ()
static vtkInformationIntegerKeyDATA_NUMBER_OF_GHOST_LEVELS ()
static vtkInformationDoubleKeyDATA_RESOLUTION ()
static
vtkInformationDoubleVectorKey
DATA_TIME_STEPS ()
static
vtkInformationInformationVectorKey
POINT_DATA_VECTOR ()
static
vtkInformationInformationVectorKey
CELL_DATA_VECTOR ()
static
vtkInformationInformationVectorKey
VERTEX_DATA_VECTOR ()
static
vtkInformationInformationVectorKey
EDGE_DATA_VECTOR ()
static vtkInformationIntegerKeyFIELD_ARRAY_TYPE ()
static vtkInformationIntegerKeyFIELD_ASSOCIATION ()
static vtkInformationIntegerKeyFIELD_ATTRIBUTE_TYPE ()
static vtkInformationIntegerKeyFIELD_ACTIVE_ATTRIBUTE ()
static vtkInformationIntegerKeyFIELD_NUMBER_OF_COMPONENTS ()
static vtkInformationIntegerKeyFIELD_NUMBER_OF_TUPLES ()
static vtkInformationIntegerKeyFIELD_OPERATION ()
static
vtkInformationDoubleVectorKey
FIELD_RANGE ()
static
vtkInformationDoubleVectorKey
PIECE_FIELD_RANGE ()
static vtkInformationStringKeyFIELD_ARRAY_NAME ()
static
vtkInformationIntegerVectorKey
PIECE_EXTENT ()
static vtkInformationStringKeyFIELD_NAME ()
static
vtkInformationDoubleVectorKey
ORIGIN ()
static
vtkInformationDoubleVectorKey
SPACING ()
static vtkInformationIntegerKeyDATA_GEOMETRY_UNMODIFIED ()
static
vtkInformationDataObjectKey
SIL ()
static vtkInformationGetActiveFieldInformation (vtkInformation *info, int fieldAssociation, int attributeType)
static vtkInformationGetNamedFieldInformation (vtkInformation *info, int fieldAssociation, const char *name)
static void RemoveNamedFieldInformation (vtkInformation *info, int fieldAssociation, const char *name)
static vtkInformationSetActiveAttribute (vtkInformation *info, int fieldAssociation, const char *attributeName, int attributeType)
static void SetActiveAttributeInfo (vtkInformation *info, int fieldAssociation, int attributeType, const char *name, int arrayType, int numComponents, int numTuples)
static void SetPointDataActiveScalarInfo (vtkInformation *info, int arrayType, int numComponents)
static void SetGlobalReleaseDataFlag (int val)
static int GetGlobalReleaseDataFlag ()
- Static Public Member Functions inherited from vtkObject
static void BreakOnError ()
static void SetGlobalWarningDisplay (int val)
static void GlobalWarningDisplayOn ()
static void GlobalWarningDisplayOff ()
static int GetGlobalWarningDisplay ()

Protected Member Functions

 vtkBridgeDataSet ()
virtual ~vtkBridgeDataSet ()
void ComputeNumberOfCellsAndTypes ()
- Protected Member Functions inherited from vtkGenericDataSet
 vtkGenericDataSet ()
virtual ~vtkGenericDataSet ()
- Protected Member Functions inherited from vtkDataObject
 vtkDataObject ()
 ~vtkDataObject ()
vtkExecutiveGetExecutive ()
int GetPortNumber ()
virtual void ReportReferences (vtkGarbageCollector *)
vtkStreamingDemandDrivenPipelineTrySDDP (const char *method)
- Protected Member Functions inherited from vtkObject
 vtkObject ()
virtual ~vtkObject ()
virtual void RegisterInternal (vtkObjectBase *, int check)
virtual void UnRegisterInternal (vtkObjectBase *, int check)
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
void InternalReleaseFocus ()
- Protected Member Functions inherited from vtkObjectBase
 vtkObjectBase ()
virtual ~vtkObjectBase ()
virtual void CollectRevisions (ostream &os)
 vtkObjectBase (const vtkObjectBase &)
void operator= (const vtkObjectBase &)

Protected Attributes

vtkDataSetImplementation
vtkIdType NumberOf0DCells
vtkIdType NumberOf1DCells
vtkIdType NumberOf2DCells
vtkIdType NumberOf3DCells
vtkCellTypesTypes
vtkTimeStamp ComputeNumberOfCellsTime
- Protected Attributes inherited from vtkGenericDataSet
vtkGenericAttributeCollectionAttributes
vtkGenericCellTessellatorTessellator
double Bounds [6]
double Center [3]
vtkTimeStamp ComputeTime
- Protected Attributes inherited from vtkDataObject
vtkFieldDataFieldData
vtkSourceSource
int DataReleased
vtkTimeStamp UpdateTime
vtkInformationInformation
vtkInformationPipelineInformation
- Protected Attributes inherited from vtkObject
unsigned char Debug
vtkTimeStamp MTime
vtkSubjectHelper * SubjectHelper
- Protected Attributes inherited from vtkObjectBase
int ReferenceCount
vtkWeakPointerBase ** WeakPointers

Friends

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

Additional Inherited Members

- Protected Types inherited from vtkDataObject
typedef
vtkStreamingDemandDrivenPipeline 
SDDP
- Static Protected Attributes inherited from vtkDataObject
static const char AssociationNames [NUMBER_OF_ASSOCIATIONS][55]

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

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

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkDataObject.

virtual const char* vtkBridgeDataSet::GetClassName ( )
virtual

Standard VTK type and print macros.

Reimplemented from vtkGenericDataSet.

static int vtkBridgeDataSet::IsTypeOf ( const char *  type)
static

Standard VTK type and print macros.

Reimplemented from vtkGenericDataSet.

virtual int vtkBridgeDataSet::IsA ( const char *  type)
virtual

Standard VTK type and print macros.

Reimplemented from vtkGenericDataSet.

static vtkBridgeDataSet* vtkBridgeDataSet::SafeDownCast ( vtkObject o)
static

Standard VTK type and print macros.

Reimplemented from vtkGenericDataSet.

void vtkBridgeDataSet::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual

Standard VTK type and print macros.

Reimplemented from vtkGenericDataSet.

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

Implements vtkGenericDataSet.

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

Implements vtkGenericDataSet.

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)

Implements vtkGenericDataSet.

void vtkBridgeDataSet::GetCellTypes ( vtkCellTypes types)
virtual

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

Reimplemented from vtkGenericDataSet.

vtkGenericCellIterator* vtkBridgeDataSet::NewCellIterator ( int  dim = -1)
virtual

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

Implements vtkGenericDataSet.

vtkGenericCellIterator* vtkBridgeDataSet::NewBoundaryIterator ( int  dim = -1,
int  exteriorOnly = 0 
)
virtual

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

Implements vtkGenericDataSet.

vtkGenericPointIterator* vtkBridgeDataSet::NewPointIterator ( )
virtual

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

Postcondition
result_exists: result!=0

Implements vtkGenericDataSet.

vtkIdType vtkBridgeDataSet::GetEstimatedSize ( )
virtual

Estimated size needed after tessellation (or special operation)

Implements vtkGenericDataSet.

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

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

Implements vtkGenericDataSet.

void vtkBridgeDataSet::FindPoint ( double  x[3],
vtkGenericPointIterator p 
)
virtual

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

Precondition
not_empty: GetNumberOfPoints()>0
p_exists: p!=0

Implements vtkGenericDataSet.

unsigned long int vtkBridgeDataSet::GetMTime ( )
virtual

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

Reimplemented from vtkGenericDataSet.

void vtkBridgeDataSet::ComputeBounds ( )
virtual

Compute the geometry bounding box.

Implements vtkGenericDataSet.

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: