TwoPointBase


[ DockingLib | Source | Keywords | Summary | Ancestors | All Members | Descendants ]

Quick Index

KEYWORD
AUTHORS
CHANGES LOG
GOALS
USAGE

Class Summary

class TwoPointBase
{
public:
class Signature ;
struct BaseParams ;
TwoPointBase(const ChemSurfacePoint* a, const ChemSurfacePoint* b, float geoDist, bool invertNormals);
bool isMatchingBase(const TwoPointBase* base) const;
bool isBasePoint(const ChemSurfacePoint* point) const ;
static bool isValidBase(const ChemSurfacePoint* a, const ChemSurfacePoint* b) ;
// member access functions
const Signature& getSignature() const ;
const RigidTrans3& getTrans() const ;
Vector3 getCoordinatesInBase(const Vector3& point) const ;
int getFirstId() const ;
int getSecondId() const ;
unsigned int getBaseId() const ;
friend ostream& operator<<(ostream& s, const TwoPointBase& base);
protected:
const ChemSurfacePoint *p1,*p2;
Signature sign_;
RigidTrans3 trans_;
unsigned int baseId_;
static unsigned int baseCounter;
}; // TwoPointBase

Back to the top of TwoPointBase


KEYWORD

Back to the top of TwoPointBase


AUTHORS

Back to the top of TwoPointBase


CHANGES LOG

Back to the top of TwoPointBase


GOALS

Back to the top of TwoPointBase

		

USAGE

		

Back to the top of TwoPointBase


class Signature ;

Base signature, invariant to rotation and translation

  class Signature {
  public:
    ////
    Signature() {}
    ////
    Signature(float geo_dist, float dist, float a, float b, float t) {
      sig_[0]=geo_dist; sig_[1]=dist;
      sig_[2]=a; sig_[3]=b; sig_[4]=t;
    }
////
    const float& operator[](const unsigned short coord) const{
      return sig_[coord];
    }
////
    friend ostream& operator<<(ostream& s, const Signature& sign) {
      return s << "Sign = " << sign.sig_[0] << ' ' << sign.sig_[1] << ' '
	       << sign.sig_[2] << ' ' << sign.sig_[3] << ' ' << sign.sig_[4];
    }
  private:
    float sig_[5]; //geoDist, dist, alpha, beta, omega
  };

Function is currently defined inline.


Back to the top of TwoPointBase


struct BaseParams ;

  struct BaseParams {
////
    static bool add(const string str) {
      if(sscanf(str.c_str(), "%f %f %hd", &min_base_dist, &max_base_dist, &match_type) != 3)
	return false;
      min_base_dist = min_base_dist*min_base_dist;
      max_base_dist = max_base_dist*max_base_dist;
      return true;
    }
////
    static float min_base_dist;
////
    static float max_base_dist;
////
    static short match_type;
  };

Back to the top of TwoPointBase


TwoPointBase(const ChemSurfacePoint* a, const ChemSurfacePoint* b, float geoDist, bool invertNormals);

Constructor

  TwoPointBase(const ChemSurfacePoint* a, const ChemSurfacePoint* b, float geoDist, bool invertNormals);

Back to the top of TwoPointBase


bool isMatchingBase(const TwoPointBase* base) const;

queries

  bool isMatchingBase(const TwoPointBase* base) const;

Back to the top of TwoPointBase


bool isBasePoint(const ChemSurfacePoint* point) const ;

  bool isBasePoint(const ChemSurfacePoint* point) const                                     
;

Function is currently defined inline.


Back to the top of TwoPointBase


bool isValidBase(const ChemSurfacePoint* a, const ChemSurfacePoint* b) ;

  static bool isValidBase(const ChemSurfacePoint* a, const ChemSurfacePoint* b)                                                                                                        ;

Function is currently defined inline.


Back to the top of TwoPointBase


const Signature& getSignature() const ;

  const Signature& getSignature() const                  
;

Function is currently defined inline.


Back to the top of TwoPointBase


const RigidTrans3& getTrans() const ;

  const RigidTrans3& getTrans() const                   
;

Function is currently defined inline.


Back to the top of TwoPointBase


Vector3 getCoordinatesInBase(const Vector3& point) const ;

  Vector3 getCoordinatesInBase(const Vector3& point) const                           
;

Function is currently defined inline.


Back to the top of TwoPointBase


int getFirstId() const ;

  int getFirstId() const                        
;

Function is currently defined inline.


Back to the top of TwoPointBase


int getSecondId() const ;

  int getSecondId() const                        
;

Function is currently defined inline.


Back to the top of TwoPointBase


unsigned int getBaseId() const ;

  unsigned int getBaseId() const                    
;

Function is currently defined inline.


Back to the top of TwoPointBase


friend ostream& operator<<(ostream& s, const TwoPointBase& base);

  friend ostream& operator<<(ostream& s, const TwoPointBase& base);

Back to the top of TwoPointBase


const ChemSurfacePoint *p1,*p2;

  const ChemSurfacePoint *p1,*p2;

Back to the top of TwoPointBase


Signature sign_;

  Signature sign_;

Back to the top of TwoPointBase


RigidTrans3 trans_;

  RigidTrans3 trans_;

Back to the top of TwoPointBase


unsigned int baseId_;

  unsigned int baseId_;

Back to the top of TwoPointBase


unsigned int baseCounter;

  static unsigned int baseCounter;

Back to the top of TwoPointBase


All Members

public:
class Signature ;
struct BaseParams ;
bool isMatchingBase(const TwoPointBase* base) const;
bool isBasePoint(const ChemSurfacePoint* point) const ;
static bool isValidBase(const ChemSurfacePoint* a, const ChemSurfacePoint* b) ;
// member access functions
const Signature& getSignature() const ;
const RigidTrans3& getTrans() const ;
Vector3 getCoordinatesInBase(const Vector3& point) const ;
int getFirstId() const ;
int getSecondId() const ;
unsigned int getBaseId() const ;
friend ostream& operator<<(ostream& s, const TwoPointBase& base);
protected:
const ChemSurfacePoint *p1,*p2;
Signature sign_;
RigidTrans3 trans_;
unsigned int baseId_;
static unsigned int baseCounter;

Back to the top of TwoPointBase


Ancestors

Class does not inherit from any other class.

Back to the top of TwoPointBase


Descendants

Class is not inherited by any others.

Back to the top of TwoPointBase


Generated from source by the Cocoon utilities on Mon Dec 21 12:00:25 2009 .

Report problems to jkotula@unimax.com