cgma
TDInterpNode.hpp
Go to the documentation of this file.
00001 //-------------------------------------------------------------------------
00002 // Class:       TDInterpNode
00003 // Description: Support for the TetFacetorTool.  Maintains interpolation data
00004 
00005 // Author:      sjowen
00006 // Date:        8/13/2003
00007 //-------------------------------------------------------------------------
00008 
00009 #ifndef TD_INTERP_NODE_HPP
00010 #define TD_INTERP_NODE_HPP
00011 
00012 #include "ToolData.hpp"
00013 #include "CastTo.hpp"
00014 
00015 
00016 class TDInterpNode : public virtual ToolData
00017 {
00018 private:
00019 
00020   double mValue;
00021   double mWeight;
00022 
00023 public:
00024 
00025   TDInterpNode( double val )
00026     { mValue = val; mWeight = 0.0; }
00027   virtual ~TDInterpNode(){};
00028    //-constructor and destructor
00029 
00030   static int is_interpnode(const ToolData* td)
00031      {return (CAST_TO(td, const TDInterpNode) != NULL);}
00032 
00033   void value( double val )
00034     { mValue = val; }
00035   double value()
00036     { return mValue; }
00037 
00038   void weight( double wgt )
00039     { mWeight = wgt; }
00040   double weight()
00041     { return mWeight; }
00042 };
00043 
00044 
00045 
00046 #endif // TD_INTERP_NODE_HPP
00047 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines