------------------------------------------------------------------------------
| 131 | |
| 132 | //------------------------------------------------------------------------------ |
| 133 | void vtkColorTransferControlPointsItem::SetControlPoint(vtkIdType index, double* newPos) |
| 134 | { |
| 135 | double xrgbms[6]; |
| 136 | this->ColorTransferFunction->GetNodeValue(index, xrgbms); |
| 137 | if (newPos[0] != xrgbms[0] || newPos[2] != xrgbms[1] || newPos[3] != xrgbms[2]) |
| 138 | { |
| 139 | xrgbms[0] = newPos[0]; |
| 140 | xrgbms[4] = newPos[2]; |
| 141 | xrgbms[5] = newPos[3]; |
| 142 | this->StartChanges(); |
| 143 | this->ColorTransferFunction->SetNodeValue(index, xrgbms); |
| 144 | this->EndChanges(); |
| 145 | } |
| 146 | } |
| 147 | |
| 148 | //------------------------------------------------------------------------------ |
| 149 | void vtkColorTransferControlPointsItem::EditPoint(float tX, float tY) |
nothing calls this directly
no test coverage detected