Commit cf70c929 authored by hrchilds's avatar hrchilds
Browse files

Remove elements that got added to the repo on accident.


git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@12612 18c085ea-50e0-402c-830e-de6fd14e8384
parent 8b7e9f71
/*****************************************************************************
*
* Copyright (c) 2000 - 2010, Lawrence Livermore National Security, LLC
* Produced at the Lawrence Livermore National Laboratory
* LLNL-CODE-442911
* All rights reserved.
*
* This file is part of VisIt. For details, see https://visit.llnl.gov/. The
* full copyright notice is contained in the file COPYRIGHT located at the root
* of the VisIt distribution or at http://www.llnl.gov/visit/copyright.html.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright notice,
* this list of conditions and the disclaimer below.
* - Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the disclaimer (as noted below) in the
* documentation and/or other materials provided with the distribution.
* - Neither the name of the LLNS/LLNL nor the names of its contributors may
* be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL LAWRENCE LIVERMORE NATIONAL SECURITY,
* LLC, THE U.S. DEPARTMENT OF ENERGY OR CONTRIBUTORS BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
* DAMAGE.
*
*****************************************************************************/
#include <Fluxttributes.h>
#include <DataNode.h>
// ****************************************************************************
// Method: Fluxttributes::Fluxttributes
//
// Purpose:
// Init utility for the Fluxttributes class.
//
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation: omitted
//
// Modifications:
//
// ****************************************************************************
void Fluxttributes::Init()
{
weight = false;
Fluxttributes::SelectAll();
}
// ****************************************************************************
// Method: Fluxttributes::Fluxttributes
//
// Purpose:
// Copy utility for the Fluxttributes class.
//
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation: omitted
//
// Modifications:
//
// ****************************************************************************
void Fluxttributes::Copy(const Fluxttributes &obj)
{
flowField = obj.flowField;
weight = obj.weight;
weightField = obj.weightField;
Fluxttributes::SelectAll();
}
// Type map format string
const char *Fluxttributes::TypeMapFormatString = FLUXTTRIBUTES_TMFS;
const AttributeGroup::private_tmfs_t Fluxttributes::TmfsStruct = {FLUXTTRIBUTES_TMFS};
// ****************************************************************************
// Method: Fluxttributes::Fluxttributes
//
// Purpose:
// Default constructor for the Fluxttributes class.
//
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation: omitted
//
// Modifications:
//
// ****************************************************************************
Fluxttributes::Fluxttributes() :
AttributeSubject(Fluxttributes::TypeMapFormatString),
flowField("default"), weightField("default")
{
Fluxttributes::Init();
}
// ****************************************************************************
// Method: Fluxttributes::Fluxttributes
//
// Purpose:
// Constructor for the derived classes of Fluxttributes class.
//
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation: omitted
//
// Modifications:
//
// ****************************************************************************
Fluxttributes::Fluxttributes(private_tmfs_t tmfs) :
AttributeSubject(tmfs.tmfs),
flowField("default"), weightField("default")
{
Fluxttributes::Init();
}
// ****************************************************************************
// Method: Fluxttributes::Fluxttributes
//
// Purpose:
// Copy constructor for the Fluxttributes class.
//
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation: omitted
//
// Modifications:
//
// ****************************************************************************
Fluxttributes::Fluxttributes(const Fluxttributes &obj) :
AttributeSubject(Fluxttributes::TypeMapFormatString)
{
Fluxttributes::Copy(obj);
}
// ****************************************************************************
// Method: Fluxttributes::Fluxttributes
//
// Purpose:
// Copy constructor for derived classes of the Fluxttributes class.
//
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation: omitted
//
// Modifications:
//
// ****************************************************************************
Fluxttributes::Fluxttributes(const Fluxttributes &obj, private_tmfs_t tmfs) :
AttributeSubject(tmfs.tmfs)
{
Fluxttributes::Copy(obj);
}
// ****************************************************************************
// Method: Fluxttributes::~Fluxttributes
//
// Purpose:
// Destructor for the Fluxttributes class.
//
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation: omitted
//
// Modifications:
//
// ****************************************************************************
Fluxttributes::~Fluxttributes()
{
// nothing here
}
// ****************************************************************************
// Method: Fluxttributes::operator =
//
// Purpose:
// Assignment operator for the Fluxttributes class.
//
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation: omitted
//
// Modifications:
//
// ****************************************************************************
Fluxttributes&
Fluxttributes::operator = (const Fluxttributes &obj)
{
if (this == &obj) return *this;
Fluxttributes::Copy(obj);
return *this;
}
// ****************************************************************************
// Method: Fluxttributes::operator ==
//
// Purpose:
// Comparison operator == for the Fluxttributes class.
//
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation: omitted
//
// Modifications:
//
// ****************************************************************************
bool
Fluxttributes::operator == (const Fluxttributes &obj) const
{
// Create the return value
return ((flowField == obj.flowField) &&
(weight == obj.weight) &&
(weightField == obj.weightField));
}
// ****************************************************************************
// Method: Fluxttributes::operator !=
//
// Purpose:
// Comparison operator != for the Fluxttributes class.
//
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation: omitted
//
// Modifications:
//
// ****************************************************************************
bool
Fluxttributes::operator != (const Fluxttributes &obj) const
{
return !(this->operator == (obj));
}
// ****************************************************************************
// Method: Fluxttributes::TypeName
//
// Purpose:
// Type name method for the Fluxttributes class.
//
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation: omitted
//
// Modifications:
//
// ****************************************************************************
const std::string
Fluxttributes::TypeName() const
{
return "Fluxttributes";
}
// ****************************************************************************
// Method: Fluxttributes::CopyAttributes
//
// Purpose:
// CopyAttributes method for the Fluxttributes class.
//
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation: omitted
//
// Modifications:
//
// ****************************************************************************
bool
Fluxttributes::CopyAttributes(const AttributeGroup *atts)
{
if(TypeName() != atts->TypeName())
return false;
// Call assignment operator.
const Fluxttributes *tmp = (const Fluxttributes *)atts;
*this = *tmp;
return true;
}
// ****************************************************************************
// Method: Fluxttributes::CreateCompatible
//
// Purpose:
// CreateCompatible method for the Fluxttributes class.
//
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation: omitted
//
// Modifications:
//
// ****************************************************************************
AttributeSubject *
Fluxttributes::CreateCompatible(const std::string &tname) const
{
AttributeSubject *retval = 0;
if(TypeName() == tname)
retval = new Fluxttributes(*this);
// Other cases could go here too.
return retval;
}
// ****************************************************************************
// Method: Fluxttributes::NewInstance
//
// Purpose:
// NewInstance method for the Fluxttributes class.
//
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation: omitted
//
// Modifications:
//
// ****************************************************************************
AttributeSubject *
Fluxttributes::NewInstance(bool copy) const
{
AttributeSubject *retval = 0;
if(copy)
retval = new Fluxttributes(*this);
else
retval = new Fluxttributes;
return retval;
}
// ****************************************************************************
// Method: Fluxttributes::SelectAll
//
// Purpose:
// Selects all attributes.
//
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation: omitted
//
// Modifications:
//
// ****************************************************************************
void
Fluxttributes::SelectAll()
{
Select(ID_flowField, (void *)&flowField);
Select(ID_weight, (void *)&weight);
Select(ID_weightField, (void *)&weightField);
}
///////////////////////////////////////////////////////////////////////////////
// Set property methods
///////////////////////////////////////////////////////////////////////////////
void
Fluxttributes::SetFlowField(const std::string &flowField_)
{
flowField = flowField_;
Select(ID_flowField, (void *)&flowField);
}
void
Fluxttributes::SetWeight(bool weight_)
{
weight = weight_;
Select(ID_weight, (void *)&weight);
}
void
Fluxttributes::SetWeightField(const std::string &weightField_)
{
weightField = weightField_;
Select(ID_weightField, (void *)&weightField);
}
///////////////////////////////////////////////////////////////////////////////
// Get property methods
///////////////////////////////////////////////////////////////////////////////
const std::string &
Fluxttributes::GetFlowField() const
{
return flowField;
}
std::string &
Fluxttributes::GetFlowField()
{
return flowField;
}
bool
Fluxttributes::GetWeight() const
{
return weight;
}
const std::string &
Fluxttributes::GetWeightField() const
{
return weightField;
}
std::string &
Fluxttributes::GetWeightField()
{
return weightField;
}
///////////////////////////////////////////////////////////////////////////////
// Select property methods
///////////////////////////////////////////////////////////////////////////////
void
Fluxttributes::SelectFlowField()
{
Select(ID_flowField, (void *)&flowField);
}
void
Fluxttributes::SelectWeightField()
{
Select(ID_weightField, (void *)&weightField);
}
///////////////////////////////////////////////////////////////////////////////
// Keyframing methods
///////////////////////////////////////////////////////////////////////////////
// ****************************************************************************
// Method: Fluxttributes::GetFieldName
//
// Purpose:
// This method returns the name of a field given its index.
//
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation: omitted
//
// Modifications:
//
// ****************************************************************************
std::string
Fluxttributes::GetFieldName(int index) const
{
switch (index)
{
case ID_flowField: return "flowField";
case ID_weight: return "weight";
case ID_weightField: return "weightField";
default: return "invalid index";
}
}
// ****************************************************************************
// Method: Fluxttributes::GetFieldType
//
// Purpose:
// This method returns the type of a field given its index.
//
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation: omitted
//
// Modifications:
//
// ****************************************************************************
AttributeGroup::FieldType
Fluxttributes::GetFieldType(int index) const
{
switch (index)
{
case ID_flowField: return FieldType_variablename;
case ID_weight: return FieldType_bool;
case ID_weightField: return FieldType_variablename;
default: return FieldType_unknown;
}
}
// ****************************************************************************
// Method: Fluxttributes::GetFieldTypeName
//
// Purpose:
// This method returns the name of a field type given its index.
//
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation: omitted
//
// Modifications:
//
// ****************************************************************************
std::string
Fluxttributes::GetFieldTypeName(int index) const
{
switch (index)
{
case ID_flowField: return "variablename";
case ID_weight: return "bool";
case ID_weightField: return "variablename";
default: return "invalid index";
}
}
// ****************************************************************************
// Method: Fluxttributes::FieldsEqual
//
// Purpose:
// This method compares two fields and return true if they are equal.
//
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation: omitted
//
// Modifications:
//
// ****************************************************************************
bool
Fluxttributes::FieldsEqual(int index_, const AttributeGroup *rhs) const
{
const Fluxttributes &obj = *((const Fluxttributes*)rhs);
bool retval = false;
switch (index_)
{
case ID_flowField:
{ // new scope
retval = (flowField == obj.flowField);
}
break;
case ID_weight:
{ // new scope
retval = (weight == obj.weight);
}
break;
case ID_weightField:
{ // new scope
retval = (weightField == obj.weightField);
}
break;
default: retval = false;
}
return retval;
}
///////////////////////////////////////////////////////////////////////////////
// User-defined methods.
///////////////////////////////////////////////////////////////////////////////
/*****************************************************************************
*
* Copyright (c) 2000 - 2010, Lawrence Livermore National Security, LLC
* Produced at the Lawrence Livermore National Laboratory
* LLNL-CODE-442911
* All rights reserved.
*
* This file is part of VisIt. For details, see https://visit.llnl.gov/. The
* full copyright notice is contained in the file COPYRIGHT located at the root
* of the VisIt distribution or at http://www.llnl.gov/visit/copyright.html.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright notice,
* this list of conditions and the disclaimer below.
* - Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the disclaimer (as noted below) in the
* documentation and/or other materials provided with the distribution.
* - Neither the name of the LLNS/LLNL nor the names of its contributors may
* be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL LAWRENCE LIVERMORE NATIONAL SECURITY,
* LLC, THE U.S. DEPARTMENT OF ENERGY OR CONTRIBUTORS BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH