Commit 8fa24ac8 authored by hrchilds's avatar hrchilds

Update from August 19, 2004

git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@304 18c085ea-50e0-402c-830e-de6fd14e8384
parent 90623cfe
......@@ -86,6 +86,9 @@
# Moved /usr/local/bin ahead of /usr/bin in the PATH so it would get
# the GNU date program.
#
# Hank Childs, Thu Aug 19 16:40:07 PDT 2004
# Add reflect2.py to the skipList for SR-mode.
#
# ----------------------------------------------------------------------------
# list of users who want email every night with the log file
......@@ -215,6 +218,7 @@ modes="serial parallel scalable,parallel"
# set list of tests/modes to skip
skipList="scalable,parallel:tests/hybrid/lineout.py \
scalable,parallel:tests/rendering/volume.py \
scalable,parallel:tests/operators/reflect2.py \
parallel:tests/queries/queryMultiWindow.py \
scalable,parallel:tests/queries/queryMultiWindow.py"
......
#include <InteractorAttributes.h>
#include <DataNode.h>
// ****************************************************************************
// Method: InteractorAttributes::InteractorAttributes
//
// Purpose:
// Constructor for the InteractorAttributes class.
//
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation: Mon Aug 16 11:27:11 PDT 2004
//
// Modifications:
//
// ****************************************************************************
InteractorAttributes::InteractorAttributes() : AttributeSubject("bb")
{
showGuidelines = true;
clampSquare = false;
}
// ****************************************************************************
// Method: InteractorAttributes::InteractorAttributes
//
// Purpose:
// Copy constructor for the InteractorAttributes class.
//
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation: Mon Aug 16 11:27:11 PDT 2004
//
// Modifications:
//
// ****************************************************************************
InteractorAttributes::InteractorAttributes(const InteractorAttributes &obj) : AttributeSubject("bb")
{
showGuidelines = obj.showGuidelines;
clampSquare = obj.clampSquare;
SelectAll();
}
// ****************************************************************************
// Method: InteractorAttributes::~InteractorAttributes
//
// Purpose:
// Destructor for the InteractorAttributes class.
//
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation: Mon Aug 16 11:27:11 PDT 2004
//
// Modifications:
//
// ****************************************************************************
InteractorAttributes::~InteractorAttributes()
{
// nothing here
}
// ****************************************************************************
// Method: InteractorAttributes::operator =
//
// Purpose:
// Assignment operator for the InteractorAttributes class.
//
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation: Mon Aug 16 11:27:11 PDT 2004
//
// Modifications:
//
// ****************************************************************************
void
InteractorAttributes::operator = (const InteractorAttributes &obj)
{
showGuidelines = obj.showGuidelines;
clampSquare = obj.clampSquare;
SelectAll();
}
// ****************************************************************************
// Method: InteractorAttributes::operator ==
//
// Purpose:
// Comparison operator == for the InteractorAttributes class.
//
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation: Mon Aug 16 11:27:11 PDT 2004
//
// Modifications:
//
// ****************************************************************************
bool
InteractorAttributes::operator == (const InteractorAttributes &obj) const
{
// Create the return value
return ((showGuidelines == obj.showGuidelines) &&
(clampSquare == obj.clampSquare));
}
// ****************************************************************************
// Method: InteractorAttributes::operator !=
//
// Purpose:
// Comparison operator != for the InteractorAttributes class.
//
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation: Mon Aug 16 11:27:11 PDT 2004
//
// Modifications:
//
// ****************************************************************************
bool
InteractorAttributes::operator != (const InteractorAttributes &obj) const
{
return !(this->operator == (obj));
}
// ****************************************************************************
// Method: InteractorAttributes::TypeName
//
// Purpose:
// Type name method for the InteractorAttributes class.
//
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation: Mon Aug 16 11:27:11 PDT 2004
//
// Modifications:
//
// ****************************************************************************
const std::string
InteractorAttributes::TypeName() const
{
return "InteractorAttributes";
}
// ****************************************************************************
// Method: InteractorAttributes::CopyAttributes
//
// Purpose:
// CopyAttributes method for the InteractorAttributes class.
//
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation: Mon Aug 16 11:27:11 PDT 2004
//
// Modifications:
//
// ****************************************************************************
bool
InteractorAttributes::CopyAttributes(const AttributeGroup *atts)
{
if(TypeName() != atts->TypeName())
return false;
// Call assignment operator.
const InteractorAttributes *tmp = (const InteractorAttributes *)atts;
*this = *tmp;
return true;
}
// ****************************************************************************
// Method: InteractorAttributes::CreateCompatible
//
// Purpose:
// CreateCompatible method for the InteractorAttributes class.
//
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation: Mon Aug 16 11:27:11 PDT 2004
//
// Modifications:
//
// ****************************************************************************
AttributeSubject *
InteractorAttributes::CreateCompatible(const std::string &tname) const
{
AttributeSubject *retval = 0;
if(TypeName() == tname)
retval = new InteractorAttributes(*this);
// Other cases could go here too.
return retval;
}
// ****************************************************************************
// Method: InteractorAttributes::NewInstance
//
// Purpose:
// NewInstance method for the InteractorAttributes class.
//
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation: Mon Aug 16 11:27:11 PDT 2004
//
// Modifications:
//
// ****************************************************************************
AttributeSubject *
InteractorAttributes::NewInstance(bool copy) const
{
AttributeSubject *retval = 0;
if(copy)
retval = new InteractorAttributes(*this);
else
retval = new InteractorAttributes;
return retval;
}
// ****************************************************************************
// Method: InteractorAttributes::SelectAll
//
// Purpose:
// Selects all attributes.
//
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation: Mon Aug 16 11:27:11 PDT 2004
//
// Modifications:
//
// ****************************************************************************
void
InteractorAttributes::SelectAll()
{
Select(0, (void *)&showGuidelines);
Select(1, (void *)&clampSquare);
}
///////////////////////////////////////////////////////////////////////////////
// Persistence methods
///////////////////////////////////////////////////////////////////////////////
// ****************************************************************************
// Method: InteractorAttributes::CreateNode
//
// Purpose:
// Creates a node called "InteractorAttributes" that has all of the
// InteractorAttributes in it.
//
// Arguments:
// parentNode : The node under which the globalAtts node is created.
// completeSave : Tells the method to save all fields even if they are not
// different.
// forceAdd : Tells the method to add a node to the parent node.
//
// Notes:
//
// Programmer: Kathleen Bonnell
// Creation: August 16, 2004
//
// Modifications:
//
// ****************************************************************************
bool
InteractorAttributes::CreateNode(DataNode *parentNode, bool completeSave, bool forceAdd)
{
if(parentNode == 0)
return false;
bool addToParent = false;
InteractorAttributes defaultObject;
// Create a node for InteractorAttributes.
DataNode *node = new DataNode("InteractorAttributes");
if(completeSave || !FieldsEqual(0, &defaultObject))
{
addToParent = true;
node->AddNode(new DataNode("showGuidelines", showGuidelines));
}
if(completeSave || !FieldsEqual(1, &defaultObject))
{
addToParent = true;
node->AddNode(new DataNode("clampSquare", clampSquare));
}
// Add the node to the parent node.
if(addToParent || forceAdd)
parentNode->AddNode(node);
else
delete node;
return (addToParent || forceAdd);
}
// ****************************************************************************
// Method: InteractorAttributes::SetFromNode
//
// Purpose:
// Looks for a node called "InteractorAttributes" under the parentNode. If
// it is found, then it looks for various properties and sets the
// object's attributes accordingly.
//
// Arguments:
// parentNode : The node to start looking for "InteractorAttributes".
//
// Notes:
//
// Programmer: Kathleen Bonnell
// Creation: August 16, 2004
//
// Modifications:
//
// ****************************************************************************
void
InteractorAttributes::SetFromNode(DataNode *parentNode)
{
if(parentNode == 0)
return;
DataNode *searchNode = parentNode->GetNode("InteractorAttributes");
if(searchNode == 0)
return;
DataNode *node;
if((node = searchNode->GetNode("showGuidelines")) != 0)
SetShowGuidelines(node->AsBool());
if((node = searchNode->GetNode("clampSquare")) != 0)
SetClampSquare(node->AsBool());
}
///////////////////////////////////////////////////////////////////////////////
// Set property methods
///////////////////////////////////////////////////////////////////////////////
void
InteractorAttributes::SetShowGuidelines(bool showGuidelines_)
{
showGuidelines = showGuidelines_;
Select(0, (void *)&showGuidelines);
}
void
InteractorAttributes::SetClampSquare(bool clampSquare_)
{
clampSquare = clampSquare_;
Select(1, (void *)&clampSquare);
}
///////////////////////////////////////////////////////////////////////////////
// Get property methods
///////////////////////////////////////////////////////////////////////////////
bool
InteractorAttributes::GetShowGuidelines() const
{
return showGuidelines;
}
bool
InteractorAttributes::GetClampSquare() const
{
return clampSquare;
}
///////////////////////////////////////////////////////////////////////////////
// Keyframing methods
///////////////////////////////////////////////////////////////////////////////
// ****************************************************************************
// Method: InteractorAttributes::GetFieldName
//
// Purpose:
// This method returns the name of a field given its index.
//
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation: Mon Aug 16 11:27:11 PDT 2004
//
// Modifications:
//
// ****************************************************************************
std::string
InteractorAttributes::GetFieldName(int index) const
{
switch (index)
{
case 0: return "showGuidelines";
case 1: return "clampSquare";
default: return "invalid index";
}
}
// ****************************************************************************
// Method: InteractorAttributes::GetFieldType
//
// Purpose:
// This method returns the type of a field given its index.
//
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation: Mon Aug 16 11:27:11 PDT 2004
//
// Modifications:
//
// ****************************************************************************
AttributeGroup::FieldType
InteractorAttributes::GetFieldType(int index) const
{
switch (index)
{
case 0: return FieldType_bool;
case 1: return FieldType_bool;
default: return FieldType_unknown;
}
}
// ****************************************************************************
// Method: InteractorAttributes::GetFieldTypeName
//
// Purpose:
// This method returns the name of a field type given its index.
//
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation: Mon Aug 16 11:27:11 PDT 2004
//
// Modifications:
//
// ****************************************************************************
std::string
InteractorAttributes::GetFieldTypeName(int index) const
{
switch (index)
{
case 0: return "bool";
case 1: return "bool";
default: return "invalid index";
}
}
// ****************************************************************************
// Method: InteractorAttributes::FieldsEqual
//
// Purpose:
// This method compares two fields and return true if they are equal.
//
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation: Mon Aug 16 11:27:11 PDT 2004
//
// Modifications:
//
// ****************************************************************************
bool
InteractorAttributes::FieldsEqual(int index_, const AttributeGroup *rhs) const
{
const InteractorAttributes &obj = *((const InteractorAttributes*)rhs);
bool retval = false;
switch (index_)
{
case 0:
{ // new scope
retval = (showGuidelines == obj.showGuidelines);
}
break;
case 1:
{ // new scope
retval = (clampSquare == obj.clampSquare);
}
break;
default: retval = false;
}
return retval;
}
///////////////////////////////////////////////////////////////////////////////
// User-defined methods.
///////////////////////////////////////////////////////////////////////////////
Function: CreateNode
Declaration: virtual bool CreateNode(DataNode *node, bool, bool);
Definition:
// ****************************************************************************
// Method: InteractorAttributes::CreateNode
//
// Purpose:
// Creates a node called "InteractorAttributes" that has all of the
// InteractorAttributes in it.
//
// Arguments:
// parentNode : The node under which the globalAtts node is created.
// completeSave : Tells the method to save all fields even if they are not
// different.
// forceAdd : Tells the method to add a node to the parent node.
//
// Notes:
//
// Programmer: Kathleen Bonnell
// Creation: August 16, 2004
//
// Modifications:
//
// ****************************************************************************
bool
InteractorAttributes::CreateNode(DataNode *parentNode, bool completeSave, bool forceAdd)
{
if(parentNode == 0)
return false;
bool addToParent = false;
InteractorAttributes defaultObject;
// Create a node for InteractorAttributes.
DataNode *node = new DataNode("InteractorAttributes");
if(completeSave || !FieldsEqual(0, &defaultObject))
{
addToParent = true;
node->AddNode(new DataNode("showGuidelines", showGuidelines));
}
if(completeSave || !FieldsEqual(1, &defaultObject))
{
addToParent = true;
node->AddNode(new DataNode("clampSquare", clampSquare));
}
// Add the node to the parent node.
if(addToParent || forceAdd)
parentNode->AddNode(node);
else
delete node;
return (addToParent || forceAdd);
}
Function: SetFromNode
Declaration: virtual void SetFromNode(DataNode *node);
Definition:
// ****************************************************************************
// Method: InteractorAttributes::SetFromNode
//
// Purpose:
// Looks for a node called "InteractorAttributes" under the parentNode. If
// it is found, then it looks for various properties and sets the
// object's attributes accordingly.
//
// Arguments:
// parentNode : The node to start looking for "InteractorAttributes".
//
// Notes:
//
// Programmer: Kathleen Bonnell
// Creation: August 16, 2004
//
// Modifications:
//
// ****************************************************************************
void
InteractorAttributes::SetFromNode(DataNode *parentNode)