contoursIntersection Class Reference

#include <contoursIntersection.h>

List of all members.

Public Member Functions

 contoursIntersection ()
 ~contoursIntersection ()
double Slope (double x0, double y0, double x1, double y1)
double Normal (double x0, double y0, double *m, double xi)
void Intersection (double x01, double y01, double x02, double y02, double mn, double m2, double *x, double *y)
void SetContour1 (std::vector< double > *InX1, std::vector< double > *InY1, std::vector< double > *InZ1)
void SetContour2 (std::vector< double > *InX2, std::vector< double > *InY2, std::vector< double > *InZ2)
void InterBetweenContours (std::vector< double > *OutX, std::vector< double > *OutY, std::vector< double > *OutZ)
void PossibleIntersections (std::vector< double > *OutX, std::vector< double > *OutY, std::vector< double > *OutZ)
void IntersectionPoints (std::vector< double > *OutX, std::vector< double > *OutY, std::vector< double > *OutZ)
void SetErrorParameter (double val)
int GetErrorBetweenContours (double error)

Private Attributes

std::vector< double > _InX1
std::vector< double > _InY1
std::vector< double > _InZ1
std::vector< double > _InX2
std::vector< double > _InY2
std::vector< double > _InZ2

Detailed Description

Definition at line 6 of file contoursIntersection.h.


Constructor & Destructor Documentation

contoursIntersection::contoursIntersection (  ) 

Definition at line 4 of file contoursIntersection.cxx.

00005 {
00006 }

contoursIntersection::~contoursIntersection (  ) 

Definition at line 8 of file contoursIntersection.cxx.

00009 {
00010 } 


Member Function Documentation

int contoursIntersection::GetErrorBetweenContours ( double  error  ) 
void contoursIntersection::InterBetweenContours ( std::vector< double > *  OutX,
std::vector< double > *  OutY,
std::vector< double > *  OutZ 
)
void contoursIntersection::Intersection ( double  x01,
double  y01,
double  x02,
double  y02,
double  mn,
double  m2,
double *  x,
double *  y 
)

Definition at line 26 of file contoursIntersection.cxx.

00027 {
00028         *x = ( y02-y01-(m2*x02)+(mn*x01) )/(mn-m2);
00029         *y = m2*(*x-x02)+y02;
00030 }

void contoursIntersection::IntersectionPoints ( std::vector< double > *  OutX,
std::vector< double > *  OutY,
std::vector< double > *  OutZ 
)
double contoursIntersection::Normal ( double  x0,
double  y0,
double *  m,
double  xi 
)

Definition at line 18 of file contoursIntersection.cxx.

00019 {
00020         double y;
00021         *m = -(1/(*m));
00022         y = ((*m)*(xi - x0)) + y0;
00023         return y;
00024 }

void contoursIntersection::PossibleIntersections ( std::vector< double > *  OutX,
std::vector< double > *  OutY,
std::vector< double > *  OutZ 
)
void contoursIntersection::SetContour1 ( std::vector< double > *  InX1,
std::vector< double > *  InY1,
std::vector< double > *  InZ1 
)
void contoursIntersection::SetContour2 ( std::vector< double > *  InX2,
std::vector< double > *  InY2,
std::vector< double > *  InZ2 
)
void contoursIntersection::SetErrorParameter ( double  val  ) 
double contoursIntersection::Slope ( double  x0,
double  y0,
double  x1,
double  y1 
)

Definition at line 12 of file contoursIntersection.cxx.

00013 {
00014         double m = (y1-y0)/(x1-x0);
00015         return m;
00016 }


Member Data Documentation

std::vector<double> contoursIntersection::_InX1 [private]

Definition at line 42 of file contoursIntersection.h.

std::vector<double> contoursIntersection::_InX2 [private]

Definition at line 45 of file contoursIntersection.h.

std::vector<double> contoursIntersection::_InY1 [private]

Definition at line 43 of file contoursIntersection.h.

std::vector<double> contoursIntersection::_InY2 [private]

Definition at line 46 of file contoursIntersection.h.

std::vector<double> contoursIntersection::_InZ1 [private]

Definition at line 44 of file contoursIntersection.h.

std::vector<double> contoursIntersection::_InZ2 [private]

Definition at line 47 of file contoursIntersection.h.


The documentation for this class was generated from the following files:

Generated on 18 Mar 2010 for creaMaracasVisu_lib by  doxygen 1.6.1