MCPcopy Create free account
hub / github.com/Kitware/ParaView / SetControlBox

Method SetControlBox

Remoting/Views/vtkPVTransferFunction2D.cxx:266–282  ·  view source on GitHub ↗

-------------------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

264
265//-------------------------------------------------------------------------------------------------
266int vtkPVTransferFunction2D::SetControlBox(int id, vtkSmartPointer<vtkPVTransferFunction2DBox> b)
267{
268 if (id < 0)
269 {
270 // invalid id
271 return -1;
272 }
273 if (id >= static_cast<int>(this->Internals->Boxes.size()))
274 {
275 return this->AddControlBox(b);
276 }
277
278 auto box = this->Internals->Boxes.at(id);
279 box->SetBox(b->GetBox());
280 box->SetColor(b->GetColor());
281 return id;
282}
283
284//-------------------------------------------------------------------------------------------------
285int vtkPVTransferFunction2D::RemoveControlBox(int id)

Callers 1

Calls 5

AddControlBoxMethod · 0.95
sizeMethod · 0.45
SetBoxMethod · 0.45
SetColorMethod · 0.45
GetColorMethod · 0.45

Tested by

no test coverage detected