MOAB: Mesh Oriented datABase  (version 5.2.1)
SphereDomainArg Class Reference
+ Inheritance diagram for SphereDomainArg:
+ Collaboration diagram for SphereDomainArg:

Public Member Functions

 SphereDomainArg (std::vector< MeshDomain * > &domlist, std::vector< int > &dims)
virtual bool value (const std::vector< double > &list)

Private Attributes

std::vector< MeshDomain * > & domList
std::vector< int > & dimList

Detailed Description

Definition at line 19 of file domain.cpp.


Constructor & Destructor Documentation

SphereDomainArg::SphereDomainArg ( std::vector< MeshDomain * > &  domlist,
std::vector< int > &  dims 
) [inline]

Definition at line 26 of file domain.cpp.

        : domList( domlist ), dimList( dims )
    {
    }

Member Function Documentation

bool SphereDomainArg::value ( const std::vector< double > &  list) [virtual]

Definition at line 32 of file domain.cpp.

References center(), and MBMesquite::Vector3D::set().

{
    double rad = list[0];
    if( rad <= 0.0 ) return false;
    Vector3D center( 0, 0, 0 );
    if( list.size() == 4 ) center.set( list[1], list[2], list[3] );
    domList.push_back( new SphericalDomain( center, rad ) );
    dimList.push_back( 2 );
    return true;
}

Member Data Documentation

std::vector< int >& SphereDomainArg::dimList [private]

Definition at line 23 of file domain.cpp.

std::vector< MeshDomain* >& SphereDomainArg::domList [private]

Definition at line 22 of file domain.cpp.

List of all members.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines