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

Method GetScaleFunction

Rendering/ANARI/vtkAnariActorNode.cxx:148–170  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

146
147//----------------------------------------------------------------------------
148vtkPiecewiseFunction* 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//----------------------------------------------------------------------------
173void vtkAnariActorNode::SetLuminosity(double value, vtkProperty* property)

Callers 5

RenderMethod · 0.80
BuildScaleTableMethod · 0.80
InternalRenderMethod · 0.80
GetNeedToRebuildMethod · 0.80

Calls 4

GetMapperMethod · 0.80
GetInformationMethod · 0.45
HasMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected