politopix  4.1.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Point_Rn Class Reference

Creation of a n-coordinate geometric point designed to be shared by its neighbour faces. More...

#include <Point_Rn.h>

Collaboration diagram for Point_Rn:
Collaboration graph

Public Member Functions

 Point_Rn (unsigned int n)
 Create a n-coordinates point. More...
 
 Point_Rn (unsigned int n, double u)
 Fill the n-dimensional point with the constant u. More...
 
 Point_Rn (double u1, double u2, double u3)
 Create a 3-dimensional point. More...
 
virtual ~Point_Rn ()
 
double normalize ()
 
double distanceFrom (const Point_Rn &)
 
void setCoordinate (unsigned int i, double val) throw (std::out_of_range)
 
double getCoordinate (unsigned int i) const throw (std::out_of_range)
 
int dimension () const
 
void load (std::istream &this_istream)
 
void save (std::ostream &this_ostream) const
 
vector< double >::const_iterator begin () const
 
vector< double >::const_iterator end () const
 
const vector< double > & vect () const
 
void negate ()
 

Static Public Member Functions

static std::string concatStrings (int i, const std::string &functionName)
 Useful function to provide error message to the exception mechanism. More...
 
static std::string concatStrings (int i, double val, const std::string &functionName)
 Useful function to provide error message to the exception mechanism. More...
 

Protected Attributes

vector< double > _coordinates
 

Detailed Description

Creation of a n-coordinate geometric point designed to be shared by its neighbour faces.

Definition at line 34 of file Point_Rn.h.

Constructor & Destructor Documentation

Point_Rn::Point_Rn ( unsigned int  n)

Create a n-coordinates point.

Definition at line 30 of file Point_Rn.cpp.

Point_Rn::Point_Rn ( unsigned int  n,
double  u 
)

Fill the n-dimensional point with the constant u.

Definition at line 34 of file Point_Rn.cpp.

Point_Rn::Point_Rn ( double  u1,
double  u2,
double  u3 
)

Create a 3-dimensional point.

Definition at line 38 of file Point_Rn.cpp.

Point_Rn::~Point_Rn ( )
virtual

Definition at line 45 of file Point_Rn.cpp.

Member Function Documentation

vector<double>::const_iterator Point_Rn::begin ( ) const
inline

Definition at line 64 of file Point_Rn.h.

Here is the caller graph for this function:

std::string Point_Rn::concatStrings ( int  i,
const std::string &  functionName 
)
static

Useful function to provide error message to the exception mechanism.

Definition at line 79 of file Point_Rn.cpp.

Here is the caller graph for this function:

std::string Point_Rn::concatStrings ( int  i,
double  val,
const std::string &  functionName 
)
static

Useful function to provide error message to the exception mechanism.

Definition at line 93 of file Point_Rn.cpp.

int Point_Rn::dimension ( ) const
inline

Definition at line 58 of file Point_Rn.h.

double Point_Rn::distanceFrom ( const Point_Rn P)

Definition at line 54 of file Point_Rn.cpp.

vector<double>::const_iterator Point_Rn::end ( ) const
inline

Definition at line 66 of file Point_Rn.h.

Here is the caller graph for this function:

double Point_Rn::getCoordinate ( unsigned int  i) const
throw (std::out_of_range
)

Definition at line 70 of file Point_Rn.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void Point_Rn::load ( std::istream &  this_istream)

Definition at line 109 of file Point_Rn.cpp.

Here is the call graph for this function:

void Point_Rn::negate ( )
inline

Definition at line 70 of file Point_Rn.h.

double Point_Rn::normalize ( )

Definition at line 48 of file Point_Rn.cpp.

void Point_Rn::save ( std::ostream &  this_ostream) const

Definition at line 117 of file Point_Rn.cpp.

Here is the call graph for this function:

void Point_Rn::setCoordinate ( unsigned int  i,
double  val 
)
throw (std::out_of_range
)

Definition at line 61 of file Point_Rn.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

const vector<double>& Point_Rn::vect ( ) const
inline

Definition at line 68 of file Point_Rn.h.

Member Data Documentation

vector<double> Point_Rn::_coordinates
protected

Definition at line 80 of file Point_Rn.h.


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