MCPcopy Create free account
hub / github.com/Kitware/VTK / GetDataDescription

Method GetDataDescription

Common/DataModel/vtkStructuredData.cxx:69–79  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Returns the data description given the dimensions (eg. VTK_STRUCTURED_SINGLE_POINT, VTK_STRUCTURED_X_LINE, VTK_STRUCTURED_XY_PLANE etc.)

Source from the content-addressed store, hash-verified

67// Returns the data description given the dimensions (eg. VTK_STRUCTURED_SINGLE_POINT,
68// VTK_STRUCTURED_X_LINE, VTK_STRUCTURED_XY_PLANE etc.)
69int vtkStructuredData::GetDataDescription(int dims[3])
70{
71 int tempDims[3];
72 // It is essential that dims != tempDims, then alone will SetDimensions()
73 // return the correct data description.
74 tempDims[0] = dims[0] + 1;
75 tempDims[1] = dims[1] + 1;
76 tempDims[2] = dims[2] + 1;
77
78 return vtkStructuredData::SetDimensions(dims, tempDims);
79}
80
81//------------------------------------------------------------------------------
82// Given the extent, returns the data description given the dimensions

Callers 13

GetCellMethod · 0.80
GetCellBoundsMethod · 0.80
GetCellMethod · 0.80
GetCellBoundsMethod · 0.80
FindCellMethod · 0.80
SetDataSetMethod · 0.80
StripGhostLayersMethod · 0.80
IsCellVisibleMethod · 0.80
CreateOutputFunction · 0.80
GetSliceMethod · 0.80
Generate2DDataSetMethod · 0.80
Generate3DDataSetMethod · 0.80

Calls 1

SetDimensionsFunction · 0.70

Tested by 1

GetGhostedDataSetFunction · 0.64