Commit 24baa9f5 authored by fogal1's avatar fogal1

Made obtaining the spatial extents const.

git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@8005 18c085ea-50e0-402c-830e-de6fd14e8384
parent a94e83a3
......@@ -837,12 +837,17 @@ avtFilter::GetDataExtents(double *outexts, const char *varname)
// Programmer: Hank Childs
// Creation: September 4, 2001
//
// Modifications:
//
// Tom Fogal, Tue Jun 23 20:21:36 MDT 2009
// Marked as const.
//
// ****************************************************************************
bool
avtFilter::TrySpatialExtents(double *outexts)
avtFilter::TrySpatialExtents(double *outexts) const
{
avtDataAttributes &atts = GetInput()->GetInfo().GetAttributes();
const avtDataAttributes &atts = GetInput()->GetInfo().GetAttributes();
//
// Our first preference is for the effective extents.
......@@ -890,7 +895,7 @@ avtFilter::TrySpatialExtents(double *outexts)
// ****************************************************************************
void
avtFilter::GetSpatialExtents(double *newexts)
avtFilter::GetSpatialExtents(double *newexts) const
{
if (TrySpatialExtents(newexts))
{
......@@ -900,7 +905,7 @@ avtFilter::GetSpatialExtents(double *newexts)
return;
}
avtDataAttributes &atts = GetInput()->GetInfo().GetAttributes();
const avtDataAttributes &atts = GetInput()->GetInfo().GetAttributes();
atts.GetCumulativeTrueSpatialExtents()->CopyTo(newexts);
UnifyMinMax(newexts, atts.GetSpatialDimension()*2, 6);
......
......@@ -113,6 +113,9 @@ class avtWebpage;
// Hank Childs, Mon Apr 6 12:58:50 PDT 2009
// Add another method for handling named selections.
//
// Tom Fogal, Tue Jun 23 20:21:15 MDT 2009
// Made spatial extent methods const.
//
// ****************************************************************************
class PIPELINE_API avtFilter
......@@ -180,8 +183,8 @@ class PIPELINE_API avtFilter
const char * = NULL);
void GetDataExtents(double *,
const char * = NULL);
bool TrySpatialExtents(double *);
void GetSpatialExtents(double *);
bool TrySpatialExtents(double *) const;
void GetSpatialExtents(double *) const;
bool TryCurrentDataExtents(double *);
void GetCurrentDataExtents(double *);
bool TryCurrentSpatialExtents(double *);
......@@ -201,7 +204,4 @@ class PIPELINE_API avtFilter
void FinalizeWebpage(void);
};
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment