MOAB: Mesh Oriented datABase  (version 5.4.1)
ConicDomainArg Class Reference
+ Inheritance diagram for ConicDomainArg:
+ Collaboration diagram for ConicDomainArg:

Public Member Functions

 ConicDomainArg (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 43 of file domain.cpp.


Constructor & Destructor Documentation

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

Definition at line 50 of file domain.cpp.

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

Member Function Documentation

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

Definition at line 56 of file domain.cpp.

{
    double base_rad = vals[0];
    double height   = vals[1];
    Vector3D axis( 0, 0, 1 );
    if( vals.size() >= 5 )
    {
        axis[0] = vals[2];
        axis[1] = vals[3];
        axis[2] = vals[4];
    }
    Vector3D point( 0, 0, 0 );
    if( vals.size() == 8 )
    {
        axis[0] = vals[5];
        axis[1] = vals[6];
        axis[2] = vals[7];
    }

    domList.push_back( new ConicDomain( base_rad, height, axis, point ) );
    dimList.push_back( 2 );
    return true;
}

Member Data Documentation

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

Definition at line 47 of file domain.cpp.

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

Definition at line 46 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