Commit 80cc228d authored by bonnell's avatar bonnell

Remove no-longer used classes

git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@23685 18c085ea-50e0-402c-830e-de6fd14e8384
parent 3791e93f
......@@ -109,7 +109,6 @@ Data/avtOpacityMapSamplePointArbitrator.C
Data/avtPhong.C
Data/avtPixelizer.C
Data/avtPlaneSelection.C
Data/avtPointAttribute.C
Data/avtPointExtractor.C
Data/avtPointSelection.C
Data/avtPyramidExtractor.C
......
This diff is collapsed.
/*****************************************************************************
*
* Copyright (c) 2000 - 2013, 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.
*
*****************************************************************************/
// ************************************************************************* //
// avtPointAttribute.h //
// ************************************************************************* //
#ifndef AVT_POINT_ATTRIBUTE_H
#define AVT_POINT_ATTRIBUTE_H
#include <pipeline_exports.h>
#include <string>
#include <avtDynamicAttribute.h>
#include <Point.h>
// ****************************************************************************
// Class: avtPointAttribute
//
// Purpose:
// Contains the knowledge of how to convert a standard point attribute
// into an actual point.
//
// Programmer: Hank Childs
// Creation: March 15, 2002
//
// Modifications:
//
// Hank Childs, Thu Feb 5 17:11:06 PST 2004
// Moved inlined constructor and destructor definitions to .C files
// because certain compilers have problems with them.
//
// ****************************************************************************
class PIPELINE_API avtPointAttribute : public avtDynamicAttribute
{
public:
avtPointAttribute(Point &);
virtual ~avtPointAttribute();
void GetPoint(double [3]);
virtual avtContract_p
ModifyContract(avtContract_p);
virtual void ResolveAttributes(avtDataObject_p);
protected:
Point &attributes;
double point[3];
std::string origVar;
bool resolvedAttributes;
void ResolvePoint(void);
void ResolveMin(avtDataObject_p &);
void ResolveMax(avtDataObject_p &);
void ResolveZone(avtDataObject_p &);
void ResolveNode(avtDataObject_p &);
};
#endif
......@@ -261,7 +261,6 @@ state/PlotInfoAttributes.C
state/PlotList.C
state/PlotQueryInfo.C
state/PluginManagerAttributes.C
state/Point.C
state/PointAttributes.C
state/PrinterAttributes.C
state/ProcessAttributes.C
......
This diff is collapsed.
Function: Point
Declaration: Point(double,double,double);
Definition:
// ****************************************************************************
// Method: Point::Point
//
// Purpose:
// Constructor which takes a triple of values as input.
//
// Arguments:
// ox,oy,oz the coordinate
//
// Programmer: Jeremy Meredith
// Creation: March 15, 2002
//
// ****************************************************************************
Point::Point(double ox, double oy, double oz) : AttributeSubject("s")
{
char str[100];
sprintf(str, "%g %g %g", ox, oy, oz);
value = str;
}
Function: GetValueType
Declaration: ValueType GetValueType() const;
Definition:
// ****************************************************************************
// Method: Point::GetValueType
//
// Purpose:
// Get the type of function or tuple contained in the Point.
//
// Programmer: Jeremy Meredith
// Creation: March 15, 2002
//
// ****************************************************************************
Point::ValueType
Point::GetValueType() const
{
int i;
char s[1000];
double d;
if (GetTupleArgs(d,d,d))
return VT_Tuple;
if (GetMinArgs(s))
return VT_Min;
if (GetMaxArgs(s))
return VT_Max;
if (GetDomainZoneArgs(i,i))
return VT_DomainZone;
if (GetZoneArgs(i))
return VT_Zone;
if (GetDomainNodeArgs(i,i))
return VT_DomainNode;
if (GetNodeArgs(i))
return VT_Node;
return VT_Unknown;
}
Function: GetTupleArgs
Declaration: bool GetTupleArgs(double&, double&, double&) const;
Definition:
// ****************************************************************************
// Methods to parse tuples, functions, and arguments
// ****************************************************************************
bool
Point::GetTupleArgs(double &d1, double &d2, double &d3) const
{
const char *str = value.c_str();
return (sscanf(str, "%lg %lg %lg", &d1, &d2, &d3) == 3);
}
Function: GetMinArgs
Declaration: bool GetMinArgs(char*) const;
Definition:
bool
Point::GetMinArgs(char *s) const
{
const char *str = value.c_str();
if (sscanf(str, "min( %[^) ] )", s) == 1)
return true;
else if (strcmp(str, "min()") == 0)
{
s[0] = '\0';
return true;
}
else
return false;
}
Function: GetMaxArgs
Declaration: bool GetMaxArgs(char*) const;
Definition:
bool
Point::GetMaxArgs(char *s) const
{
const char *str = value.c_str();
if (sscanf(str, "max( %[^) ] )", s) == 1)
return true;
else if (strcmp(str, "min()") == 0)
{
s[0] = '\0';
return true;
}
else
return false;
}
Function: GetDomainZoneArgs
Declaration: bool GetDomainZoneArgs(int&, int&) const;
Definition:
bool
Point::GetDomainZoneArgs(int &d, int &z) const
{
const char *str = value.c_str();
return (sscanf(str, "zone( %d %d )", &d, &z) == 2);
}
Function: GetZoneArgs
Declaration: bool GetZoneArgs(int&) const;
Definition:
bool
Point::GetZoneArgs(int &z) const
{
const char *str = value.c_str();
return (sscanf(str, "zone( %d )", &z) == 1);
}
Function: GetDomainNodeArgs
Declaration: bool GetDomainNodeArgs(int&, int&) const;
Definition:
bool
Point::GetDomainNodeArgs(int &d, int &n) const
{
const char *str = value.c_str();
return (sscanf(str, "node( %d %d )", &d, &n) == 2);
}
Function: GetNodeArgs
Declaration: bool GetNodeArgs(int&) const;
Definition:
bool
Point::GetNodeArgs(int &n) const
{
const char *str = value.c_str();
return (sscanf(str, "node( %d )", &n) == 1);
}
/*****************************************************************************
*
* Copyright (c) 2000 - 2013, 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.
*
*****************************************************************************/
#ifndef POINT_H
#define POINT_H
#include <state_exports.h>
#include <string>
#include <AttributeSubject.h>
// ****************************************************************************
// Class: Point
//
// Purpose:
// This class contains attributes for a point.
//
// Notes: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation: omitted
//
// Modifications:
//
// ****************************************************************************
class STATE_API Point : public AttributeSubject
{
using AttributeSubject::SetValue;
using AttributeSubject::GetValue;
public:
enum ValueType
{
VT_Tuple,
VT_Min,
VT_Max,
VT_DomainZone,
VT_Zone,
VT_DomainNode,
VT_Node,
VT_Unknown
};
// These constructors are for objects of this class
Point();
Point(const Point &obj);
protected:
// These constructors are for objects derived from this class
Point(private_tmfs_t tmfs);
Point(const Point &obj, private_tmfs_t tmfs);
public:
virtual ~Point();
virtual Point& operator = (const Point &obj);
virtual bool operator == (const Point &obj) const;
virtual bool operator != (const Point &obj) const;
private:
void Init();
void Copy(const Point &obj);
public:
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 SelectValue();
// Property setting methods
void SetValue(const std::string &value_);
// Property getting methods
const std::string &GetValue() const;
std::string &GetValue();
// Persistence methods
virtual bool CreateNode(DataNode *node, bool completeSave, bool forceAdd);
virtual void SetFromNode(DataNode *node);
// Enum conversion functions
static std::string ValueType_ToString(ValueType);
static bool ValueType_FromString(const std::string &, ValueType &);
protected:
static std::string ValueType_ToString(int);
public:
// 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
Point(double,double,double);
ValueType GetValueType() const;
bool GetTupleArgs(double&, double&, double&) const;
bool GetMinArgs(char*) const;
bool GetMaxArgs(char*) const;
bool GetDomainZoneArgs(int&, int&) const;
bool GetZoneArgs(int&) const;
bool GetDomainNodeArgs(int&, int&) const;
bool GetNodeArgs(int&) const;
// IDs that can be used to identify fields in case statements
enum {
ID_value = 0,
ID__LAST
};
private:
std::string value;
// Static class format string for type map.
static const char *TypeMapFormatString;
static const private_tmfs_t TmfsStruct;
};
#define POINT_TMFS "s"
#endif
<?xml version="1.0"?>
<Attribute name="Point" purpose="This class contains attributes for a point." persistent="true" exportAPI="STATE_API" exportInclude="state_exports.h" codefile="Point.code">
<Enum name="ValueType">
VT_Tuple
VT_Min
VT_Max
VT_DomainZone
VT_Zone
VT_DomainNode
VT_Node
VT_Unknown
</Enum>
<Field name="value" label="value" type="string">
</Field>
<Function name="Point" user="true" member="true">
</Function>
<Function name="GetValueType" user="true" member="true">
</Function>
<Function name="GetTupleArgs" user="true" member="true">
</Function>
<Function name="GetMinArgs" user="true" member="true">
</Function>
<Function name="GetMaxArgs" user="true" member="true">
</Function>
<Function name="GetDomainZoneArgs" user="true" member="true">
</Function>
<Function name="GetZoneArgs" user="true" member="true">
</Function>
<Function name="GetDomainNodeArgs" user="true" member="true">
</Function>
<Function name="GetNodeArgs" user="true" member="true">
</Function>
<Include file="source" quoted="false">
stdio.h
</Include>
<Include file="source" quoted="false">
cstring
</Include>
</Attribute>
......@@ -54,8 +54,6 @@ class vtkTransformFilter;
class vtkMatrix4x4;
class vtkSlicer;
class avtPointAttribute;
// ****************************************************************************
// Class: avtSliceFilter
......
......@@ -57,7 +57,6 @@
#include <PlotList.h>
#include <PlotQueryInfo.h>
#include <PluginManagerAttributes.h>
#include <Point.h>
#include <PointAttributes.h>
#include <PrinterAttributes.h>
#include <ProcessAttributes.h>
......@@ -206,7 +205,6 @@ CreateCommonStateObjects(StateObjectMap &attributes)
MAKE_OBJECT(PlotList);
MAKE_OBJECT(PlotQueryInfo);
MAKE_OBJECT(PluginManagerAttributes);
MAKE_OBJECT(Point);
MAKE_OBJECT(PointAttributes);
MAKE_OBJECT(PrinterAttributes);
MAKE_OBJECT(ProcessAttributes);
......
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