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

Public Member Functions

 ScaleArg (MeshTransform *xform)
bool value (const std::vector< double > &vals)

Private Attributes


Detailed Description

Definition at line 23 of file transform.cpp.

Constructor & Destructor Documentation

ScaleArg::ScaleArg ( MeshTransform xform) [inline]

Definition at line 29 of file transform.cpp.

: mTransform( xform ) {}

Member Function Documentation

bool ScaleArg::value ( const std::vector< double > &  vals)

Definition at line 46 of file transform.cpp.

    for( unsigned i = 0; i < vals.size(); ++i )
        if( vals[i] <= 0 ) return false;
    if( vals.size() == 1 )
        mTransform->add_scale( vals[0] );
        mTransform->add_scale( Vector3D( vals[0], vals[1], vals[2] ) );
    return true;

Member Data Documentation

Definition at line 26 of file transform.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