msbGrid  1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
msbGrid::Point Class Reference

#include <point.hh>

Inheritance diagram for msbGrid::Point:
msbGrid::GeometricEntity

Public Types

enum  { dim = msbGrid :: dim }
 
typedef msbGrid::GeometricEntity ParentT
 
typedef msbGrid::Scalar Scalar
 
typedef msbGrid::Edge Edge
 
typedef msbGrid::Cell Cell
 
typedef msbGrid::Marker Marker
 
- Public Types inherited from msbGrid::GeometricEntity
typedef msbGrid::Color Color
 
typedef msbGrid::Point Point
 
typedef msbGrid::Edge Edge
 
typedef msbGrid::Cell Cell
 

Public Member Functions

 Point ()
 
 Point (const std::vector< Scalar > &x0)
 
 Point (const Scalar &x, const Scalar &y)
 
 ~Point ()
 
const std::vector< Scalar > & pos () const
 
const std::vector< Scalar > & x () const
 
std::vector< Scalar > & x ()
 
const std::vector< Point * > & vpNeighbor0 () const
 
std::vector< Point * > & vpNeighbor0 ()
 
const std::vector< Point * > & vpNeighbor1 () const
 
std::vector< Point * > & vpNeighbor1 ()
 
const std::vector< Point * > onBlockBoundvpNeighbor1 () const
 
const msbGrid::Markermarker () const
 
msbGrid::Markermarker ()
 
const Scalarcl () const
 
Scalarcl ()
 
void translate (const std::vector< Scalar > &dx)
 
void rotate (const Scalar &_angle, const Point &mc)
 
void infos (const std::string &name0="") const
 
- Public Member Functions inherited from msbGrid::GeometricEntity
 GeometricEntity ()
 
 ~GeometricEntity ()
 
const Colorcolor () const
 
Colorcolor ()
 
const unsigned int & Id () const
 
unsigned int & Id ()
 
const bool hasId () const
 
const bool & mark () const
 
bool & mark ()
 
const bool & onBlockBoundary () const
 
bool & onBlockBoundary ()
 
const std::vector< Scalar > & pos () const
 
std::vector< Scalar > & pos ()
 
const std::vector< Point * > & vPt () const
 
std::vector< Point * > & vPt ()
 
const std::vector< Edge * > & vEd () const
 
std::vector< Edge * > & vEd ()
 
const std::vector< Cell * > & vCel () const
 
std::vector< Cell * > & vCel ()
 
bool isIt (const GeometricEntity *ge0) const
 
void infos () const
 

Private Attributes

std::vector< Scalarx_
 
std::vector< Point * > vpNeighbor0_
 
std::vector< Point * > vpNeighbor1_
 
Marker marker_
 
Scalar cl_
 

Friends

const Scalar eucDistance (const Point &pt0, const Point &pt1)
 
const Scalar angle (const Point &a, const Point &b, const Point &c)
 
const bool colinear (const Point &a, const Point &b, const Point &c)
 
const std::vector< Point * > notMarked (const std::vector< Point * > &vPt0)
 
const bool superposed (const Point &pt0, const Point &pt1)
 
template<typename VEdgePtrT >
const bool pointWith3BoundaryEdges (const VEdgePtrT &vEd0)
 

Additional Inherited Members

- Public Attributes inherited from msbGrid::GeometricEntity
std::vector< Scalarpos_
 
std::vector< Point * > vPt_
 
std::vector< Edge * > vEd_
 
std::vector< Cell * > vCel_
 

Detailed Description

Definition at line 29 of file point.hh.

Member Typedef Documentation

typedef msbGrid :: Cell msbGrid::Point::Cell

Definition at line 36 of file point.hh.

typedef msbGrid :: Edge msbGrid::Point::Edge

Definition at line 35 of file point.hh.

typedef msbGrid :: Marker msbGrid::Point::Marker

Definition at line 38 of file point.hh.

Definition at line 32 of file point.hh.

typedef msbGrid :: Scalar msbGrid::Point::Scalar

Definition at line 34 of file point.hh.

Member Enumeration Documentation

anonymous enum
Enumerator
dim 

Definition at line 40 of file point.hh.

Constructor & Destructor Documentation

Definition at line 55 of file point.hh.

msbGrid::Point::Point ( const std::vector< Scalar > &  x0)
inline

Definition at line 71 of file point.hh.

msbGrid::Point::Point ( const Scalar x,
const Scalar y 
)
inline

Definition at line 80 of file point.hh.

msbGrid::Point::~Point ( )
inline

Definition at line 86 of file point.hh.

Member Function Documentation

const Scalar& msbGrid::Point::cl ( ) const
inline

Definition at line 127 of file point.hh.

Scalar& msbGrid::Point::cl ( )
inline

Definition at line 130 of file point.hh.

void msbGrid::Point::infos ( const std::string &  name0 = "") const
inline

Definition at line 222 of file point.hh.

const msbGrid :: Marker& msbGrid::Point::marker ( ) const
inline

Definition at line 121 of file point.hh.

msbGrid :: Marker& msbGrid::Point::marker ( )
inline

Definition at line 124 of file point.hh.

const std :: vector< Point * > msbGrid::Point::onBlockBoundvpNeighbor1 ( ) const
inline

Definition at line 109 of file point.hh.

const std :: vector< Scalar >& msbGrid::Point::pos ( ) const
inline

Definition at line 88 of file point.hh.

void msbGrid::Point::rotate ( const Scalar _angle,
const Point mc 
)
inline

Definition at line 140 of file point.hh.

void msbGrid::Point::translate ( const std::vector< Scalar > &  dx)
inline

Definition at line 133 of file point.hh.

const std :: vector< Point * >& msbGrid::Point::vpNeighbor0 ( ) const
inline

Definition at line 97 of file point.hh.

std :: vector< Point * >& msbGrid::Point::vpNeighbor0 ( )
inline

Definition at line 100 of file point.hh.

const std :: vector< Point * >& msbGrid::Point::vpNeighbor1 ( ) const
inline

Definition at line 103 of file point.hh.

std :: vector< Point * >& msbGrid::Point::vpNeighbor1 ( )
inline

Definition at line 106 of file point.hh.

const std :: vector< Scalar >& msbGrid::Point::x ( ) const
inline

Definition at line 91 of file point.hh.

std :: vector< Scalar >& msbGrid::Point::x ( )
inline

Definition at line 94 of file point.hh.

Friends And Related Function Documentation

const Scalar angle ( const Point a,
const Point b,
const Point c 
)
friend

angle abc : angle (in degrees) between ab and bc

Definition at line 167 of file point.hh.

const bool colinear ( const Point a,
const Point b,
const Point c 
)
friend

Definition at line 180 of file point.hh.

const Scalar eucDistance ( const Point pt0,
const Point pt1 
)
friend

Definition at line 155 of file point.hh.

const std :: vector< Point * > notMarked ( const std::vector< Point * > &  vPt0)
friend

Definition at line 185 of file point.hh.

template<typename VEdgePtrT >
const bool pointWith3BoundaryEdges ( const VEdgePtrT &  vEd0)
friend

Definition at line 210 of file point.hh.

const bool superposed ( const Point pt0,
const Point pt1 
)
friend

Definition at line 198 of file point.hh.

Member Data Documentation

Scalar msbGrid::Point::cl_
private

Definition at line 52 of file point.hh.

Marker msbGrid::Point::marker_
private

Definition at line 49 of file point.hh.

std :: vector< Point * > msbGrid::Point::vpNeighbor0_
private

Definition at line 45 of file point.hh.

std :: vector< Point * > msbGrid::Point::vpNeighbor1_
private

Definition at line 46 of file point.hh.

std :: vector< Scalar > msbGrid::Point::x_
private

Definition at line 43 of file point.hh.


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