src/IntRank2/FrameMap.cc
/* These functions try and set a coordinate frame from parameters found in
   a particular parameter set.  The initial and final axes names are input as

                 FrmName  (2) : AxesName - Initial Coordinate Axes
                 FrmName  (2) : AxesName - Final Coordinate Axes

   and individual obect rotations are defined by the Euler angles that take the
   final frame (associated with this coordinate frame) into the initial frame.

              FrmRot(#)  (3) : ( alpha, beta, gamma) - Framef Into Framei

   where the # is used to indicate the object that uses the rotation.

           Input        FrmMap  : Frame Mapping (this)
                        pset    : A parameter set
                        i       : Initial frame index
                        f       : Final frame index
                        pfx     : Prefix on rotation parameters
                        warn    : Warning level
                                    0 - no warnings
                                    1 - warnings
                                   >1 - fatal warnings
       Output           TF      : Frame Mapping is set
                                  from parameters in pset                    */
These functions try and set a coordinate frame from parameters found in
a particular parameter set.  The initial and final axes names are input as

FrmName  (2) : AxesName - Initial Coordinate Axes
FrmName  (2) : AxesName - Final Coordinate Axes

and individual obect rotations are defined by the Euler angles that take the
final frame (associated with this coordinate frame) into the initial frame.

FrmRot(#)  (3) : ( alpha, beta, gamma) - Framef Into Framei




These functions try and set a coordinate frame from parameters found in a particular parameter set . The initial and final axes names are input as FrmName ( 2 ) : AxesName - Initial Coordinate Axes FrmName ( 2 ) : AxesName - Final Coordinate Axes and individual obect rotations are defined by the Euler angles that take the final frame ( associated with this coordinate frame ) into the initial frame . FrmRot ( # ) ( 3 ) : ( alpha beta gamma ) - Framef Into Framei
bool FrameMap::SetFrmMap(const ParameterSet& pset, int i, int f, int pfx, int warn)
  {
  ParameterSet  subpset;                        
  if(pfx != -1) subpset = pset.strip(pfx);      
  else          subpset = pset;                 
  _EAs.clear();					
  _EA = EAzero;					
  if(!SetNames(subpset, i, f, warn?true:false))	
    {						
    if(warn) FMerror(50, 1);			
    return false;				
    }
  if(!SetNAxes(subpset, i, f, warn?true:false))	
    {						
    if(warn) FMerror(51, 1);			
    return false;				
    }
  if(SetEAngles(subpset,i,f,false)) return true;
  if(SetEAngVec(subpset,i,f,warn?true:false))  return true;
  if(warn) FMerror(52, 1);			
  return false;					
  }
bool FrameMap :: SetFrmMap ( const ParameterSet & pset , int i , int f , int pfx , int warn ) { ParameterSet subpset ; if ( pfx != -1 ) subpset = pset . strip ( pfx ) ; else subpset = pset ; _EAs . clear ( ) ; _EA = EAzero ; if ( ! SetNames ( subpset , i , f , warn ? true : false ) ) { if ( warn ) FMerror ( 50 , 1 ) ; return false ; } if ( ! SetNAxes ( subpset , i , f , warn ? true : false ) ) { if ( warn ) FMerror ( 51 , 1 ) ; return false ; } if ( SetEAngles ( subpset , i , f , false ) ) return true ; if ( SetEAngVec ( subpset , i , f , warn ? true : false ) ) return true ; if ( warn ) FMerror ( 52 , 1 ) ; return false ; }
These functions try and set a coordinate frame from parameters found in
a particular parameter set.
These functions try and set a coordinate frame from parameters found in a particular parameter set .
// Copy parameter set // to glean out those for // the specified prefix only // Remove all Euler angles // Clear generic Euler angles // Try to read frame names //   If unsuccessful then //   warn if desired and //   return failure // Try to read # axes sets //   If unsuccessful then //   warn if desired and //   return failure // Done if one EAngles set // Done if all EAngles read // Warn if desired and // return failure