cgma
PlanarParamTool Class Reference

#include <PlanarParamTool.hpp>

Inheritance diagram for PlanarParamTool:
ParamTool

List of all members.

Public Member Functions

 PlanarParamTool ()
 ~PlanarParamTool ()
CubitStatus set_up_space (CubitVector &du, CubitVector &dv, CubitVector &uv_center)
CubitStatus transform_to_uv (const CubitVector &xyz_location, CubitVector &uv_location)
CubitStatus transform_to_xyz (CubitVector &xyz_location, const CubitVector &uv_location)
virtual CubitStatus uv_derivitives (double u_param, double v_param, CubitVector &du, CubitVector &dv)

Private Attributes

CubitVector Du
CubitVector Dv
CubitVector uvCenter

Detailed Description

Definition at line 20 of file PlanarParamTool.hpp.


Constructor & Destructor Documentation

Definition at line 25 of file PlanarParamTool.cpp.

{
}

Definition at line 35 of file PlanarParamTool.cpp.

{}

Member Function Documentation

Definition at line 43 of file PlanarParamTool.cpp.

{
        Du = du;
        Dv = dv;
        uvCenter = uv_center;

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

Implements ParamTool.

Definition at line 58 of file PlanarParamTool.cpp.

{
  // Translate to local origin at center

  CubitVector vect = xyz_location - uvCenter;

   // Multiply by transpose (inverse) of transformation vector

  uv_location.x( vect % Du );
  uv_location.y( vect % Dv );
  uv_location.z( 0.0 );

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

Implements ParamTool.

Definition at line 79 of file PlanarParamTool.cpp.

{
// Multiply by transformation matrix

  CubitVector vect;
  vect.x( uv_location.x() * Du.x() +
          uv_location.y() * Dv.x() );
  vect.y( uv_location.x() * Du.y() +
          uv_location.y() * Dv.y() );
  vect.z( uv_location.x() * Du.z() +
          uv_location.y() * Dv.z() );

   // Translate from origin

  xyz_location = vect + uvCenter;

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

Reimplemented from ParamTool.

Definition at line 98 of file PlanarParamTool.cpp.

{
  (void)u_param;
  (void)v_param;
  du = Du;
  dv = Dv;
  return CUBIT_SUCCESS;
}

Member Data Documentation

Definition at line 41 of file PlanarParamTool.hpp.

Definition at line 42 of file PlanarParamTool.hpp.

Definition at line 43 of file PlanarParamTool.hpp.


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