VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
vtkUniformGrid Class Reference

image data with blanking More...

#include <vtkUniformGrid.h>

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

Public Types

typedef vtkImageData Superclass
 
- Public Types inherited from vtkImageData
typedef vtkDataSet Superclass
 
- Public Types inherited from vtkDataSet
enum  FieldDataType { DATA_OBJECT_FIELD =0, POINT_DATA_FIELD =1, CELL_DATA_FIELD =2 }
 
typedef vtkDataObject Superclass
 
- Public Types inherited from vtkDataObject
enum  FieldAssociations {
  FIELD_ASSOCIATION_POINTS, FIELD_ASSOCIATION_CELLS, FIELD_ASSOCIATION_NONE, FIELD_ASSOCIATION_POINTS_THEN_CELLS,
  FIELD_ASSOCIATION_VERTICES, FIELD_ASSOCIATION_EDGES, FIELD_ASSOCIATION_ROWS, NUMBER_OF_ASSOCIATIONS
}
 
enum  AttributeTypes {
  POINT, CELL, FIELD, POINT_THEN_CELL,
  VERTEX, EDGE, ROW, NUMBER_OF_ATTRIBUTE_TYPES
}
 
enum  FieldOperations { FIELD_OPERATION_PRESERVED, FIELD_OPERATION_REINTERPOLATED, FIELD_OPERATION_MODIFIED, FIELD_OPERATION_REMOVED }
 
typedef vtkObject Superclass
 
- Public Types inherited from vtkObject
typedef vtkObjectBase Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 
vtkUniformGridNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual void CopyStructure (vtkDataSet *ds)
 
virtual int GetDataObjectType ()
 
virtual vtkCellGetCell (vtkIdType cellId)
 
virtual void GetCell (vtkIdType cellId, vtkGenericCell *cell)
 
virtual vtkIdType FindCell (double x[3], vtkCell *cell, vtkIdType cellId, double tol2, int &subId, double pcoords[3], double *weights)
 
virtual vtkIdType FindCell (double x[3], vtkCell *cell, vtkGenericCell *gencell, vtkIdType cellId, double tol2, int &subId, double pcoords[3], double *weights)
 
virtual vtkCellFindAndGetCell (double x[3], vtkCell *cell, vtkIdType cellId, double tol2, int &subId, double pcoords[3], double *weights)
 
virtual int GetCellType (vtkIdType cellId)
 
virtual void GetCellPoints (vtkIdType cellId, vtkIdList *ptIds)
 
virtual void GetPointCells (vtkIdType ptId, vtkIdList *cellIds)
 
virtual void Initialize ()
 
virtual int GetMaxCellSize ()
 
int GetGridDescription ()
 
int Initialize (const vtkAMRBox *def, double *origin, double *spacing)
 
int Initialize (const vtkAMRBox *def, double *origin, double *spacing, int nGhosts)
 
int Initialize (const vtkAMRBox *def, double *origin, double *spacing, const int nGhosts[3])
 
int Initialize (const vtkAMRBox *def, double *origin, double *spacing, int nGhostsI, int nGhostsJ, int nGhostsK)
 
virtual void BlankPoint (vtkIdType ptId)
 
virtual void UnBlankPoint (vtkIdType ptId)
 
virtual void BlankPoint (const int i, const int j, const int k)
 
virtual void UnBlankPoint (const int i, const int j, const int k)
 
virtual void BlankCell (vtkIdType ptId)
 
virtual void UnBlankCell (vtkIdType ptId)
 
virtual void BlankCell (const int i, const int j, const int k)
 
virtual void UnBlankCell (const int i, const int j, const int k)
 
virtual bool HasAnyBlankCells ()
 
virtual bool HasAnyBlankPoints ()
 
virtual unsigned char IsPointVisible (vtkIdType ptId)
 
virtual unsigned char IsCellVisible (vtkIdType cellId)
 
virtual vtkImageDataNewImageDataCopy ()
 
- Public Member Functions inherited from vtkImageData
vtkImageDataNewInstance () const
 
virtual vtkIdType GetNumberOfCells ()
 
virtual vtkIdType GetNumberOfPoints ()
 
virtual doubleGetPoint (vtkIdType ptId)
 
virtual void GetPoint (vtkIdType id, double x[3])
 
virtual void GetCellBounds (vtkIdType cellId, double bounds[6])
 
virtual vtkIdType FindPoint (double x, double y, double z)
 
virtual vtkIdType FindPoint (double x[3])
 
virtual void ComputeBounds ()
 
virtual void SetDimensions (int i, int j, int k)
 
virtual void SetDimensions (const int dims[3])
 
virtual intGetDimensions ()
 
virtual void GetDimensions (int dims[3])
 
virtual int ComputeStructuredCoordinates (const double x[3], int ijk[3], double pcoords[3])
 
virtual void GetVoxelGradient (int i, int j, int k, vtkDataArray *s, vtkDataArray *g)
 
virtual void GetPointGradient (int i, int j, int k, vtkDataArray *s, double g[3])
 
virtual int GetDataDimension ()
 
virtual vtkIdType ComputePointId (int ijk[3])
 
virtual vtkIdType ComputeCellId (int ijk[3])
 
virtual void SetAxisUpdateExtent (int axis, int min, int max, const int *updateExtent, int *axisUpdateExtent)
 
virtual void GetAxisUpdateExtent (int axis, int &min, int &max, const int *updateExtent)
 
virtual void SetExtent (int extent[6])
 
virtual void SetExtent (int x1, int x2, int y1, int y2, int z1, int z2)
 
virtual intGetExtent ()
 
virtual void GetExtent (int &, int &, int &, int &, int &, int &)
 
virtual void GetExtent (int[6])
 
virtual double GetScalarTypeMin (vtkInformation *meta_data)
 
virtual double GetScalarTypeMin ()
 
virtual double GetScalarTypeMax (vtkInformation *meta_data)
 
virtual double GetScalarTypeMax ()
 
virtual int GetScalarSize (vtkInformation *meta_data)
 
virtual int GetScalarSize ()
 
virtual vtkIdTypeGetIncrements ()
 
virtual void GetIncrements (vtkIdType &incX, vtkIdType &incY, vtkIdType &incZ)
 
virtual void GetIncrements (vtkIdType inc[3])
 
virtual vtkIdTypeGetIncrements (vtkDataArray *scalars)
 
virtual void GetIncrements (vtkDataArray *scalars, vtkIdType &incX, vtkIdType &incY, vtkIdType &incZ)
 
virtual void GetIncrements (vtkDataArray *scalars, vtkIdType inc[3])
 
virtual void GetContinuousIncrements (int extent[6], vtkIdType &incX, vtkIdType &incY, vtkIdType &incZ)
 
virtual void GetContinuousIncrements (vtkDataArray *scalars, int extent[6], vtkIdType &incX, vtkIdType &incY, vtkIdType &incZ)
 
virtual void * GetScalarPointerForExtent (int extent[6])
 
virtual void * GetScalarPointer (int coordinates[3])
 
virtual void * GetScalarPointer (int x, int y, int z)
 
virtual void * GetScalarPointer ()
 
virtual float GetScalarComponentAsFloat (int x, int y, int z, int component)
 
virtual void SetScalarComponentFromFloat (int x, int y, int z, int component, float v)
 
virtual double GetScalarComponentAsDouble (int x, int y, int z, int component)
 
virtual void SetScalarComponentFromDouble (int x, int y, int z, int component, double v)
 
virtual void AllocateScalars (int dataType, int numComponents)
 
virtual void AllocateScalars (vtkInformation *pipeline_info)
 
virtual void CopyAndCastFrom (vtkImageData *inData, int extent[6])
 
virtual void CopyAndCastFrom (vtkImageData *inData, int x0, int x1, int y0, int y1, int z0, int z1)
 
virtual void Crop (const int *updateExtent)
 
virtual unsigned long GetActualMemorySize ()
 
virtual void SetSpacing (double, double, double)
 
virtual void SetSpacing (double[3])
 
virtual doubleGetSpacing ()
 
virtual void GetSpacing (double &, double &, double &)
 
virtual void GetSpacing (double[3])
 
virtual void SetOrigin (double, double, double)
 
virtual void SetOrigin (double[3])
 
virtual doubleGetOrigin ()
 
virtual void GetOrigin (double &, double &, double &)
 
virtual void GetOrigin (double[3])
 
int GetScalarType ()
 
const char * GetScalarTypeAsString ()
 
int GetNumberOfScalarComponents ()
 
virtual void CopyInformationFromPipeline (vtkInformation *information)
 
virtual void CopyInformationToPipeline (vtkInformation *information)
 
virtual void PrepareForNewData ()
 
virtual void ShallowCopy (vtkDataObject *src)
 
virtual void DeepCopy (vtkDataObject *src)
 
void * GetArrayPointerForExtent (vtkDataArray *array, int extent[6])
 
void * GetArrayPointer (vtkDataArray *array, int coordinates[3])
 
void GetArrayIncrements (vtkDataArray *array, vtkIdType increments[3])
 
void ComputeInternalExtent (int *intExt, int *tgtExt, int *bnds)
 
virtual int GetExtentType ()
 
- Public Member Functions inherited from vtkDataSet
vtkDataSetNewInstance () const
 
virtual void CopyAttributes (vtkDataSet *ds)
 
virtual vtkCellIteratorNewCellIterator ()
 
virtual void GetCellTypes (vtkCellTypes *types)
 
virtual void GetCellNeighbors (vtkIdType cellId, vtkIdList *ptIds, vtkIdList *cellIds)
 
vtkIdType FindPoint (double x, double y, double z)
 
unsigned long int GetMTime ()
 
vtkCellDataGetCellData ()
 
vtkPointDataGetPointData ()
 
virtual void Squeeze ()
 
doubleGetBounds ()
 
void GetBounds (double bounds[6])
 
doubleGetCenter ()
 
void GetCenter (double center[3])
 
double GetLength ()
 
virtual void GetScalarRange (double range[2])
 
doubleGetScalarRange ()
 
int CheckAttributes ()
 
virtual void GenerateGhostArray (int zeroExt[6])
 
virtual void GenerateGhostArray (int zeroExt[6], bool cellOnly)
 
virtual vtkFieldDataGetAttributesAsFieldData (int type)
 
virtual vtkIdType GetNumberOfElements (int type)
 
bool HasAnyGhostCells ()
 
bool HasAnyGhostPoints ()
 
vtkUnsignedCharArrayGetPointGhostArray ()
 
void UpdatePointGhostArrayCache ()
 
vtkUnsignedCharArrayAllocatePointGhostArray ()
 
vtkUnsignedCharArrayGetCellGhostArray ()
 
void UpdateCellGhostArrayCache ()
 
vtkUnsignedCharArrayAllocateCellGhostArray ()
 
- Public Member Functions inherited from vtkDataObject
vtkDataObjectNewInstance () const
 
virtual vtkInformationGetInformation ()
 
virtual void SetInformation (vtkInformation *)
 
void ReleaseData ()
 
virtual int GetDataReleased ()
 
void GlobalReleaseDataFlagOn ()
 
void GlobalReleaseDataFlagOff ()
 
virtual void SetFieldData (vtkFieldData *)
 
virtual vtkFieldDataGetFieldData ()
 
unsigned long GetUpdateTime ()
 
virtual void CopyInformationFromPipeline (vtkInformation *vtkNotUsed(info))
 
virtual void CopyInformationToPipeline (vtkInformation *vtkNotUsed(info))
 
void DataHasBeenGenerated ()
 
virtual vtkDataSetAttributesGetAttributes (int type)
 
virtual int GetAttributeTypeForArray (vtkAbstractArray *arr)
 
- Public Member Functions inherited from vtkObject
vtkObjectNewInstance () const
 
virtual void DebugOn ()
 
virtual void DebugOff ()
 
bool GetDebug ()
 
void SetDebug (bool 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)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, bool(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)
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 
virtual void Register (vtkObjectBase *o)
 
virtual void UnRegister (vtkObjectBase *o)
 
int GetReferenceCount ()
 
void SetReferenceCount (int)
 
void PrintRevisions (ostream &)
 

Static Public Member Functions

static vtkUniformGridNew ()
 
static int IsTypeOf (const char *type)
 
static vtkUniformGridSafeDownCast (vtkObjectBase *o)
 
static vtkUniformGridGetData (vtkInformation *info)
 
static vtkUniformGridGetData (vtkInformationVector *v, int i=0)
 
- Static Public Member Functions inherited from vtkImageData
static vtkImageDataNew ()
 
static int IsTypeOf (const char *type)
 
static vtkImageDataSafeDownCast (vtkObjectBase *o)
 
static int ComputeStructuredCoordinates (const double x[3], int ijk[3], double pcoords[3], const int *extent, const double *spacing, const double *origin, const double *bounds)
 
static void SetScalarType (int, vtkInformation *meta_data)
 
static int GetScalarType (vtkInformation *meta_data)
 
static bool HasScalarType (vtkInformation *meta_data)
 
static void SetNumberOfScalarComponents (int n, vtkInformation *meta_data)
 
static int GetNumberOfScalarComponents (vtkInformation *meta_data)
 
static bool HasNumberOfScalarComponents (vtkInformation *meta_data)
 
static vtkImageDataGetData (vtkInformation *info)
 
static vtkImageDataGetData (vtkInformationVector *v, int i=0)
 
- Static Public Member Functions inherited from vtkDataSet
static int IsTypeOf (const char *type)
 
static vtkDataSetSafeDownCast (vtkObjectBase *o)
 
static vtkDataSetGetData (vtkInformation *info)
 
static vtkDataSetGetData (vtkInformationVector *v, int i=0)
 
- Static Public Member Functions inherited from vtkDataObject
static vtkDataObjectNew ()
 
static int IsTypeOf (const char *type)
 
static vtkDataObjectSafeDownCast (vtkObjectBase *o)
 
static void SetGlobalReleaseDataFlag (int val)
 
static int GetGlobalReleaseDataFlag ()
 
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 const char * GetAssociationTypeAsString (int associationType)
 
static int GetAssociationTypeFromString (const char *associationType)
 
static vtkInformationStringKeyDATA_TYPE_NAME ()
 
static vtkInformationDataObjectKeyDATA_OBJECT ()
 
static vtkInformationIntegerKeyDATA_EXTENT_TYPE ()
 
static vtkInformationIntegerPointerKeyDATA_EXTENT ()
 
static vtkInformationIntegerVectorKeyALL_PIECES_EXTENT ()
 
static vtkInformationIntegerKeyDATA_PIECE_NUMBER ()
 
static vtkInformationIntegerKeyDATA_NUMBER_OF_PIECES ()
 
static vtkInformationIntegerKeyDATA_NUMBER_OF_GHOST_LEVELS ()
 
static vtkInformationDoubleKeyDATA_TIME_STEP ()
 
static vtkInformationInformationVectorKeyPOINT_DATA_VECTOR ()
 
static vtkInformationInformationVectorKeyCELL_DATA_VECTOR ()
 
static vtkInformationInformationVectorKeyVERTEX_DATA_VECTOR ()
 
static vtkInformationInformationVectorKeyEDGE_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 vtkInformationDoubleVectorKeyFIELD_RANGE ()
 
static vtkInformationIntegerVectorKeyPIECE_EXTENT ()
 
static vtkInformationStringKeyFIELD_NAME ()
 
static vtkInformationDoubleVectorKeyORIGIN ()
 
static vtkInformationDoubleVectorKeySPACING ()
 
static vtkInformationDoubleVectorKeyBOUNDING_BOX ()
 
static vtkInformationDataObjectKeySIL ()
 
static vtkDataObjectGetData (vtkInformation *info)
 
static vtkDataObjectGetData (vtkInformationVector *v, int i=0)
 
- Static Public Member Functions inherited from vtkObject
static int IsTypeOf (const char *type)
 
static vtkObjectSafeDownCast (vtkObjectBase *o)
 
static vtkObjectNew ()
 
static void BreakOnError ()
 
static void SetGlobalWarningDisplay (int val)
 
static void GlobalWarningDisplayOn ()
 
static void GlobalWarningDisplayOff ()
 
static int GetGlobalWarningDisplay ()
 
- Static Public Member Functions inherited from vtkObjectBase
static int IsTypeOf (const char *name)
 
static vtkObjectBaseNew ()
 

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 
 vtkUniformGrid ()
 
 ~vtkUniformGrid ()
 
void GetCellDims (int cellDims[3])
 
virtual void ComputeScalarRange ()
 
vtkEmptyCellGetEmptyCell ()
 
- Protected Member Functions inherited from vtkImageData
 vtkImageData ()
 
 ~vtkImageData ()
 
void ComputeIncrements ()
 
void ComputeIncrements (int numberOfComponents)
 
void ComputeIncrements (vtkDataArray *scalars)
 
void ComputeIncrements (vtkIdType inc[3])
 
void ComputeIncrements (int numberOfComponents, vtkIdType inc[3])
 
void ComputeIncrements (vtkDataArray *scalars, vtkIdType inc[3])
 
void CopyOriginAndSpacingFromPipeline (vtkInformation *info)
 
void SetDataDescription (int desc)
 
int GetDataDescription ()
 
- Protected Member Functions inherited from vtkDataSet
 vtkDataSet ()
 
 ~vtkDataSet ()
 
bool IsAnyBitSet (vtkUnsignedCharArray *a, int bitFlag)
 
- Protected Member Functions inherited from vtkDataObject
 vtkDataObject ()
 
 ~vtkDataObject ()
 
- 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 &)
 
virtual void ReportReferences (vtkGarbageCollector *)
 
 vtkObjectBase (const vtkObjectBase &)
 
void operator= (const vtkObjectBase &)
 

Additional Inherited Members

- Protected Attributes inherited from vtkImageData
int Dimensions [3]
 
vtkIdType Increments [3]
 
double Origin [3]
 
double Spacing [3]
 
int Extent [6]
 
vtkTimeStamp ExtentComputeTime
 
- Protected Attributes inherited from vtkDataSet
vtkCellDataCellData
 
vtkPointDataPointData
 
vtkCallbackCommandDataObserver
 
vtkTimeStamp ComputeTime
 
double Bounds [6]
 
double Center [3]
 
double ScalarRange [2]
 
vtkTimeStamp ScalarRangeComputeTime
 
vtkUnsignedCharArrayPointGhostArray
 
vtkUnsignedCharArrayCellGhostArray
 
- Protected Attributes inherited from vtkDataObject
vtkFieldDataFieldData
 
int DataReleased
 
vtkTimeStamp UpdateTime
 
vtkInformationInformation
 
- Protected Attributes inherited from vtkObject
bool Debug
 
vtkTimeStamp MTime
 
vtkSubjectHelper * SubjectHelper
 
- Protected Attributes inherited from vtkObjectBase
vtkAtomicInt32 ReferenceCount
 
vtkWeakPointerBase ** WeakPointers
 

Detailed Description

image data with blanking

vtkUniformGrid is a subclass of vtkImageData. In addition to all the image data functionality, it supports blanking.

Examples:
vtkUniformGrid (Examples)
Tests:
vtkUniformGrid (Tests)

Definition at line 39 of file vtkUniformGrid.h.

Member Typedef Documentation

◆ Superclass

Definition at line 45 of file vtkUniformGrid.h.

Constructor & Destructor Documentation

◆ vtkUniformGrid()

vtkUniformGrid::vtkUniformGrid ( )
protected

◆ ~vtkUniformGrid()

vtkUniformGrid::~vtkUniformGrid ( )
protected

Member Function Documentation

◆ New()

static vtkUniformGrid* vtkUniformGrid::New ( )
static

Construct an empty uniform grid.

◆ IsTypeOf()

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

◆ IsA()

virtual int vtkUniformGrid::IsA ( const char *  name)
virtual

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 vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkImageData.

◆ SafeDownCast()

static vtkUniformGrid* vtkUniformGrid::SafeDownCast ( vtkObjectBase o)
static

◆ NewInstanceInternal()

virtual vtkObjectBase* vtkUniformGrid::NewInstanceInternal ( ) const
protectedvirtual

Reimplemented from vtkImageData.

◆ NewInstance()

vtkUniformGrid* vtkUniformGrid::NewInstance ( ) const

◆ PrintSelf()

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

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 vtkImageData.

◆ CopyStructure()

virtual void vtkUniformGrid::CopyStructure ( vtkDataSet ds)
virtual

Copy the geometric and topological structure of an input image data object.

Reimplemented from vtkImageData.

◆ GetDataObjectType()

virtual int vtkUniformGrid::GetDataObjectType ( )
inlinevirtual

Return what type of dataset this is.

Reimplemented from vtkImageData.

Definition at line 54 of file vtkUniformGrid.h.

◆ GetCell() [1/2]

virtual vtkCell* vtkUniformGrid::GetCell ( vtkIdType  cellId)
virtual

Standard vtkDataSet API methods. See vtkDataSet for more information.

Reimplemented from vtkImageData.

◆ GetCell() [2/2]

virtual void vtkUniformGrid::GetCell ( vtkIdType  cellId,
vtkGenericCell cell 
)
virtual

Get cell with cellId such that: 0 <= cellId < NumberOfCells. This is a thread-safe alternative to the previous GetCell() method. THIS METHOD IS THREAD SAFE IF FIRST CALLED FROM A SINGLE THREAD AND THE DATASET IS NOT MODIFIED

Reimplemented from vtkImageData.

◆ FindCell() [1/2]

virtual vtkIdType vtkUniformGrid::FindCell ( double  x[3],
vtkCell cell,
vtkIdType  cellId,
double  tol2,
int subId,
double  pcoords[3],
double weights 
)
virtual

Locate cell based on global coordinate x and tolerance squared. If cell and cellId is non-NULL, then search starts from this cell and looks at immediate neighbors. Returns cellId >= 0 if inside, < 0 otherwise. The parametric coordinates are provided in pcoords[3]. The interpolation weights are returned in weights[]. (The number of weights is equal to the number of points in the found cell). Tolerance is used to control how close the point is to be considered "in" the cell. THIS METHOD IS NOT THREAD SAFE.

Reimplemented from vtkImageData.

◆ FindCell() [2/2]

virtual vtkIdType vtkUniformGrid::FindCell ( double  x[3],
vtkCell cell,
vtkGenericCell gencell,
vtkIdType  cellId,
double  tol2,
int subId,
double  pcoords[3],
double weights 
)
virtual

This is a version of the above method that can be used with multithreaded applications. A vtkGenericCell must be passed in to be used in internal calls that might be made to GetCell() THIS METHOD IS THREAD SAFE IF FIRST CALLED FROM A SINGLE THREAD AND THE DATASET IS NOT MODIFIED

Reimplemented from vtkImageData.

◆ FindAndGetCell()

virtual vtkCell* vtkUniformGrid::FindAndGetCell ( double  x[3],
vtkCell cell,
vtkIdType  cellId,
double  tol2,
int subId,
double  pcoords[3],
double weights 
)
virtual

Locate the cell that contains a point and return the cell. Also returns the subcell id, parametric coordinates and weights for subsequent interpolation. This method combines the derived class methods int FindCell and vtkCell *GetCell. Derived classes may provide a more efficient implementation. See for example vtkStructuredPoints. THIS METHOD IS NOT THREAD SAFE.

Reimplemented from vtkImageData.

◆ GetCellType()

virtual int vtkUniformGrid::GetCellType ( vtkIdType  cellId)
virtual

Get type of cell with cellId such that: 0 <= cellId < NumberOfCells. THIS METHOD IS THREAD SAFE IF FIRST CALLED FROM A SINGLE THREAD AND THE DATASET IS NOT MODIFIED

Reimplemented from vtkImageData.

◆ GetCellPoints()

virtual void vtkUniformGrid::GetCellPoints ( vtkIdType  cellId,
vtkIdList ptIds 
)
inlinevirtual

Topological inquiry to get points defining cell. THIS METHOD IS THREAD SAFE IF FIRST CALLED FROM A SINGLE THREAD AND THE DATASET IS NOT MODIFIED

Reimplemented from vtkImageData.

Definition at line 72 of file vtkUniformGrid.h.

◆ GetPointCells()

virtual void vtkUniformGrid::GetPointCells ( vtkIdType  ptId,
vtkIdList cellIds 
)
inlinevirtual

Topological inquiry to get cells using point. THIS METHOD IS THREAD SAFE IF FIRST CALLED FROM A SINGLE THREAD AND THE DATASET IS NOT MODIFIED

Reimplemented from vtkImageData.

Definition at line 75 of file vtkUniformGrid.h.

◆ Initialize() [1/5]

virtual void vtkUniformGrid::Initialize ( )
virtual

Restore data object to initial state.

Reimplemented from vtkImageData.

◆ GetMaxCellSize()

virtual int vtkUniformGrid::GetMaxCellSize ( )
inlinevirtual

Convenience method returns largest cell size in dataset. This is generally used to allocate memory for supporting data structures. THIS METHOD IS THREAD SAFE

Reimplemented from vtkImageData.

Definition at line 78 of file vtkUniformGrid.h.

◆ GetGridDescription()

int vtkUniformGrid::GetGridDescription ( )

Returns the data description of this uniform grid instance.

◆ Initialize() [2/5]

int vtkUniformGrid::Initialize ( const vtkAMRBox def,
double origin,
double spacing 
)

Initialize with no ghost cell arrays, from the definition in the given box. The box is expetced to be 3D, if you have 2D data the set the third dimensions 0. eg. (X,X,0)(X,X,0) Returns 0 if the initialization failed.

◆ Initialize() [3/5]

int vtkUniformGrid::Initialize ( const vtkAMRBox def,
double origin,
double spacing,
int  nGhosts 
)

Initialize from the definition in the given box, with ghost cell arrays nGhosts cells thick in all directions. The box is expetced to be 3D, if you have 2D data the set the third dimensions 0. eg. (X,X,0)(X,X,0) Returns 0 if the initialization failed.

◆ Initialize() [4/5]

int vtkUniformGrid::Initialize ( const vtkAMRBox def,
double origin,
double spacing,
const int  nGhosts[3] 
)

Initialize from the definition in the given box, with ghost cell arrays of the thickness given in each direction by "nGhosts" array. The box and ghost array are expected to be 3D, if you have 2D data the set the third dimensions 0. eg. (X,X,0)(X,X,0) Returns 0 if the initialization failed.

◆ Initialize() [5/5]

int vtkUniformGrid::Initialize ( const vtkAMRBox def,
double origin,
double spacing,
int  nGhostsI,
int  nGhostsJ,
int  nGhostsK 
)

Construct a uniform grid, from the definition in the given box "def", with ghost cell arrays of the thickness given in each direction by "nGhosts*". The box and ghost array are expected to be 3D, if you have 2D data the set the third dimensions 0. eg. (X,X,0)(X,X,0) Returns 0 if the initialization failed.

◆ BlankPoint() [1/2]

virtual void vtkUniformGrid::BlankPoint ( vtkIdType  ptId)
virtual

Methods for supporting blanking of cells. Blanking turns on or off points in the structured grid, and hence the cells connected to them. These methods should be called only after the dimensions of the grid are set.

◆ UnBlankPoint() [1/2]

virtual void vtkUniformGrid::UnBlankPoint ( vtkIdType  ptId)
virtual

◆ BlankPoint() [2/2]

virtual void vtkUniformGrid::BlankPoint ( const int  i,
const int  j,
const int  k 
)
virtual

◆ UnBlankPoint() [2/2]

virtual void vtkUniformGrid::UnBlankPoint ( const int  i,
const int  j,
const int  k 
)
virtual

◆ BlankCell() [1/2]

virtual void vtkUniformGrid::BlankCell ( vtkIdType  ptId)
virtual

Methods for supporting blanking of cells. Blanking turns on or off cells in the structured grid. These methods should be called only after the dimensions of the grid are set.

◆ UnBlankCell() [1/2]

virtual void vtkUniformGrid::UnBlankCell ( vtkIdType  ptId)
virtual

◆ BlankCell() [2/2]

virtual void vtkUniformGrid::BlankCell ( const int  i,
const int  j,
const int  k 
)
virtual

◆ UnBlankCell() [2/2]

virtual void vtkUniformGrid::UnBlankCell ( const int  i,
const int  j,
const int  k 
)
virtual

◆ HasAnyBlankCells()

virtual bool vtkUniformGrid::HasAnyBlankCells ( )
virtual

Returns 1 if there is any visibility constraint on the cells, 0 otherwise.

Reimplemented from vtkDataSet.

◆ HasAnyBlankPoints()

virtual bool vtkUniformGrid::HasAnyBlankPoints ( )
virtual

Returns 1 if there is any visibility constraint on the points, 0 otherwise.

Reimplemented from vtkDataSet.

◆ IsPointVisible()

virtual unsigned char vtkUniformGrid::IsPointVisible ( vtkIdType  ptId)
virtual

Return non-zero value if specified point is visible. These methods should be called only after the dimensions of the grid are set.

◆ IsCellVisible()

virtual unsigned char vtkUniformGrid::IsCellVisible ( vtkIdType  cellId)
virtual

Return non-zero value if specified cell is visible. These methods should be called only after the dimensions of the grid are set.

◆ NewImageDataCopy()

virtual vtkImageData* vtkUniformGrid::NewImageDataCopy ( )
virtual

◆ GetData() [1/2]

static vtkUniformGrid* vtkUniformGrid::GetData ( vtkInformation info)
static

Retrieve an instance of this class from an information object.

◆ GetData() [2/2]

static vtkUniformGrid* vtkUniformGrid::GetData ( vtkInformationVector v,
int  i = 0 
)
static

◆ GetCellDims()

void vtkUniformGrid::GetCellDims ( int  cellDims[3])
protected

Returns the cell dimensions for this vtkUniformGrid instance.

◆ ComputeScalarRange()

virtual void vtkUniformGrid::ComputeScalarRange ( )
protectedvirtual

Override this method because of blanking.

Reimplemented from vtkDataSet.

◆ GetEmptyCell()

vtkEmptyCell* vtkUniformGrid::GetEmptyCell ( )
protected

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