-
- Downloads
Make some color methods consistent.
In order to use functions like SetTableValue(2, "Blue") in a lookup table or other SetColors in derived classes in the same manner, these methods should be virtual. This commit just makes the relevant Set methods virtual. In the case of vtkProperty, the definition of SetColor(double a[3]) has been moved into vtkProperty.cxx, the rationale is that, in VTK classes, definitions occur in the implementation file not the header file. Change-Id: I89fee8eb4902e0847114b068374c3bff0bf10b9d
Showing
- Common/Color/vtkNamedColors.h 8 additions, 8 deletionsCommon/Color/vtkNamedColors.h
- Common/Core/vtkLookupTable.h 6 additions, 4 deletionsCommon/Core/vtkLookupTable.h
- Rendering/Core/vtkProperty.cxx 6 additions, 0 deletionsRendering/Core/vtkProperty.cxx
- Rendering/Core/vtkProperty.h 2 additions, 3 deletionsRendering/Core/vtkProperty.h
Please register or sign in to comment