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

Method SetVariable

IO/Export/vtkRIBProperty.cxx:48–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48void vtkRIBProperty::SetVariable(const char* variable, const char* value)
49{
50 delete[] this->Declarations;
51
52 // format of line is: Declare "variable" "type"\n
53 size_t length = strlen("Declare ") + strlen(variable) + strlen(value) + 8;
54 this->Declarations = new char[length];
55
56 auto result =
57 vtk::format_to_n(this->Declarations, length, "Declare \"{:s}\" \"{:s}\"\n", variable, value);
58 *result.out = '\0';
59 this->Modified();
60}
61
62void vtkRIBProperty::AddVariable(const char* variable, const char* value)
63{

Callers 12

AddVariableMethod · 0.95
clothFunction · 0.80
dentedFunction · 0.80
stippledFunction · 0.80
bozoFunction · 0.80
spatterFunction · 0.80
cmarbleFunction · 0.80
stoneFunction · 0.80
woodFunction · 0.80
TestRIBPropertyFunction · 0.80
TestRIBExporterFunction · 0.80
testCellsMethod · 0.80

Calls 2

format_to_nFunction · 0.50
ModifiedMethod · 0.45

Tested by 10

clothFunction · 0.64
dentedFunction · 0.64
stippledFunction · 0.64
bozoFunction · 0.64
spatterFunction · 0.64
cmarbleFunction · 0.64
stoneFunction · 0.64
woodFunction · 0.64
TestRIBPropertyFunction · 0.64
TestRIBExporterFunction · 0.64