Definition at line 92 of file NucMeshSrv.H.
|
virtual int | RequestInformation (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) |
|
virtual int | RequestDataObject (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) |
| This is called by the superclass. More...
|
|
virtual int | RequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)=0 |
| This is called by the superclass. More...
|
|
virtual int | RequestUpdateExtent (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) |
| This is called by the superclass. More...
|
|
Inherits NEM::SRV::srvBase.
◆ NucMeshSrv()
NEM::SRV::NucMeshSrv::NucMeshSrv |
( |
| ) |
|
◆ FillOutputPortInformation()
int NEM::SRV::NucMeshSrv::FillOutputPortInformation |
( |
int |
port, |
|
|
vtkInformation * |
info |
|
) |
| |
|
override |
Definition at line 64 of file NucMeshSrv.C.
References NEM::NUCMESH::NucMeshGeo::computeMesh(), conf_, NEM::MSH::containerWrapper(), NEM::SRV::NucMeshConf::extrudeSteps, NEM::SRV::NucMeshConf::generator, NEM::SRV::NucMeshConf::geometryAndMesh, NEM::NUCMESH::ShapeBase::mergeGeo(), mesh, NEM::SRV::srvBase::RequestData(), and NEM::MSH::smeshGeoMesh::setSMeshMesh().
66 info->Set(vtkDataObject::DATA_TYPE_NAME(),
"smeshGeoMesh");
◆ GetConfiguration()
const NucMeshConf & NEM::SRV::NucMeshSrv::GetConfiguration |
( |
| ) |
const |
◆ GetOutput() [1/2]
Definition at line 104 of file srvBase.C.
vtkAbstractTypeMacro(srvBase, vtkAlgorithm) public NEM::MSH::geoMeshBase * GetOutput()
Get the output GeoMeshBase for a port on this algorithm.
◆ GetOutput() [2/2]
Definition at line 106 of file srvBase.C.
107 return NEM::MSH::geoMeshBase::SafeDownCast(this->GetOutputDataObject(port));
◆ New()
◆ RequestData()
virtual int NEM::SRV::srvBase::RequestData |
( |
vtkInformation * |
request, |
|
|
vtkInformationVector ** |
inputVector, |
|
|
vtkInformationVector * |
outputVector |
|
) |
| |
|
protectedpure virtualinherited |
◆ RequestDataObject()
int NEM::SRV::srvBase::RequestDataObject |
( |
vtkInformation * |
request, |
|
|
vtkInformationVector ** |
inputVector, |
|
|
vtkInformationVector * |
outputVector |
|
) |
| |
|
protectedvirtualinherited |
Definition at line 110 of file srvBase.C.
References NEM::MSH::gmshGeoMesh::New(), NEM::MSH::vtkGeoMesh::New(), NEM::MSH::smeshGeoMesh::New(), NEM::MSH::foamGeoMesh::New(), NEM::MSH::exoGeoMesh::New(), NEM::MSH::inpGeoMesh::New(), and NEM::MSH::oshGeoMesh::New().
Referenced by NEM::SRV::srvBase::~srvBase().
113 for (
int i = 0; i < outputVector->GetNumberOfInformationObjects(); ++i) {
114 auto outInfo = outputVector->GetInformationObject(i);
115 auto outAlgInfo = this->GetOutputPortInformation(i);
116 if (!outAlgInfo->Has(vtkDataObject::DATA_TYPE_NAME())) {
119 std::string typeName = outAlgInfo->Get(vtkDataObject::DATA_TYPE_NAME());
120 MSH::geoMeshBase *output =
nullptr;
121 if (typeName ==
"vtkGeoMesh") {
123 }
else if (typeName ==
"gmshGeoMesh") {
127 }
else if (typeName ==
"oshGeoMesh") {
129 }
else if (typeName ==
"exoGeoMesh") {
131 }
else if (typeName ==
"inpGeoMesh") {
133 }
else if (typeName ==
"foamGeoMesh") {
137 }
else if (typeName ==
"smeshGeoMesh") {
141 }
else if (typeName ==
"geoMeshBase") {
142 if (i < this->GetNumberOfInputPorts() &&
143 inputVector[i]->GetNumberOfInformationObjects() > 0) {
144 auto inObj = inputVector[i]
145 ->GetInformationObject(0)
146 ->Get(vtkDataObject::DATA_OBJECT());
148 output = MSH::geoMeshBase::SafeDownCast(inObj->NewInstance());
155 outInfo->Set(vtkDataObject::DATA_OBJECT(), output);
156 output->FastDelete();
157 this->GetOutputPortInformation(i)->Set(
158 vtkDataObject::DATA_EXTENT_TYPE(), output->GetExtentType());
static smeshGeoMesh * New()
static inpGeoMesh * New()
static exoGeoMesh * New()
static foamGeoMesh * New()
static vtkGeoMesh * New()
static oshGeoMesh * New()
static gmshGeoMesh * New()
◆ RequestInformation()
int NEM::SRV::srvBase::RequestInformation |
( |
vtkInformation * |
request, |
|
|
vtkInformationVector ** |
inputVector, |
|
|
vtkInformationVector * |
outputVector |
|
) |
| |
|
protectedvirtualinherited |
◆ RequestUpdateExtent()
int NEM::SRV::srvBase::RequestUpdateExtent |
( |
vtkInformation * |
request, |
|
|
vtkInformationVector ** |
inputVector, |
|
|
vtkInformationVector * |
outputVector |
|
) |
| |
|
protectedvirtualinherited |
Definition at line 163 of file srvBase.C.
Referenced by NEM::SRV::srvBase::~srvBase().
166 int numInputPorts = this->GetNumberOfInputPorts();
167 for (
int i = 0; i < numInputPorts; i++) {
168 int numInputConnections = this->GetNumberOfInputConnections(i);
169 for (
int j = 0; j < numInputConnections; j++) {
170 vtkInformation *inputInfo = inputVector[i]->GetInformationObject(j);
171 inputInfo->Set(vtkStreamingDemandDrivenPipeline::EXACT_EXTENT(), 1);
◆ SetConfiguration()
void NEM::SRV::NucMeshSrv::SetConfiguration |
( |
const NucMeshConf & |
configuration | ) |
|
◆ conf_
The documentation for this class was generated from the following files: