MetaObject.cpp

Go to the documentation of this file.
00001 /**<!-------------------------------------------------------------------->
00002    @file   MetaObject.cpp
00003    @author Travis Fischer (fisch0920@gmail.com)
00004    @author Matthew Jacobs (jacobs.mh@gmail.com)
00005    @date   Spring 2008
00006    
00007    @brief
00008       A MetaObject exerts a positive or negative 'charge' in a scalar field, 
00009    whose isocontours (level sets) define blobby surfaces with different 
00010    threshold values corresponding to the contour level.  MetaObjects positively
00011    or negatively affect their neighboring MetaObjects depending on their 
00012    'strength' and 'negative' attributes.  'strength' defines the initial charge 
00013    of the object, and 'negative' is a boolean which defaults to false, denoting 
00014    whether or not this MetaObject has a positive or a negative impact on 
00015    surrounding MetaObjects.  MetaObject is an abstract class, and specific 
00016    implementations define how its initial charge dissipates throughout the 
00017    field.
00018    
00019    @param
00020       strength - initial charge of object (defaults to 1.0)
00021    @param
00022       negative - whether or not this metaobject has a positive or negative 
00023    impact on surrounding MetaObjects (defaults to false)
00024    
00025    @see also Blob
00026    @see also MetaBall
00027    <!-------------------------------------------------------------------->**/
00028 
00029 #include "MetaObject.h"
00030 
00031 void MetaObject::init() {
00032    m_strength   = getValue<real_t>("strength", m_strength);
00033    m_isNegative = getValue<bool>  ("negative", m_isNegative);
00034 }
00035 

Generated on 28 Feb 2009 for Milton by doxygen 1.5.6