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

Method ShallowCopy

Rendering/Annotation/vtkAxesActor.cxx:169–196  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Shallow copy of an actor.

Source from the content-addressed store, hash-verified

167//------------------------------------------------------------------------------
168// Shallow copy of an actor.
169void vtkAxesActor::ShallowCopy(vtkProp* prop)
170{
171 vtkAxesActor* a = vtkAxesActor::SafeDownCast(prop);
172 if (a != nullptr)
173 {
174 this->SetAxisLabels(a->GetAxisLabels());
175 this->SetXAxisLabelText(a->GetXAxisLabelText());
176 this->SetYAxisLabelText(a->GetYAxisLabelText());
177 this->SetZAxisLabelText(a->GetZAxisLabelText());
178 this->SetTotalLength(a->GetTotalLength());
179 this->SetNormalizedShaftLength(a->GetNormalizedShaftLength());
180 this->SetNormalizedTipLength(a->GetNormalizedTipLength());
181 this->SetNormalizedLabelPosition(a->GetNormalizedLabelPosition());
182 this->SetConeResolution(a->GetConeResolution());
183 this->SetSphereResolution(a->GetSphereResolution());
184 this->SetCylinderResolution(a->GetCylinderResolution());
185 this->SetConeRadius(a->GetConeRadius());
186 this->SetSphereRadius(a->GetSphereRadius());
187 this->SetCylinderRadius(a->GetCylinderRadius());
188 this->SetTipType(a->GetTipType());
189 this->SetShaftType(a->GetShaftType());
190 this->SetUserDefinedTip(a->GetUserDefinedTip());
191 this->SetUserDefinedShaft(a->GetUserDefinedShaft());
192 }
193
194 // Now do superclass
195 this->vtkProp3D::ShallowCopy(prop);
196}
197
198//------------------------------------------------------------------------------
199void vtkAxesActor::GetActors(vtkPropCollection* ac)

Callers 15

RenderOpaqueGeometryMethod · 0.45
vtkXYPlotActor.cxxFile · 0.45
vtkBarChartActorMethod · 0.45
PlaceAxesMethod · 0.45
vtkPieChartActorMethod · 0.45
PlaceAxesMethod · 0.45
SetupAxesMethod · 0.45
SetXAxesTitlePropertyMethod · 0.45
SetYAxesTitlePropertyMethod · 0.45
SetZAxesTitlePropertyMethod · 0.45

Calls 8

SetTotalLengthMethod · 0.95
SetTipTypeMethod · 0.95
SetShaftTypeMethod · 0.95
SetSphereRadiusMethod · 0.80
GetSphereRadiusMethod · 0.80

Tested by 3

TestAnariCylinderFunction · 0.36
TestAnariMaterialsFunction · 0.36
TestAnariSphereFunction · 0.36