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

Method SetComponents

Imaging/Core/vtkImageExtractComponents.cxx:28–53  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

26
27//------------------------------------------------------------------------------
28void vtkImageExtractComponents::SetComponents(int c1, int c2, int c3)
29{
30 int modified = 0;
31
32 if (this->Components[0] != c1)
33 {
34 this->Components[0] = c1;
35 modified = 1;
36 }
37 if (this->Components[1] != c2)
38 {
39 this->Components[1] = c2;
40 modified = 1;
41 }
42 if (this->Components[2] != c3)
43 {
44 this->Components[2] = c3;
45 modified = 1;
46 }
47
48 if (modified || this->NumberOfComponents != 3)
49 {
50 this->NumberOfComponents = 3;
51 this->Modified();
52 }
53}
54
55//------------------------------------------------------------------------------
56void vtkImageExtractComponents::SetComponents(int c1, int c2)

Callers 15

WriteTextureMethod · 0.80
PrepareImageDataMethod · 0.80
android_mainFunction · 0.80
RenderMethod · 0.80
RenderMethod · 0.80
DownloadMethod · 0.80
RenderMethod · 0.80
GatherMethod · 0.80
ScatterMethod · 0.80
RenderAsTrianglesFunction · 0.80
RequestDataMethod · 0.80

Calls 1

ModifiedMethod · 0.45

Tested by 1

RegressionTestMethod · 0.64