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

Method SetEnableFlag

Common/Core/vtkObjectFactory.cxx:458–479  ·  view source on GitHub ↗

Set the enable flag for a class / subclassName pair

Source from the content-addressed store, hash-verified

456
457// Set the enable flag for a class / subclassName pair
458void vtkObjectFactory::SetEnableFlag(
459 vtkTypeBool flag, const char* className, const char* subclassName)
460{
461 for (int i = 0; i < this->OverrideArrayLength; i++)
462 {
463 if (strcmp(this->OverrideClassNames[i], className) == 0)
464 {
465 // if subclassName is null, then set on className match
466 if (!subclassName)
467 {
468 this->OverrideArray[i].EnabledFlag = flag;
469 }
470 else
471 {
472 if (strcmp(this->OverrideArray[i].OverrideWithName, subclassName) == 0)
473 {
474 this->OverrideArray[i].EnabledFlag = flag;
475 }
476 }
477 }
478 }
479}
480
481// Get the enable flag for a className/subclassName pair
482vtkTypeBool vtkObjectFactory::GetEnableFlag(

Callers 2

SetAllEnableFlagsMethod · 0.80
TestObjectFactoryFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestObjectFactoryFunction · 0.64