cgma
TestParamTool Class Reference

Transforms between a surface's uv parameter and xyz space. More...

#include <SurfParamTool.hpp>

Inheritance diagram for TestParamTool:
ParamTool

List of all members.

Public Member Functions

 TestParamTool ()
 ~TestParamTool ()
CubitStatus set_up_space (void)
CubitStatus transform_to_uv (const CubitVector &xyz_location, CubitVector &uv_location)
CubitStatus transform_to_xyz (CubitVector &xyz_location, const CubitVector &uv_location)
CubitStatus uv_derivitives (double u_param, double v_param, CubitVector &du, CubitVector &dv)

Static Public Member Functions

static CubitStatus circumcenter (double u0, double v0, double u1, double v1, double u2, double v2, CubitVector &center)

Private Attributes

double uRange
double vRange
double zDepth
double xMin
double yMin
double xMax
double yMax

Detailed Description

Transforms between a surface's uv parameter and xyz space.

Definition at line 63 of file SurfParamTool.hpp.


Constructor & Destructor Documentation

Definition at line 217 of file SurfParamTool.cpp.

{

    //- update private variables
//  refSurf = surf;

  uRange = 1.0;
  vRange = 4.0;
  
  xMin = -0.5;
  yMin = -0.5;

  xMax = 0.5;
  yMax = 0.5;


  zDepth = 0.5;  // constant z coordinate of test surface

}

Definition at line 243 of file SurfParamTool.cpp.

{}

Member Function Documentation

static CubitStatus TestParamTool::circumcenter ( double  u0,
double  v0,
double  u1,
double  v1,
double  u2,
double  v2,
CubitVector center 
) [static]

Definition at line 251 of file SurfParamTool.cpp.

{
    
    CubitStatus rv = CUBIT_SUCCESS;

    
    return rv; 
}
CubitStatus TestParamTool::transform_to_uv ( const CubitVector xyz_location,
CubitVector uv_location 
) [virtual]

Implements ParamTool.

Definition at line 266 of file SurfParamTool.cpp.

{
  // calculate the u,v from the x,y

  double u = (xyz_location.x()-xMin)/(xMax-xMin) * uRange;
  double v = (xyz_location.y()-yMin)/(yMax-yMin) * vRange;
    uv_location.set(u,v,1.0);

    return CUBIT_SUCCESS;
}
CubitStatus TestParamTool::transform_to_xyz ( CubitVector xyz_location,
const CubitVector uv_location 
) [virtual]

Implements ParamTool.

Definition at line 283 of file SurfParamTool.cpp.

{
  // get x,y from u,v

  double x = uv_location.x()/uRange + xMin;
  double y = uv_location.y()/vRange + yMin;

  xyz_location.set(x,y,zDepth);

    return CUBIT_SUCCESS;
}
CubitStatus TestParamTool::uv_derivitives ( double  u_param,
double  v_param,
CubitVector du,
CubitVector dv 
) [virtual]

Reimplemented from ParamTool.

Definition at line 295 of file SurfParamTool.cpp.

{
  du.set(1.0/uRange,0,0);
  dv.set(0,1.0/vRange,0);
  return CUBIT_SUCCESS;
}

Member Data Documentation

double TestParamTool::uRange [private]

Definition at line 92 of file SurfParamTool.hpp.

double TestParamTool::vRange [private]

Definition at line 92 of file SurfParamTool.hpp.

double TestParamTool::xMax [private]

Definition at line 95 of file SurfParamTool.hpp.

double TestParamTool::xMin [private]

Definition at line 95 of file SurfParamTool.hpp.

double TestParamTool::yMax [private]

Definition at line 95 of file SurfParamTool.hpp.

double TestParamTool::yMin [private]

Definition at line 95 of file SurfParamTool.hpp.

double TestParamTool::zDepth [private]

Definition at line 93 of file SurfParamTool.hpp.


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