Plugins/PointSprite/ParaViewPlugin/Qvis/VolumeAttributes.cpp
bool
VolumeAttributes::ChangesRequireRecalculation(const VolumeAttributes &obj) const
{
    if (opacityVariable != obj.opacityVariable)
        return true;
    if (resampleTarget != obj.resampleTarget)
        return true;
    if (rendererType != obj.rendererType)
        return true;
    if (smoothData != obj.smoothData)
        return true;

    if (rendererType == VolumeAttributes::RayCasting)
    {
        if (scaling != obj.scaling)
            return true;
        if (scaling == VolumeAttributes::Skew && skewFactor != obj.skewFactor)
            return true;
    }

    return false;
}
// ****************************************************************************
//  Method:  VolumeAttributes::ChangesRequireRecalculation
//
//  Modifications:
//    Jeremy Meredith, Thu Oct  2 13:27:54 PDT 2003
//    Let changes in rendererType to force a recalculation.  This is 
//    appropriate since the 3D texturing renderer prefers different 
//    dimensions (i.e. powers of two) than the splatting renderer.
//
//    Hank Childs, Mon Dec 15 14:42:26 PST 2003
//    Recalculate if the smooth option was hit.
//
//    Hank Childs, Mon Nov 22 09:37:12 PST 2004
//    Recalculate if the ray trace button was hit.
//
//    Brad Whitlock, Wed Dec 15 09:31:24 PDT 2004
//    Removed doSoftware since it's now part of rendererType.
//
//    Kathleen Bonnell, Thu Mar  3 09:27:40 PST 2005
//    Recalculate if scaling or skewFactor changed for RayCasting.
//
// ****************************************************************************
:ChangesRequireRecalculation
Modifications:
Jeremy Meredith, Thu Oct  2 13:27:54 PDT 2003
Let changes in rendererType to force a recalculation.  This is
appropriate since the 3D texturing renderer prefers different
dimensions  than the splatting renderer.

Hank Childs, Mon Dec 15 14:42:26 PST 2003
Recalculate if the smooth option was hit.

Hank Childs, Mon Nov 22 09:37:12 PST 2004
Recalculate if the ray trace button was hit.

Brad Whitlock, Wed Dec 15 09:31:24 PDT 2004
Removed doSoftware since it's now part of rendererType.

Kathleen Bonnell, Thu Mar  3 09:27:40 PST 2005
Recalculate if scaling or skewFactor changed for RayCasting.
: ChangesRequireRecalculation Modifications : Jeremy Meredith Thu Oct 2 13 : 27 : 54 PDT 2003 Let changes in rendererType to force a recalculation . This is appropriate since the 3D texturing renderer prefers different dimensions than the splatting renderer . Hank Childs Mon Dec 15 14 : 42 : 26 PST 2003 Recalculate if the smooth option was hit . Hank Childs Mon Nov 22 09 : 37 : 12 PST 2004 Recalculate if the ray trace button was hit . Brad Whitlock Wed Dec 15 09 : 31 : 24 PDT 2004 Removed doSoftware since it ' s now part of rendererType . Kathleen Bonnell Thu Mar 3 09 : 27 : 40 PST 2005 Recalculate if scaling or skewFactor changed for RayCasting .
bool
VolumeAttributes::ChangesRequireRecalculation(const VolumeAttributes &obj) const
{
    if (opacityVariable != obj.opacityVariable)
        return true;
    if (resampleTarget != obj.resampleTarget)
        return true;
    if (rendererType != obj.rendererType)
        return true;
    if (smoothData != obj.smoothData)
        return true;
    if (rendererType == VolumeAttributes::RayCasting)
    {
        if (scaling != obj.scaling)
            return true;
        if (scaling == VolumeAttributes::Skew && skewFactor != obj.skewFactor)
            return true;
    }
    return false;
}
bool VolumeAttributes :: ChangesRequireRecalculation ( const VolumeAttributes & obj ) const { if ( opacityVariable != obj . opacityVariable ) return true ; if ( resampleTarget != obj . resampleTarget ) return true ; if ( rendererType != obj . rendererType ) return true ; if ( smoothData != obj . smoothData ) return true ; if ( rendererType == VolumeAttributes :: RayCasting ) { if ( scaling != obj . scaling ) return true ; if ( scaling == VolumeAttributes :: Skew && skewFactor != obj . skewFactor ) return true ; } return false ; }
Method:  VolumeAttributes::ChangesRequireRecalculation
Modifications:
Jeremy Meredith, Thu Oct  2 13:27:54 PDT 2003
Let changes in rendererType to force a recalculation.
Method : VolumeAttributes :: ChangesRequireRecalculation Modifications : Jeremy Meredith Thu Oct 2 13 : 27 : 54 PDT 2003 Let changes in rendererType to force a recalculation .