----------------------------------------------------------------------------
| 146 | |
| 147 | //---------------------------------------------------------------------------- |
| 148 | vtkPiecewiseFunction* vtkAnariActorNode::GetScaleFunction(vtkActor* actor) |
| 149 | { |
| 150 | if (!actor) |
| 151 | { |
| 152 | return nullptr; |
| 153 | } |
| 154 | |
| 155 | vtkMapper* mapper = actor->GetMapper(); |
| 156 | |
| 157 | if (mapper) |
| 158 | { |
| 159 | vtkInformation* info = mapper->GetInformation(); |
| 160 | |
| 161 | if (info && info->Has(vtkAnariActorNode::SCALE_FUNCTION())) |
| 162 | { |
| 163 | vtkPiecewiseFunction* pwf = |
| 164 | vtkPiecewiseFunction::SafeDownCast(info->Get(vtkAnariActorNode::SCALE_FUNCTION())); |
| 165 | return pwf; |
| 166 | } |
| 167 | } |
| 168 | |
| 169 | return nullptr; |
| 170 | } |
| 171 | |
| 172 | //---------------------------------------------------------------------------- |
| 173 | void vtkAnariActorNode::SetLuminosity(double value, vtkProperty* property) |
no test coverage detected