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

Method SetVectorMode

Rendering/VolumeOpenGL2/vtkSmartVolumeMapper.cxx:942–955  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

940
941//------------------------------------------------------------------------------
942void vtkSmartVolumeMapper::SetVectorMode(int mode)
943{
944 int const clampedMode = std::min(std::max(mode, -1), 1);
945 if (clampedMode != this->VectorMode)
946 {
947 if (clampedMode == MAGNITUDE)
948 {
949 this->InputDataMagnitude->Modified();
950 }
951
952 this->VectorMode = clampedMode;
953 this->Modified();
954 }
955}
956VTK_ABI_NAMESPACE_END

Calls 3

minFunction · 0.50
maxFunction · 0.50
ModifiedMethod · 0.45