Plugins/PointSprite/ParaViewPlugin/Qvis/VolumeAttributes.cpp
bool
VolumeAttributes::GradientWontChange(const VolumeAttributes &obj) const
{
    int i;

    // Compare the freeformOpacity arrays.
    bool freeformOpacity_equal = true;
    for(i = 0; i < 256 && freeformOpacity_equal; ++i)
        freeformOpacity_equal = (freeformOpacity[i] == obj.freeformOpacity[i]);

    // Create the return value
    return ((freeformFlag         == obj.freeformFlag) &&
            (opacityControlPoints == obj.opacityControlPoints) &&
            (resampleTarget       == obj.resampleTarget) &&
            (opacityVariable      == obj.opacityVariable) &&
            freeformOpacity_equal &&
            (useColorVarMin       == obj.useColorVarMin) &&
            (colorVarMin          == obj.colorVarMin) &&
            (useColorVarMax       == obj.useColorVarMax) &&
            (colorVarMax          == obj.colorVarMax) &&
            (useOpacityVarMin     == obj.useOpacityVarMin) &&
            (opacityVarMin        == obj.opacityVarMin) &&
            (useOpacityVarMax     == obj.useOpacityVarMax) &&
            (opacityVarMax        == obj.opacityVarMax) &&
            (rendererType         == obj.rendererType) &&
            (gradientType         == obj.gradientType));
}
// ****************************************************************************
//  Method:  VolumeAttributes::GradientWontChange
//
//  Purpose:
//    Determines if the gradient can avoid being invalidated.
//
//  Arguments:
//    obj        the attributes to compare with
//
//  Programmer:  Jeremy Meredith
//  Creation:    September 30, 2003
//
//  Modifications:
//    Jeremy Meredith, Thu Oct  2 13:30:29 PDT 2003
//    Added rendererType and gradientType to the list of modifications
//    that require re-calculating the gradient.
//
// ****************************************************************************
:GradientWontChange
Purpose:
Determines if the gradient can avoid being invalidated.

obj        the attributes to compare with

Jeremy Meredith
Creation:    September 30, 2003

Jeremy Meredith, Thu Oct  2 13:30:29 PDT 2003
Added rendererType and gradientType to the list of modifications
that require re-calculating the gradient.
: GradientWontChange Purpose : Determines if the gradient can avoid being invalidated . obj the attributes to compare with Jeremy Meredith Creation : September 30 2003 Jeremy Meredith Thu Oct 2 13 : 30 : 29 PDT 2003 Added rendererType and gradientType to the list of modifications that require re - calculating the gradient .
bool
VolumeAttributes::GradientWontChange(const VolumeAttributes &obj) const
{
    int i;
    bool freeformOpacity_equal = true;
    for(i = 0; i < 256 && freeformOpacity_equal; ++i)
        freeformOpacity_equal = (freeformOpacity[i] == obj.freeformOpacity[i]);
    return ((freeformFlag         == obj.freeformFlag) &&
            (opacityControlPoints == obj.opacityControlPoints) &&
            (resampleTarget       == obj.resampleTarget) &&
            (opacityVariable      == obj.opacityVariable) &&
            freeformOpacity_equal &&
            (useColorVarMin       == obj.useColorVarMin) &&
            (colorVarMin          == obj.colorVarMin) &&
            (useColorVarMax       == obj.useColorVarMax) &&
            (colorVarMax          == obj.colorVarMax) &&
            (useOpacityVarMin     == obj.useOpacityVarMin) &&
            (opacityVarMin        == obj.opacityVarMin) &&
            (useOpacityVarMax     == obj.useOpacityVarMax) &&
            (opacityVarMax        == obj.opacityVarMax) &&
            (rendererType         == obj.rendererType) &&
            (gradientType         == obj.gradientType));
}
bool VolumeAttributes :: GradientWontChange ( const VolumeAttributes & obj ) const { int i ; bool freeformOpacity_equal = true ; for ( i = 0 ; i < 256 && freeformOpacity_equal ; ++ i ) freeformOpacity_equal = ( freeformOpacity [ i ] == obj . freeformOpacity [ i ] ) ; return ( ( freeformFlag == obj . freeformFlag ) && ( opacityControlPoints == obj . opacityControlPoints ) && ( resampleTarget == obj . resampleTarget ) && ( opacityVariable == obj . opacityVariable ) && freeformOpacity_equal && ( useColorVarMin == obj . useColorVarMin ) && ( colorVarMin == obj . colorVarMin ) && ( useColorVarMax == obj . useColorVarMax ) && ( colorVarMax == obj . colorVarMax ) && ( useOpacityVarMin == obj . useOpacityVarMin ) && ( opacityVarMin == obj . opacityVarMin ) && ( useOpacityVarMax == obj . useOpacityVarMax ) && ( opacityVarMax == obj . opacityVarMax ) && ( rendererType == obj . rendererType ) && ( gradientType == obj . gradientType ) ) ; }
Method:  VolumeAttributes::GradientWontChange
Purpose:
Determines if the gradient can avoid being invalidated.
Method : VolumeAttributes :: GradientWontChange Purpose : Determines if the gradient can avoid being invalidated .
// Compare the freeformOpacity arrays. // Create the return value