parameters: (self, proxy)
return_statement: return colorInfo
docstring: Generates a block of color information, given a representation proxy.
  
              colorBy: {
                  'representation': '652',
                  'scalarBar': 0,
                  'mode': 'color'    # 'array'
                  'color': [ 0.5, 1.0, 1.0 ],
                  'array': [ 'POINTS', 'RTData', -1 ],
                  'colorMap': 'Blue to Red'
              }
docstring_summary: Generates a block of color information, given a representation proxy.
docstring_tokens: Generates a block of color information given a representation proxy .
function: def getColorInformation(self, proxy):
          """
          Generates a block of color information, given a representation proxy.
  
              colorBy: {
                  'representation': '652',
                  'scalarBar': 0,
                  'mode': 'color'    # 'array'
                  'color': [ 0.5, 1.0, 1.0 ],
                  'array': [ 'POINTS', 'RTData', -1 ],
                  'colorMap': 'Blue to Red'
              }
          """
          colorInfo = {"representation": proxy.GetGlobalIDAsString()}
          if proxy.GetProperty("DiffuseColor"):
              colorInfo["color"] = proxy.GetProperty("DiffuseColor").GetData()
  
          if proxy.GetProperty("ColorArrayName"):
              colorInfo["mode"] = "array"
              view = self.getView(-1)
              sbVisible = vtkSMPVRepresentationProxy.IsScalarBarVisible(
                  proxy.SMProxy, view.SMProxy
              )
              colorInfo["scalarBar"] = 1 if sbVisible else 0
              lut = proxy.GetProperty("LookupTable").GetData()
              component = -1
  
              if lut and lut.GetProperty("VectorMode").GetData() == "Component":
                  component = lut.GetProperty("VectorComponent").GetData()
  
              colorArrayProp = proxy.GetProperty("ColorArrayName")
              colorInfo["array"] = [
                  colorArrayProp.GetAssociation(),
                  colorArrayProp.GetArrayName(),
                  component,
              ]
          else:
              colorInfo["mode"] = "color"
              colorInfo["scalarBar"] = 0
  
          return colorInfo
function_tokens: def getColorInformation ( self , proxy ) : colorInfo = { "representation" : proxy . GetGlobalIDAsString ( ) } if proxy . GetProperty ( "DiffuseColor" ) : colorInfo [ "color" ] = proxy . GetProperty ( "DiffuseColor" ) . GetData ( ) if proxy . GetProperty ( "ColorArrayName" ) : colorInfo [ "mode" ] = "array" view = self . getView ( - 1 ) sbVisible = vtkSMPVRepresentationProxy . IsScalarBarVisible ( proxy . SMProxy , view . SMProxy ) colorInfo [ "scalarBar" ] = 1 if sbVisible else 0 lut = proxy . GetProperty ( "LookupTable" ) . GetData ( ) component = - 1 if lut and lut . GetProperty ( "VectorMode" ) . GetData ( ) == "Component" : component = lut . GetProperty ( "VectorComponent" ) . GetData ( ) colorArrayProp = proxy . GetProperty ( "ColorArrayName" ) colorInfo [ "array" ] = [ colorArrayProp . GetAssociation ( ) , colorArrayProp . GetArrayName ( ) , component , ] else : colorInfo [ "mode" ] = "color" colorInfo [ "scalarBar" ] = 0 return colorInfo