inline typename DataSet<DSParam,VScalarParam,DataValueParam>::DestVector DataSet<DSParam,VScalarParam,DataValueParam>::Locator::calcVector( const Visualization::Abstract::VectorExtractor* vectorExtractor) const { /* Convert the extractor base class pointer to the proper type: */ const VectorExtractor* myVectorExtractor=dynamic_cast<const VectorExtractor*>(vectorExtractor); if(myVectorExtractor==0) Misc::throwStdErr("DataSet::Locator::calcVector: Mismatching vector extractor type"); /* Check if the locator is valid: */ if(!valid) Misc::throwStdErr("DataSet::Locator::calcVector: Attempt to evaluate invalid locator"); /* Calculate and return the value: */ return VVector(dsl.calcValue(myVectorExtractor->getVe())); }
static VVector Make(size_t D) { return VVector(D); }