Filtering/vtkColorTransferFunction.cxx
int vtkColorTransferFunction::SetNodeValue( int index, double val[6] )
{
  int size = static_cast<int>(this->Internal->Nodes.size());

  if ( index < 0 || index >= size )
    {
    vtkErrorMacro("Index out of range!");
    return -1;
    }
  
  this->Internal->Nodes[index]->X = val[0];
  this->Internal->Nodes[index]->R = val[1];
  this->Internal->Nodes[index]->G = val[2];
  this->Internal->Nodes[index]->B = val[3];
  this->Internal->Nodes[index]->Midpoint = val[4];
  this->Internal->Nodes[index]->Sharpness = val[5];

  this->Modified();

  return 1;
}
//----------------------------------------------------------------------------
// For a specified index value, get the node parameters
For a specified index value, get the node parameters
For a specified index value get the node parameters
int vtkColorTransferFunction::SetNodeValue( int index, double val[6] )
{
  int size = static_cast<int>(this->Internal->Nodes.size());
  if ( index < 0 || index >= size )
    {
    vtkErrorMacro("Index out of range!");
    return -1;
    }
  this->Internal->Nodes[index]->X = val[0];
  this->Internal->Nodes[index]->R = val[1];
  this->Internal->Nodes[index]->G = val[2];
  this->Internal->Nodes[index]->B = val[3];
  this->Internal->Nodes[index]->Midpoint = val[4];
  this->Internal->Nodes[index]->Sharpness = val[5];
  this->Modified();
  return 1;
}
int vtkColorTransferFunction :: SetNodeValue ( int index , double val [ 6 ] ) { int size = static_cast < int > ( this -> Internal -> Nodes . size ( ) ) ; if ( index < 0 || index >= size ) { vtkErrorMacro ( " " ) ; return -1 ; } this -> Internal -> Nodes [ index ] -> X = val [ 0 ] ; this -> Internal -> Nodes [ index ] -> R = val [ 1 ] ; this -> Internal -> Nodes [ index ] -> G = val [ 2 ] ; this -> Internal -> Nodes [ index ] -> B = val [ 3 ] ; this -> Internal -> Nodes [ index ] -> Midpoint = val [ 4 ] ; this -> Internal -> Nodes [ index ] -> Sharpness = val [ 5 ] ; this -> Modified ( ) ; return 1 ; }
For a specified index value, get the node parameters
For a specified index value get the node parameters