Commit 22485c6d authored by pugmire's avatar pugmire
Browse files

merge ellipsoid slice from 2.7RC

git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@23430 18c085ea-50e0-402c-830e-de6fd14e8384
parent 6352c160
......@@ -94,6 +94,7 @@ Displace
DualMesh
Edge
Elevate
EllipsoidSlice
ExternalSurface
ExtractPointFunction2D
Extrude
......
# DO NOT EDIT THIS FILE! THIS FILE IS AUTOMATICALLY GENERATED BY xml2cmake
PROJECT(EllipsoidSlice)
INCLUDE(${VISIT_SOURCE_DIR}/CMake/PluginMacros.cmake)
SET(COMMON_SOURCES
EllipsoidSlicePluginInfo.C
EllipsoidSliceCommonPluginInfo.C
EllipsoidSliceAttributes.C
)
SET(LIBI_SOURCES
EllipsoidSlicePluginInfo.C
)
SET(LIBG_SOURCES
EllipsoidSliceGUIPluginInfo.C
QvisEllipsoidSliceWindow.C
${COMMON_SOURCES}
)
SET(LIBG_MOC_SOURCES
QvisEllipsoidSliceWindow.h
)
SET(LIBV_SOURCES
EllipsoidSliceViewerPluginInfo.C
${COMMON_SOURCES}
)
SET(LIBE_SOURCES
EllipsoidSliceEnginePluginInfo.C
avtEllipsoidSliceFilter.C
${COMMON_SOURCES}
)
IF(VISIT_PYTHON_SCRIPTING)
SET(PYINCLUDES ${PYTHON_INCLUDE_PATH} ${VISIT_INCLUDE_DIR}/visitpy/visitpy)
ENDIF(VISIT_PYTHON_SCRIPTING)
INCLUDE_DIRECTORIES(
${CMAKE_CURRENT_SOURCE_DIR}
${VISIT_COMMON_INCLUDES}
${VISIT_INCLUDE_DIR}/avt/DBAtts/MetaData
${VISIT_INCLUDE_DIR}/avt/DBAtts/SIL
${VISIT_INCLUDE_DIR}/avt/Database/Database
${VISIT_INCLUDE_DIR}/avt/Expressions/Abstract
${VISIT_INCLUDE_DIR}/avt/Expressions/CMFE
${VISIT_INCLUDE_DIR}/avt/Expressions/Conditional
${VISIT_INCLUDE_DIR}/avt/Expressions/Derivations
${VISIT_INCLUDE_DIR}/avt/Expressions/General
${VISIT_INCLUDE_DIR}/avt/Expressions/ImageProcessing
${VISIT_INCLUDE_DIR}/avt/Expressions/Management
${VISIT_INCLUDE_DIR}/avt/Expressions/Math
${VISIT_INCLUDE_DIR}/avt/Expressions/MeshQuality
${VISIT_INCLUDE_DIR}/avt/Expressions/TimeIterators
${VISIT_INCLUDE_DIR}/avt/FileWriter
${VISIT_INCLUDE_DIR}/avt/Filters
${VISIT_INCLUDE_DIR}/avt/IVP
${VISIT_INCLUDE_DIR}/avt/Math
${VISIT_INCLUDE_DIR}/avt/Pipeline/AbstractFilters
${VISIT_INCLUDE_DIR}/avt/Pipeline/Data
${VISIT_INCLUDE_DIR}/avt/Pipeline/Pipeline
${VISIT_INCLUDE_DIR}/avt/Pipeline/Sinks
${VISIT_INCLUDE_DIR}/avt/Pipeline/Sources
${VISIT_INCLUDE_DIR}/avt/Plotter
${VISIT_INCLUDE_DIR}/avt/QtVisWindow
${VISIT_INCLUDE_DIR}/avt/View
${VISIT_INCLUDE_DIR}/avt/VisWindow/Colleagues
${VISIT_INCLUDE_DIR}/avt/VisWindow/Interactors
${VISIT_INCLUDE_DIR}/avt/VisWindow/Proxies
${VISIT_INCLUDE_DIR}/avt/VisWindow/Tools
${VISIT_INCLUDE_DIR}/avt/VisWindow/VisWindow
${VISIT_INCLUDE_DIR}/gui
${VISIT_INCLUDE_DIR}/mdserver/proxy
${VISIT_INCLUDE_DIR}/mdserver/rpc
${VISIT_INCLUDE_DIR}/viewer/main
${VISIT_INCLUDE_DIR}/viewer/proxy
${VISIT_INCLUDE_DIR}/viewer/rpc
${VISIT_INCLUDE_DIR}/winutil
${VISIT_INCLUDE_DIR}/visit_vtk/full
${VISIT_INCLUDE_DIR}/visit_vtk/lightweight
${QT_INCLUDE_DIR}
${QT_QTCORE_INCLUDE_DIR}
${QT_QTGUI_INCLUDE_DIR}
${EAVL_INCLUDE_DIR}
${VTK_INCLUDE_DIRS}
${PYINCLUDES}
)
LINK_DIRECTORIES(${VISIT_LIBRARY_DIR} ${QT_LIBRARY_DIR} ${GLEW_LIBRARY_DIR} ${EAVL_LIBRARY_DIR} ${VTK_LIBRARY_DIRS} )
ADD_LIBRARY(IEllipsoidSliceOperator ${LIBI_SOURCES})
TARGET_LINK_LIBRARIES(IEllipsoidSliceOperator visitcommon)
SET(INSTALLTARGETS IEllipsoidSliceOperator)
IF(NOT VISIT_SERVER_COMPONENTS_ONLY AND NOT VISIT_ENGINE_ONLY AND NOT VISIT_DBIO_ONLY)
QT_WRAP_CPP(GEllipsoidSliceOperator LIBG_SOURCES ${LIBG_MOC_SOURCES})
ADD_LIBRARY(GEllipsoidSliceOperator ${LIBG_SOURCES})
TARGET_LINK_LIBRARIES(GEllipsoidSliceOperator visitcommon gui )
ADD_LIBRARY(VEllipsoidSliceOperator ${LIBV_SOURCES})
TARGET_LINK_LIBRARIES(VEllipsoidSliceOperator visitcommon viewer )
SET(INSTALLTARGETS ${INSTALLTARGETS} GEllipsoidSliceOperator VEllipsoidSliceOperator)
IF(VISIT_PYTHON_SCRIPTING)
SET(LIBS_SOURCES
EllipsoidSliceScriptingPluginInfo.C
PyEllipsoidSliceAttributes.C
${COMMON_SOURCES}
)
ADD_LIBRARY(SEllipsoidSliceOperator ${LIBS_SOURCES})
TARGET_LINK_LIBRARIES(SEllipsoidSliceOperator visitcommon visitpy ${PYTHON_LIBRARY})
SET(INSTALLTARGETS ${INSTALLTARGETS} SEllipsoidSliceOperator)
ENDIF(VISIT_PYTHON_SCRIPTING)
IF(VISIT_JAVA)
FILE(COPY EllipsoidSliceAttributes.java DESTINATION ${JavaClient_BINARY_DIR}/src/operators)
ADD_CUSTOM_TARGET(JavaEllipsoidSlice ALL ${Java_JAVAC_EXECUTABLE} ${VISIT_Java_FLAGS} -d ${JavaClient_BINARY_DIR} -classpath ${JavaClient_BINARY_DIR} -sourcepath ${JavaClient_BINARY_DIR} EllipsoidSliceAttributes.java
DEPENDS JavaClient
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
ENDIF(VISIT_JAVA)
ENDIF(NOT VISIT_SERVER_COMPONENTS_ONLY AND NOT VISIT_ENGINE_ONLY AND NOT VISIT_DBIO_ONLY)
ADD_LIBRARY(EEllipsoidSliceOperator_ser ${LIBE_SOURCES})
TARGET_LINK_LIBRARIES(EEllipsoidSliceOperator_ser visitcommon avtexpressions_ser avtfilters_ser avtpipeline_ser )
SET(INSTALLTARGETS ${INSTALLTARGETS} EEllipsoidSliceOperator_ser)
IF(VISIT_PARALLEL)
ADD_PARALLEL_LIBRARY(EEllipsoidSliceOperator_par ${LIBE_SOURCES})
TARGET_LINK_LIBRARIES(EEllipsoidSliceOperator_par visitcommon avtexpressions_par avtfilters_par avtpipeline_par )
SET(INSTALLTARGETS ${INSTALLTARGETS} EEllipsoidSliceOperator_par)
ENDIF(VISIT_PARALLEL)
VISIT_INSTALL_OPERATOR_PLUGINS(${INSTALLTARGETS})
VISIT_PLUGIN_TARGET_RTOD(operators ${INSTALLTARGETS})
VISIT_PLUGIN_TARGET_FOLDER(operators EllipsoidSlice ${INSTALLTARGETS})
<?xml version="1.0"?>
<Plugin name="EllipsoidSlice" type="operator" label="EllipsoidSlice" version="1.0" enabled="true" mdspecificcode="false" engspecificcode="false" onlyengine="false" noengine="false" category="Slicing">
<Attribute name="EllipsoidSliceAttributes" purpose="EllipsoidSliceAttributes" persistent="true" keyframe="true" exportAPI="" exportInclude="">
<Field name="origin" label="Origin" type="doubleArray" length="3">
0.000000
0.000000
0.000000
</Field>
<Field name="radii" label="Radii" type="doubleArray" length="3">
1.000000
1.000000
1.000000
</Field>
<Field name="rotationAngle" label="Rotation Angle" type="doubleArray" length="3">
0.000000
0.000000
0.000000
</Field>
</Attribute>
</Plugin>
/*****************************************************************************
*
* 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.
*
*****************************************************************************/
#include <EllipsoidSliceAttributes.h>
#include <DataNode.h>
// ****************************************************************************
// Method: EllipsoidSliceAttributes::EllipsoidSliceAttributes
//
// Purpose:
// Init utility for the EllipsoidSliceAttributes class.
//
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation: omitted
//
// Modifications:
//
// ****************************************************************************
void EllipsoidSliceAttributes::Init()
{
origin[0] = 0;
origin[1] = 0;
origin[2] = 0;
radii[0] = 1;
radii[1] = 1;
radii[2] = 1;
rotationAngle[0] = 0;
rotationAngle[1] = 0;
rotationAngle[2] = 0;
EllipsoidSliceAttributes::SelectAll();
}
// ****************************************************************************
// Method: EllipsoidSliceAttributes::EllipsoidSliceAttributes
//
// Purpose:
// Copy utility for the EllipsoidSliceAttributes class.
//
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation: omitted
//
// Modifications:
//
// ****************************************************************************
void EllipsoidSliceAttributes::Copy(const EllipsoidSliceAttributes &obj)
{
origin[0] = obj.origin[0];
origin[1] = obj.origin[1];
origin[2] = obj.origin[2];
radii[0] = obj.radii[0];
radii[1] = obj.radii[1];
radii[2] = obj.radii[2];
rotationAngle[0] = obj.rotationAngle[0];
rotationAngle[1] = obj.rotationAngle[1];
rotationAngle[2] = obj.rotationAngle[2];
EllipsoidSliceAttributes::SelectAll();
}
// Type map format string
const char *EllipsoidSliceAttributes::TypeMapFormatString = ELLIPSOIDSLICEATTRIBUTES_TMFS;
const AttributeGroup::private_tmfs_t EllipsoidSliceAttributes::TmfsStruct = {ELLIPSOIDSLICEATTRIBUTES_TMFS};
// ****************************************************************************
// Method: EllipsoidSliceAttributes::EllipsoidSliceAttributes
//
// Purpose:
// Default constructor for the EllipsoidSliceAttributes class.
//
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation: omitted
//
// Modifications:
//
// ****************************************************************************
EllipsoidSliceAttributes::EllipsoidSliceAttributes() :
AttributeSubject(EllipsoidSliceAttributes::TypeMapFormatString)
{
EllipsoidSliceAttributes::Init();
}
// ****************************************************************************
// Method: EllipsoidSliceAttributes::EllipsoidSliceAttributes
//
// Purpose:
// Constructor for the derived classes of EllipsoidSliceAttributes class.
//
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation: omitted
//
// Modifications:
//
// ****************************************************************************
EllipsoidSliceAttributes::EllipsoidSliceAttributes(private_tmfs_t tmfs) :
AttributeSubject(tmfs.tmfs)
{
EllipsoidSliceAttributes::Init();
}
// ****************************************************************************
// Method: EllipsoidSliceAttributes::EllipsoidSliceAttributes
//
// Purpose:
// Copy constructor for the EllipsoidSliceAttributes class.
//
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation: omitted
//
// Modifications:
//
// ****************************************************************************
EllipsoidSliceAttributes::EllipsoidSliceAttributes(const EllipsoidSliceAttributes &obj) :
AttributeSubject(EllipsoidSliceAttributes::TypeMapFormatString)
{
EllipsoidSliceAttributes::Copy(obj);
}
// ****************************************************************************
// Method: EllipsoidSliceAttributes::EllipsoidSliceAttributes
//
// Purpose:
// Copy constructor for derived classes of the EllipsoidSliceAttributes class.
//
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation: omitted
//
// Modifications:
//
// ****************************************************************************
EllipsoidSliceAttributes::EllipsoidSliceAttributes(const EllipsoidSliceAttributes &obj, private_tmfs_t tmfs) :
AttributeSubject(tmfs.tmfs)
{
EllipsoidSliceAttributes::Copy(obj);
}
// ****************************************************************************
// Method: EllipsoidSliceAttributes::~EllipsoidSliceAttributes
//
// Purpose:
// Destructor for the EllipsoidSliceAttributes class.
//
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation: omitted
//
// Modifications:
//
// ****************************************************************************
EllipsoidSliceAttributes::~EllipsoidSliceAttributes()
{
// nothing here
}
// ****************************************************************************
// Method: EllipsoidSliceAttributes::operator =
//
// Purpose:
// Assignment operator for the EllipsoidSliceAttributes class.
//
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation: omitted
//
// Modifications:
//
// ****************************************************************************
EllipsoidSliceAttributes&
EllipsoidSliceAttributes::operator = (const EllipsoidSliceAttributes &obj)
{
if (this == &obj) return *this;
EllipsoidSliceAttributes::Copy(obj);
return *this;
}
// ****************************************************************************
// Method: EllipsoidSliceAttributes::operator ==
//
// Purpose:
// Comparison operator == for the EllipsoidSliceAttributes class.
//
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation: omitted
//
// Modifications:
//
// ****************************************************************************
bool
EllipsoidSliceAttributes::operator == (const EllipsoidSliceAttributes &obj) const
{
// Compare the origin arrays.
bool origin_equal = true;
for(int i = 0; i < 3 && origin_equal; ++i)
origin_equal = (origin[i] == obj.origin[i]);
// Compare the radii arrays.
bool radii_equal = true;
for(int i = 0; i < 3 && radii_equal; ++i)
radii_equal = (radii[i] == obj.radii[i]);
// Compare the rotationAngle arrays.
bool rotationAngle_equal = true;
for(int i = 0; i < 3 && rotationAngle_equal; ++i)
rotationAngle_equal = (rotationAngle[i] == obj.rotationAngle[i]);
// Create the return value
return (origin_equal &&
radii_equal &&
rotationAngle_equal);
}
// ****************************************************************************
// Method: EllipsoidSliceAttributes::operator !=
//
// Purpose:
// Comparison operator != for the EllipsoidSliceAttributes class.
//
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation: omitted
//
// Modifications:
//
// ****************************************************************************
bool
EllipsoidSliceAttributes::operator != (const EllipsoidSliceAttributes &obj) const
{
return !(this->operator == (obj));
}
// ****************************************************************************
// Method: EllipsoidSliceAttributes::TypeName
//
// Purpose:
// Type name method for the EllipsoidSliceAttributes class.
//
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation: omitted
//
// Modifications:
//
// ****************************************************************************
const std::string
EllipsoidSliceAttributes::TypeName() const
{
return "EllipsoidSliceAttributes";
}
// ****************************************************************************
// Method: EllipsoidSliceAttributes::CopyAttributes
//
// Purpose:
// CopyAttributes method for the EllipsoidSliceAttributes class.
//
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation: omitted
//
// Modifications:
//
// ****************************************************************************
bool
EllipsoidSliceAttributes::CopyAttributes(const AttributeGroup *atts)
{
if(TypeName() != atts->TypeName())
return false;
// Call assignment operator.
const EllipsoidSliceAttributes *tmp = (const EllipsoidSliceAttributes *)atts;
*this = *tmp;
return true;
}
// ****************************************************************************
// Method: EllipsoidSliceAttributes::CreateCompatible
//
// Purpose:
// CreateCompatible method for the EllipsoidSliceAttributes class.
//
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation: omitted
//
// Modifications:
//
// ****************************************************************************
AttributeSubject *
EllipsoidSliceAttributes::CreateCompatible(const std::string &tname) const
{
AttributeSubject *retval = 0;
if(TypeName() == tname)
retval = new EllipsoidSliceAttributes(*this);
// Other cases could go here too.
return retval;
}
// ****************************************************************************
// Method: EllipsoidSliceAttributes::NewInstance
//
// Purpose:
// NewInstance method for the EllipsoidSliceAttributes class.
//
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation: omitted
//
// Modifications:
//
// ****************************************************************************
AttributeSubject *
EllipsoidSliceAttributes::NewInstance(bool copy) const
{
AttributeSubject *retval = 0;
if(copy)
retval = new EllipsoidSliceAttributes(*this);
else
retval = new EllipsoidSliceAttributes;
return retval;
}
// ****************************************************************************
// Method: EllipsoidSliceAttributes::SelectAll
//
// Purpose:
// Selects all attributes.
//
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation: omitted
//
// Modifications:
//
// ****************************************************************************
void
EllipsoidSliceAttributes::SelectAll()
{
Select(ID_origin, (void *)origin, 3);
Select(ID_radii, (void *)radii, 3);
Select(ID_rotationAngle, (void *)rotationAngle, 3);
}
///////////////////////////////////////////////////////////////////////////////
// Persistence methods
///////////////////////////////////////////////////////////////////////////////
// ****************************************************************************
// Method: EllipsoidSliceAttributes::CreateNode
//
// Purpose:
// This method creates a DataNode representation of the object so it can be saved to a config file.
//
// Note: Autogenerated by xml2atts.
//
// Programmer: xml2atts
// Creation: omitted
//
// Modifications:
//
// ****************************************************************************