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

Method getGridCollection

ThirdParty/xdmf3/vtkxdmf3/XdmfGridTemplate.cpp:112–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112shared_ptr<XdmfGridCollection>
113XdmfGridTemplate::getGridCollection(const unsigned int index)
114{
115 if (mBase) {
116 if (index < getNumberSteps()) {
117 this->clearStep();
118 this->setStep(index);
119 if (shared_ptr<XdmfGridCollection> grid =
120 shared_dynamic_cast<XdmfGridCollection>(mBase)) {
121 return grid;
122 }
123 else {
124 return shared_ptr<XdmfGridCollection>();
125 }
126 }
127 else {
128 return shared_ptr<XdmfGridCollection>();
129 }
130 }
131 else {
132 XdmfError::message(XdmfError::FATAL, "Error: Attempting to get GridCollection from template without a base");
133 return shared_ptr<XdmfGridCollection>();
134 }
135}
136
137shared_ptr<const XdmfGridCollection>
138XdmfGridTemplate::getGridCollection(const unsigned int index) const

Callers 9

GetVTKTypeFunction · 0.80
vtkXdmf3Reader.cxxFile · 0.80
InspectXDMFMethod · 0.80
InspectTimeMethod · 0.80
PopulateMethod · 0.80
copyGridMethod · 0.80
readMethod · 0.80

Calls 4

setStepMethod · 0.95
clearStepMethod · 0.80
compareMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected