line< K > Class Template Reference

#include <line.hpp>

Inheritance diagram for line< K >:
geometric< K >

List of all members.

Public Types

Public Member Functions

Protected Attributes


Detailed Description

template<class K>
class mmx::shape::line< K >

Definition at line 19 of file line.hpp.


Member Typedef Documentation

typedef point_def<K>::Point Point

Definition at line 23 of file line.hpp.

typedef point_def<K>::Scalar Scalar

Definition at line 22 of file line.hpp.


Constructor & Destructor Documentation

line ( Point origin,
Point extremity 
) [inline]

Definition at line 24 of file line.hpp.

00024                                                      : Shape() {
00025                         m_origin = *origin;
00026                         m_extremity = *extremity;
00027                 }

line ( Point  origin,
Point  extremity 
) [inline]

Definition at line 28 of file line.hpp.

00028                                                    : Shape() {
00029                         m_origin = origin;
00030                         m_extremity = extremity;
00031                 }

~line (  )  [inline]

Definition at line 32 of file line.hpp.

00032                        {
00033                 }


Member Function Documentation

Point extremity ( void   )  const [inline]

Definition at line 36 of file line.hpp.

00036 { return m_extremity ; }

bool operator!= ( const line< K > &  other  )  const [inline]

Tests whether two planes are different.

Todo:
Check name of variables as well.

Definition at line 60 of file line.hpp.

00060                                            {
00061   return !(m_origin == other.m_origin && m_extremity == other.m_extremity);
00062 }

line< K > & operator= ( const line< K > &  other  )  [inline]

Definition at line 65 of file line.hpp.

00065                                     {
00066   if(this == &other)
00067     return *this ;
00068     
00069   this->m_origin = other.origin() ;
00070   this->m_extremity = other.extremity() ;
00071   return *this ;
00072 }

bool operator== ( const line< K > &  other  )  const [inline]

Definition at line 52 of file line.hpp.

00052                                            {
00053   return (m_origin == other.m_origin && m_extremity == other.m_extremity) ;
00054 }

bool orientation ( double *  q0,
double *  q1,
double *  q2,
double *  q3 
) [inline, inherited]

Definition at line 87 of file shape.hpp.

References geometric< K >::m_q0, geometric< K >::m_q1, geometric< K >::m_q2, and geometric< K >::m_q3.

00087                                                                     {
00088   *q0 = this->m_q0 ;
00089   *q1 = this->m_q1 ;
00090   *q2 = this->m_q2 ;
00091   *q3 = this->m_q3 ;
00092   return true ;
00093 }

Point origin ( void   )  const [inline]

Definition at line 35 of file line.hpp.

00035 { return m_origin ; }

bool position ( double *  x,
double *  y,
double *  z 
) [inline, inherited]

Definition at line 79 of file shape.hpp.

References geometric< K >::m_x, geometric< K >::m_y, and geometric< K >::m_z.

00079                                                  {
00080   *x = this->m_x ;
00081   *y = this->m_y ;
00082   *z = this->m_z ;
00083   return true ;
00084 }

void setExtremity ( Point  extremity  )  [inline]

Definition at line 39 of file line.hpp.

00039 { this->m_extremity = extremity ; }

void setOrigin ( Point  origin  )  [inline]

Definition at line 38 of file line.hpp.

00038 { this->m_origin = origin ; }


Member Data Documentation

double m_q0 [protected, inherited]

Definition at line 75 of file shape.hpp.

Referenced by geometric< V >::geometric(), and geometric< K >::orientation().

double m_q1 [protected, inherited]

Definition at line 75 of file shape.hpp.

Referenced by geometric< V >::geometric(), and geometric< K >::orientation().

double m_q2 [protected, inherited]

Definition at line 75 of file shape.hpp.

Referenced by geometric< V >::geometric(), and geometric< K >::orientation().

double m_q3 [protected, inherited]

Definition at line 75 of file shape.hpp.

Referenced by geometric< V >::geometric(), and geometric< K >::orientation().

double m_x [protected, inherited]

Definition at line 74 of file shape.hpp.

Referenced by geometric< V >::geometric(), and geometric< K >::position().

double m_y [protected, inherited]

Definition at line 74 of file shape.hpp.

Referenced by geometric< V >::geometric(), and geometric< K >::position().

double m_z [protected, inherited]

Definition at line 74 of file shape.hpp.

Referenced by geometric< V >::geometric(), and geometric< K >::position().


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

Generated on 6 Dec 2012 for shape by  doxygen 1.6.1