Commit 15fb2273 authored by hrchilds's avatar hrchilds

Update from October 13, 2005

git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@555 18c085ea-50e0-402c-830e-de6fd14e8384
parent 94fa11b8
......@@ -105,8 +105,8 @@ DEFAULT_NETCDF_LIB=/usr/gapps/visit/netcdf/3.6.0/linux_rhel3_gcc_3.2.3/lib
##
## Silo
##
DEFAULT_SILO_INCLUDES=/usr/gapps/silo/4.5-pre9/linux_rhel3_gcc_3.2.3/include
DEFAULT_SILO_LIBRARY=/usr/gapps/silo/4.5-pre9/linux_rhel3_gcc_3.2.3/lib
DEFAULT_SILO_INCLUDES=/usr/gapps/silo/4.5-pre11/linux_rhel3_gcc_3.2.3/include
DEFAULT_SILO_LIBRARY=/usr/gapps/silo/4.5-pre11/linux_rhel3_gcc_3.2.3/lib
##
## ViSUS
......
......@@ -105,8 +105,8 @@ DEFAULT_NETCDF_LIB=/usr/gapps/visit/netcdf/3.6.0/linux_rhel3_gcc_3.2.3/lib
##
## Silo
##
DEFAULT_SILO_INCLUDES=/usr/gapps/silo/4.5-pre9/linux_rhel3_gcc_3.2.3/include
DEFAULT_SILO_LIBRARY=/usr/gapps/silo/4.5-pre9/linux_rhel3_gcc_3.2.3/lib
DEFAULT_SILO_INCLUDES=/usr/gapps/silo/4.5-pre11/linux_rhel3_gcc_3.2.3/include
DEFAULT_SILO_LIBRARY=/usr/gapps/silo/4.5-pre11/linux_rhel3_gcc_3.2.3/lib
##
## ViSUS
......
......@@ -105,8 +105,8 @@ DEFAULT_NETCDF_LIB=/usr/gapps/visit/netcdf/3.6.0/linux_rhel3_gcc_3.2.3/lib
##
## Silo
##
DEFAULT_SILO_INCLUDES=/usr/gapps/silo/4.5-pre9/linux_rhel3_gcc_3.2.3/include
DEFAULT_SILO_LIBRARY=/usr/gapps/silo/4.5-pre9/linux_rhel3_gcc_3.2.3/lib
DEFAULT_SILO_INCLUDES=/usr/gapps/silo/4.5-pre11/linux_rhel3_gcc_3.2.3/include
DEFAULT_SILO_LIBRARY=/usr/gapps/silo/4.5-pre11/linux_rhel3_gcc_3.2.3/lib
##
## ViSUS
......
......@@ -105,8 +105,8 @@ DEFAULT_NETCDF_LIB=/usr/gapps/visit/netcdf/3.6.0/linux_rhel3_gcc_3.2.3/lib
##
## Silo
##
DEFAULT_SILO_INCLUDES=/usr/gapps/silo/4.5-pre9/linux_rhel3_gcc_3.2.3/include
DEFAULT_SILO_LIBRARY=/usr/gapps/silo/4.5-pre9/linux_rhel3_gcc_3.2.3/lib
DEFAULT_SILO_INCLUDES=/usr/gapps/silo/4.5-pre11/linux_rhel3_gcc_3.2.3/include
DEFAULT_SILO_LIBRARY=/usr/gapps/silo/4.5-pre11/linux_rhel3_gcc_3.2.3/lib
##
## ViSUS
......
......@@ -105,8 +105,8 @@ DEFAULT_NETCDF_LIB=/usr/gapps/visit/netcdf/3.6.0/linux_rhel3_gcc_3.2.3/lib
##
## Silo
##
DEFAULT_SILO_INCLUDES=/usr/gapps/silo/4.5-pre9/linux_rhel3_gcc_3.2.3/include
DEFAULT_SILO_LIBRARY=/usr/gapps/silo/4.5-pre9/linux_rhel3_gcc_3.2.3/lib
DEFAULT_SILO_INCLUDES=/usr/gapps/silo/4.5-pre11/linux_rhel3_gcc_3.2.3/include
DEFAULT_SILO_LIBRARY=/usr/gapps/silo/4.5-pre11/linux_rhel3_gcc_3.2.3/lib
##
## ViSUS
......
......@@ -105,8 +105,8 @@ DEFAULT_NETCDF_LIB=/usr/gapps/visit/netcdf/3.6.0/linux_rhel3_gcc_3.2.3/lib
##
## Silo
##
DEFAULT_SILO_INCLUDES=/usr/gapps/silo/4.5-pre9/linux_rhel3_gcc_3.2.3/include
DEFAULT_SILO_LIBRARY=/usr/gapps/silo/4.5-pre9/linux_rhel3_gcc_3.2.3/lib
DEFAULT_SILO_INCLUDES=/usr/gapps/silo/4.5-pre11/linux_rhel3_gcc_3.2.3/include
DEFAULT_SILO_LIBRARY=/usr/gapps/silo/4.5-pre11/linux_rhel3_gcc_3.2.3/lib
##
## ViSUS
......
......@@ -105,8 +105,8 @@ DEFAULT_NETCDF_LIB=/usr/gapps/visit/netcdf/3.6.0/linux_rhel3_gcc_3.2.3/lib
##
## Silo
##
DEFAULT_SILO_INCLUDES=/usr/gapps/silo/4.5-pre9/linux_rhel3_gcc_3.2.3/include
DEFAULT_SILO_LIBRARY=/usr/gapps/silo/4.5-pre9/linux_rhel3_gcc_3.2.3/lib
DEFAULT_SILO_INCLUDES=/usr/gapps/silo/4.5-pre11/linux_rhel3_gcc_3.2.3/include
DEFAULT_SILO_LIBRARY=/usr/gapps/silo/4.5-pre11/linux_rhel3_gcc_3.2.3/lib
##
## ViSUS
......
......@@ -105,8 +105,8 @@ DEFAULT_NETCDF_LIB=/usr/gapps/visit/netcdf/3.6.0/linux_rhel3_gcc_3.2.3/lib
##
## Silo
##
DEFAULT_SILO_INCLUDES=/usr/gapps/silo/4.5-pre9/linux_rhel3_gcc_3.2.3/include
DEFAULT_SILO_LIBRARY=/usr/gapps/silo/4.5-pre9/linux_rhel3_gcc_3.2.3/lib
DEFAULT_SILO_INCLUDES=/usr/gapps/silo/4.5-pre11/linux_rhel3_gcc_3.2.3/include
DEFAULT_SILO_LIBRARY=/usr/gapps/silo/4.5-pre11/linux_rhel3_gcc_3.2.3/lib
##
## ViSUS
......
......@@ -105,8 +105,8 @@ DEFAULT_NETCDF_LIB=/usr/gapps/visit/netcdf/3.6.0/linux_rhel3_gcc_3.2.3/lib
##
## Silo
##
DEFAULT_SILO_INCLUDES=/usr/gapps/silo/4.5-pre9/linux_rhel3_gcc_3.2.3/include
DEFAULT_SILO_LIBRARY=/usr/gapps/silo/4.5-pre9/linux_rhel3_gcc_3.2.3/lib
DEFAULT_SILO_INCLUDES=/usr/gapps/silo/4.5-pre11/linux_rhel3_gcc_3.2.3/include
DEFAULT_SILO_LIBRARY=/usr/gapps/silo/4.5-pre11/linux_rhel3_gcc_3.2.3/lib
##
## ViSUS
......
......@@ -17030,6 +17030,7 @@ DATABASE_FILES="databases/Makefile"
DATA_FILES="data/Makefile"
SIMULATION_PROTOTYPE_FILES="sim/Makefile"
CQSCORE_FILES="cqscore/Makefile"
if test "$enable_scripting" = "yes"; then
VISITPY_FILES="visitpy/Makefile"
......@@ -17048,7 +17049,7 @@ LAUNCHER_FILES="launcher/Makefile
launcher/proxy/Makefile
launcher/main/Makefile"
ac_config_files="$ac_config_files $STANDARD_FILES $GUI_FILES $HELP_FILES $WINUTIL_FILES $VIEWER_FILES $ENGINE_FILES $MDSERVER_FILES $LAUNCHER_FILES $COMMON_FILES $TOOLS_FILES $VISIT_VTK_FILES $VTKQT_FILES $COMPONENT_FILES $PLOT_FILES $OPERATOR_FILES $DATABASE_FILES $DATA_FILES $VISITPY_FILES $SIMULATION_PROTOTYPE_FILES $JAVA_FILES"
ac_config_files="$ac_config_files $STANDARD_FILES $GUI_FILES $HELP_FILES $WINUTIL_FILES $VIEWER_FILES $ENGINE_FILES $MDSERVER_FILES $LAUNCHER_FILES $COMMON_FILES $TOOLS_FILES $VISIT_VTK_FILES $VTKQT_FILES $COMPONENT_FILES $PLOT_FILES $OPERATOR_FILES $DATABASE_FILES $DATA_FILES $VISITPY_FILES $SIMULATION_PROTOTYPE_FILES $CQSCORE_FILES $JAVA_FILES"
ac_config_commands="$ac_config_commands default"
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
......@@ -17595,6 +17596,7 @@ do
"$DATA_FILES" ) CONFIG_FILES="$CONFIG_FILES $DATA_FILES" ;;
"$VISITPY_FILES" ) CONFIG_FILES="$CONFIG_FILES $VISITPY_FILES" ;;
"$SIMULATION_PROTOTYPE_FILES" ) CONFIG_FILES="$CONFIG_FILES $SIMULATION_PROTOTYPE_FILES" ;;
"$CQSCORE_FILES" ) CONFIG_FILES="$CONFIG_FILES $CQSCORE_FILES" ;;
"$JAVA_FILES" ) CONFIG_FILES="$CONFIG_FILES $JAVA_FILES" ;;
"default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
"include/visit-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/visit-config.h" ;;
......@@ -18407,6 +18409,7 @@ fi
#
(cd include && ${MAKE-make})
(cd lib && ${MAKE-make})
(cd bin && ${MAKE-make})
rm -f $TOPDIR/exe/xml2makefile
(cd tools/xml && ${MAKE-make} $TOPDIR/exe/xml2makefile)
......
......@@ -568,6 +568,10 @@ dnl Kathleen Bonnell, Thu Sep 22 16:49:12 PDT 2005
dnl Added 'vtkexpat' to lightweight libs, so VTK XML file format can
dnl link properly to mdserver.
dnl
dnl Jeremy Meredith, Thu Oct 13 13:55:32 PDT 2005
dnl Added cqscore, the tool for scoring tickets. Also forced a make on
dnl the bin directory before exiting configure.
dnl
dnl --------------------------------------------------------------------------
dnl
......@@ -3239,6 +3243,7 @@ DATABASE_FILES="databases/Makefile"
DATA_FILES="data/Makefile"
SIMULATION_PROTOTYPE_FILES="sim/Makefile"
CQSCORE_FILES="cqscore/Makefile"
if test "$enable_scripting" = "yes"; then
VISITPY_FILES="visitpy/Makefile"
......@@ -3276,6 +3281,7 @@ AC_OUTPUT($STANDARD_FILES
$DATA_FILES
$VISITPY_FILES
$SIMULATION_PROTOTYPE_FILES
$CQSCORE_FILES
$JAVA_FILES,
echo timestamp > include/stamp-h)
......@@ -3285,6 +3291,7 @@ AC_OUTPUT($STANDARD_FILES
#
(cd include && ${MAKE-make})
(cd lib && ${MAKE-make})
(cd bin && ${MAKE-make})
rm -f $TOPDIR/exe/xml2makefile
(cd tools/xml && ${MAKE-make} $TOPDIR/exe/xml2makefile)
......
This diff is collapsed.
#ifndef CQ_SCORE_H
#define CQ_SCORE_H
#include <qmainwindow.h>
#include <qstring.h>
class QButtonGroup;
class QComboBox;
class QLineEdit;
class QListView;
class QListViewItem;
class QTextEdit;
#include <vector>
// ****************************************************************************
// Class: CQScore
//
// Purpose:
// Main window for the clearquest scoring tool.
//
// Programmer: Jeremy Meredith
// Creation: July 25, 2005
//
// ****************************************************************************
class CQScore : public QMainWindow
{
Q_OBJECT
public:
CQScore(QWidget *p, const QString &n);
public slots:
void saveExcel();
void exportHTML();
void writeCurve();
void CalculatePercentile(class ResultData*);
void RepopulateResults();
void PopulateResults();
void PopulatePercentileCurve();
void PopulatePercentileCurve(std::vector<float>&);
void PopulateSingleResultText(QListViewItem*);
void PopulateScoringRuleChoices();
protected:
private:
QLineEdit *userEdit;
QLineEdit *passEdit;
QComboBox *dbCombo;
QComboBox *scoreRuleCombo;
QButtonGroup *scoreGroup;
QLineEdit *projectEdit;
QLineEdit *dateEdit;
QLineEdit *stateEdit;
QLineEdit *vertgtEdit;
QLineEdit *verresEdit;
QLineEdit *ownerEdit;
QLineEdit *idEdit;
QListView *resultList;
QTextEdit *resultText;
};
#endif
# Copyright 2000 - 2001
# The Regents of the University of California.
# All rights reserved.
#
# This work was produced at the University of California, Lawrence Livermore
# National Laboratory (UC LLNL) under contract no. W-7405-ENG-48 (Contract
# 48) between the U.S. Department of Energy (DOE) and The Regents of the
# University of California (University) for the operation of UC LLNL.
# Copyright is reserved to the University for purposes of controlled
# dissemination, commercialization through formal licensing, or other
# disposition under terms of Contract 48; DOE policies, regulations and
# orders; and U.S. statutes. The rights of the Federal Government are
# reserved under Contract 48 subject to the restrictions agreed upon by DOE
# and University.
#
# DISCLAIMER
#
# This software was prepared as an account of work sponsored by an agency of
# the United States Government. Neither the United States Government nor the
# University of California nor any of their employees, makes any warranty,
# express or implied, or assumes any liability or responsiblity for the
# accuracy, completeness, or usefullness of any information, apparatus,
# product, or process disclosed, or represents that its use would not infringe
# privately owned rights. Reference herein to any specific commercial
# products, process, or service by trade name, trademark, manufacturer, or
# otherwise, does not necessarily constitute or imply its endorsement,
# recommendation, or favoring by the United States Government or the
# University of California. The views and opinions of authors expressed herein
# do not necessarily state or reflect those of the United States Government or
# the University of California, and shall not be used for advertising or
# product endorsement purposes.
#
# Programmer: Jeremy Meredith
# Date: October 13, 2005
#
# Modifications:
#
##############################################################################
# Programs and options
# --------------------
@SET_MAKE@
@VARIABLES@
LIBS=@QT_LIBS@ $(X_LIBS) @LIBS@
LDFLAGS=@QT_LDFLAGS@ @LDFLAGS@
LIBDEP=
CXXFLAGS=@CXXFLAGS@ @QT_CXXFLAGS@
CPPFLAGS=@CPPFLAGS@ -I$(TOPDIR)/include/visit -I.
MOC=@QT_MOC@
# Files
# -----
HDRMOC = CQScore.h
HDR = $(HDRMOC)
SRC = $(HDRMOC:.h=.C) \
main.C
# Derived objects
# ---------------
SRCMOC=$(HDRMOC:.h=_moc.C)
OBJMOC=$(SRCMOC:.C=.o)
OBJ=$(SRC:.C=.o) $(OBJMOC)
DISTRIB=
# Standard targets
# ----------------
all: cqscore
install: install_bin
clean:
$(RM) $(OBJ) $(SRCMOC) cqscore
# Other targets
# -------------
cqscore: $(OBJ)
$(CXX) -o $@ $(OBJ) $(LDFLAGS) $(LIBS)
moc: $(SRCMOC)
# Source file specific rules
# --------------------------
${SRCMOC}:
${MOC} ${@:_moc.C=.h} > $@
# Automatic dependency stuff
# --------------------------
@TARGETS@
#! /bin/env cqperl
use CQPerlExt;
my $user = "";
my $pass = "";
my $output = "";
my $db = "";
if ($#ARGV == -1) {
print "\nThis script lists available scoring rules.\n";
print "\nRequired command line arguments:\n";
print "\t-u <user> : User login\n";
print "\t-p <pass> : User password\n";
print "\t-db <db> : Database\n";
print "Optional command line arguments:\n";
print "\t-d : Additional debug info\n";
print "\t-o <file> : Write tab-delimited file\n";
exit(0);
}
$debug = 0;
# Get command line options
while (@ARGV) {
$_ = shift @ARGV;
if ( m/^\-[hH]$/ ) { # -h... or -H...
&usage;
exit(0);
}
elsif ( m/^-u$/ ) {
$user = shift @ARGV;
}
elsif ( m/^-p$/ ) {
$pass = shift @ARGV;
}
elsif ( m/^\-o$/ ) {
$output = shift @ARGV;
}
elsif ( m/^-db$/ ) {
$db = shift @ARGV;
}
elsif ( m/^-d$/) {
$debug = 1;
}
else {
die "Unrecognized argument: '$_'\n";
}
}
if ($debug) {
open(DEBUG, ">-");
}
else {
open(DEBUG, ">/dev/null");
}
if (length($user) == 0) {
print "Must supply username (-u)\n";
exit(-1);
}
if (length($pass) == 0) {
print "Must supply password (-p)\n";
exit(-2);
}
# Open the ClearQuest session
my $session = CQSession::Build();
# Login
$session->UserLogon($user, $pass, $db, "");
# Query for all records resolved on the given branch
my $querydef = $session->BuildQuery("ScoringRule");
$querydef->BuildField("Name");
$querydef->BuildField("Description");
$querydef->BuildField("DefaultCustFactor");
$querydef->BuildField("LikelihoodPower");
$querydef->BuildField("SeriousnessScale");
$querydef->BuildField("UserImprovementScale");
$querydef->BuildField("DeveloperImprovementScale");
$querydef->BuildField("SeriousnessPower");
$querydef->BuildField("UserImprovementPower");
$querydef->BuildField("DeveloperImprovementPower");
$querydef->BuildField("TaskCostScale0");
$querydef->BuildField("TaskCostScale1");
$querydef->BuildField("TaskCostScale2");
$querydef->BuildField("TaskCostScale3");
$querydef->BuildField("TaskCostScale4");
$querydef->BuildField("TaskCostScale5");
$querydef->BuildField("ToolGrowthMultiplier");
$querydef->BuildField("CustomerFactorWeight");
$querydef->BuildField("ImportanceFactorWeight");
$querydef->BuildField("FinalAveragingPower");
$querydef->BuildField("WeightByTaskCost");
# If they specified '*' as the owner, then don't add in a
# query on that string
my $resultset = $session->BuildResultSet($querydef);
$resultset->Execute();
## ---------------------------------------------------------------------------
## ---------------------------------------------------------------------------
if ($output ne "")
{
open(OUTPUT, ">$output");
}
## ---------------------------------------------------------------------------
## ---------------------------------------------------------------------------
# Iterate over the list and set the resolved field
while (($resultset->MoveNext()) == 1) {
$name = $resultset->GetColumnValue(1);
$default_customer_factor = $resultset->GetColumnValue(3);
$likelihood_power = $resultset->GetColumnValue(4);
$seriousness_scale = $resultset->GetColumnValue(5);
$user_improve_scale = $resultset->GetColumnValue(6);
$devel_improve_scale = $resultset->GetColumnValue(7);
$seriousness_power = $resultset->GetColumnValue(8);
$user_improve_power = $resultset->GetColumnValue(9);
$devel_improve_power = $resultset->GetColumnValue(10);
@taskcost_scale =($resultset->GetColumnValue(11),
$resultset->GetColumnValue(12),
$resultset->GetColumnValue(13),
$resultset->GetColumnValue(14),
$resultset->GetColumnValue(15),
$resultset->GetColumnValue(16));
$toolgrowth_multiplier = $resultset->GetColumnValue(17);
$customer_factor_weight = $resultset->GetColumnValue(18);
$importance_factor_weight = $resultset->GetColumnValue(19);
$final_averaging_power = $resultset->GetColumnValue(20);
$weight_by_task_cost = $resultset->GetColumnValue(21);
print DEBUG "\n";
print DEBUG "NAME = \"$name\"\n";
print DEBUG " default_customer_factor = $default_customer_factor\n";
print DEBUG " likelihood_power = $likelihood_power\n";
print DEBUG " seriousness_scale = $seriousness_scale\n";
print DEBUG " user_improve_scale = $user_improve_scale\n";
print DEBUG " devel_improve_scale = $devel_improve_scale\n";
print DEBUG " seriousness_power = $seriousness_power\n";
print DEBUG " user_improve_power = $user_improve_power\n";
print DEBUG " devel_improve_power = $devel_improve_power\n";
print DEBUG " taskcost_scale = (@taskcost_scale)\n";
print DEBUG " toolgrowth_multiplier = $toolgrowth_multiplier\n";
print DEBUG " customer_factor_weight = $customer_factor_weight\n";
print DEBUG " importance_factor_weight = $importance_factor_weight\n";
print DEBUG " final_averaging_power = $final_averaging_power\n";
print DEBUG " weight_by_task_cost = $weight_by_task_cost\n";
if ($output ne "")
{
for ($i = 1 ; $i <= $resultset->GetNumberOfColumns() ; $i++)
{
$str = $resultset->GetColumnValue($i);
$str =~ s/\t/\ /; # get rid of tabs, as we're using them as delimiters
$str =~ s/\r//; # get rid of ^M's, too
print OUTPUT $str."\t";
}
print OUTPUT "\n";
}
elsif (! $debug)
{
print "$name\n";
}
}
if ($output ne "")
{
close(OUTPUT);
}
# Close up the session
CQSession::Unbuild($session);
#include <qapplication.h>
#include <qstring.h>
#include <visitstream.h>
#include "CQScore.h"
// ****************************************************************************
// Programmer: Jeremy Meredith
// Creation: July 25, 2005
// ****************************************************************************
int main( int argc, char **argv )
{
QApplication::setColorSpec(QApplication::ManyColor);
QApplication *a = new QApplication(argc, argv);
CQScore *w;
w = new CQScore(NULL, "CQScore");
a->setMainWidget(w);
w->show();
try
{
return a->exec();
}
catch (const char *s)
{
cerr << "ERROR: " << s << endl;
exit(-1);
}
catch (const QString &s)
{
cerr << "ERROR: " << s << endl;
exit(-1);
}
}
This diff is collapsed.
Function: ChangesRequireRecalculation
Declaration: bool ChangesRequireRecalculation(const CracksClipperAttributes &) const;
Definition:
// ****************************************************************************
// Modifications:
//
// ****************************************************************************
bool
CracksClipperAttributes::ChangesRequireRecalculation(const CracksClipperAttributes &obj) const
{
return true;
}
<?xml version="1.0"?>
<Plugin name="CracksClipper" type="operator" label="CracksClipper" version="1.0" enabled="false" mdspecificcode="false" onlyengine="false" noengine="false">
<Files components="V">
avtCracksClipperFilter.C vtkCracksClipper.C vtkCrackWidthFilter.C
</Files>
<Files components="E">
avtCracksClipperFilter.C vtkCracksClipper.C vtkCrackWidthFilter.C
</Files>
<Attribute name="CracksClipperAttributes" purpose="Attributes for the cracks clipper operator" persistent="true" codefile="CracksClipper.code">
<Field name="crack1Var" label="Crack 1 Variable" type="string">
crack1_dir
</Field>
<Field name="crack2Var" label="Crack 2 Variable" type="string">
crack2_dir
</Field>
<Field name="crack3Var" label="Crack 3 Variable" type="string">
crack3_dir
</Field>
<Field name="strainVar" label="Strain Variable" type="string">
void_strain_ten
</Field>
<Field name="useCrack1" label="Use Crack 1" type="bool">
true
</Field>
<Field name="useCrack2" label="Use Crack 2" type="bool">
true
</Field>
<Field name="useCrack3" label="Use Crack 3" type="bool">
true
</Field>
<Function name="ChangesRequireRecalculation" user="true" member="true">
</Function>
</Attribute>
</Plugin>
This diff is collapsed.
#ifndef CRACKSCLIPPERATTRIBUTES_H
#define CRACKSCLIPPERATTRIBUTES_H
#include <string>
#include <AttributeSubject.h>
// ****************************************************************************
// Class: CracksClipperAttributes
//
// Purpose:
// Attributes for the cracks clipper operator
//
// Notes: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation: Thu Oct 13 11:14:38 PDT 2005
//
// Modifications:
//
// ****************************************************************************
class CracksClipperAttributes : public AttributeSubject
{
public:
CracksClipperAttributes();
CracksClipperAttributes(const CracksClipperAttributes &obj);
virtual ~CracksClipperAttributes();
virtual CracksClipperAttributes& operator = (const CracksClipperAttributes &obj);
virtual bool operator == (const CracksClipperAttributes &obj) const;
virtual bool operator != (const CracksClipperAttributes &obj) const;
virtual const std::string TypeName() const;
virtual bool CopyAttributes(const AttributeGroup *);
virtual AttributeSubject *CreateCompatible(const std::string &) const;
virtual AttributeSubject *NewInstance(bool) const;
// Property selection methods
virtual void SelectAll();
void SelectCrack1Var();
void SelectCrack2Var();
void SelectCrack3Var();
void SelectStrainVar();
// Property setting methods
void SetCrack1Var(const std::string &crack1Var_);
void SetCrack2Var(const std::string &crack2Var_);
void SetCrack3Var(const std::string &crack3Var_);
void SetStrainVar(const std::string &strainVar_);
void SetUseCrack1(bool useCrack1_);
void SetUseCrack2(bool useCrack2_);
void SetUseCrack3(bool useCrack3_);
// Property getting methods
const std::string &GetCrack1Var() const;
std::string &GetCrack1Var();
const std::string &GetCrack2Var() const;
std::string &GetCrack2Var();
const std::string &GetCrack3Var() const;
std::string &GetCrack3Var();
const std::string &GetStrainVar() const;
std::string &GetStrainVar();
bool GetUseCrack1() const;
bool GetUseCrack2() const;
bool GetUseCrack3() const;
// Persistence methods
virtual bool CreateNode(DataNode *node, bool completeSave, bool forceAdd);
virtual void SetFromNode(DataNode *node);
// Keyframing methods
virtual std::string GetFieldName(int index) const;
virtual AttributeGroup::FieldType GetFieldType(int index) const;
virtual std::string GetFieldTypeName(int index) const;
virtual bool FieldsEqual(int index, const AttributeGroup *rhs) const;
// User-defined methods
bool ChangesRequireRecalculation(const CracksClipperAttributes &) const;
private:
std::string crack1Var;
std::string crack2Var;
std::string crack3Var;
std::string strainVar;
bool useCrack1;
bool useCrack2;
bool useCrack3;
};
#endif
package llnl.visit.operators;
import llnl.visit.AttributeSubject;
import llnl.visit.CommunicationBuffer;
import llnl.visit.Plugin;
// ****************************************************************************
// Class: CracksAttributes
//
// Purpose:
// Attributes for the cracks operator
//