Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
INode Class Reference

#include <HDS_overlay.h>

Inheritance diagram for INode:
Collaboration diagram for INode:

Public Types

typedef INode Self
 
typedef Halfedge_overlay Halfedge
 
typedef In_place_list_n_base
< INode, 2 > 
Base
 

Public Member Functions

 INode ()
 
 ~INode ()
 
bool operator== (const INode &x)
 
const Point_2Snat_coor (const int color) const
 
void nat_coor (const int color, Point_2 &p) const
 
void set_parent (Halfedge *h, const Point_2 &p, int color)
 
int id () const
 
void set_id (int i)
 
Parent_type parent_type (const int color) const
 
Parent_type blue_parent_type () const
 
Parent_type green_parent_type () const
 
Halfedgehalfedge (const int color) const
 
Halfedgeblue_halfedge () const
 
Halfedgegreen_halfedge () const
 

Protected Attributes

Host_face bp
 
Host_face gp
 
Point_2S b_nc
 
Point_2S g_nc
 
int _id
 

Private Member Functions

Parent_type pt (const Point_2 &p)
 
- Private Member Functions inherited from In_place_list_n_base< INode, 2 >
 In_place_list_n_base ()
 

Additional Inherited Members

- Private Attributes inherited from In_place_list_n_base< INode, 2 >
INodenext_link [n]
 
INodeprev_link [n]
 

Detailed Description

Definition at line 305 of file HDS_overlay.h.

Member Typedef Documentation

Definition at line 309 of file HDS_overlay.h.

Definition at line 308 of file HDS_overlay.h.

typedef INode Self

Definition at line 307 of file HDS_overlay.h.

Constructor & Destructor Documentation

INode ( )
inline

Definition at line 321 of file HDS_overlay.h.

321 : _id(-1) {}
int _id
Definition: HDS_overlay.h:318
~INode ( )
inline

Definition at line 322 of file HDS_overlay.h.

References bp, gp, and RFC_assertion_code.

Host_face bp
Definition: HDS_overlay.h:314
#define RFC_assertion_code
Definition: rfc_basic.h:68
Host_face gp
Definition: HDS_overlay.h:315

Member Function Documentation

Halfedge* blue_halfedge ( ) const
inline

Definition at line 361 of file HDS_overlay.h.

References bp, and Host_face::halfedge().

361 { return bp.halfedge(); }
Halfedge_overlay * halfedge() const
Definition: HDS_overlay.h:295
Host_face bp
Definition: HDS_overlay.h:314

Here is the call graph for this function:

Parent_type blue_parent_type ( ) const
inline

Definition at line 354 of file HDS_overlay.h.

References bp, and Host_face::parent_type().

354 { return bp.parent_type(); }
Parent_type parent_type() const
Definition: HDS_overlay.h:297
Host_face bp
Definition: HDS_overlay.h:314

Here is the call graph for this function:

Halfedge* green_halfedge ( ) const
inline

Definition at line 362 of file HDS_overlay.h.

References gp, and Host_face::halfedge().

362 { return gp.halfedge(); }
Halfedge_overlay * halfedge() const
Definition: HDS_overlay.h:295
Host_face gp
Definition: HDS_overlay.h:315

Here is the call graph for this function:

Parent_type green_parent_type ( ) const
inline

Definition at line 355 of file HDS_overlay.h.

References gp, and Host_face::parent_type().

355 { return gp.parent_type(); }
Parent_type parent_type() const
Definition: HDS_overlay.h:297
Host_face gp
Definition: HDS_overlay.h:315

Here is the call graph for this function:

Halfedge* halfedge ( const int  color) const
inline
int id ( ) const
inline

Definition at line 347 of file HDS_overlay.h.

References _id.

Referenced by Overlay::get_subnode_copies(), Overlay::get_subnode_id(), and Overlay::set_subnode_id().

347 { return _id; }
int _id
Definition: HDS_overlay.h:318

Here is the caller graph for this function:

const Point_2S& nat_coor ( const int  color) const
inline

Definition at line 327 of file HDS_overlay.h.

References b_nc, BLUE, g_nc, GREEN, and RFC_assertion.

Referenced by Overlay::convert_nat_coordinates(), Overlay::get_edge_parent(), Overlay::get_nat_coor(), Overlay::insert_node_in_blue_edge(), Overlay::insert_node_in_green_edge(), Overlay::intersect_blue_with_green(), Overlay::write_inodes_tec(), and Overlay::write_inodes_vec().

327  {
328  if ( color == BLUE) return b_nc;
329  else { RFC_assertion(color == GREEN); return g_nc; }
330  }
Point_2S g_nc
Definition: HDS_overlay.h:317
const Color GREEN
Definition: Color.C:59
const Color BLUE
Definition: Color.C:62
Point_2S b_nc
Definition: HDS_overlay.h:316
#define RFC_assertion
Definition: rfc_basic.h:65

Here is the caller graph for this function:

void nat_coor ( const int  color,
Point_2 p 
) const
inline

Definition at line 332 of file HDS_overlay.h.

References b_nc, BLUE, g_nc, GREEN, and RFC_assertion.

332  {
333  if ( color == BLUE) { p[0]=b_nc[0]; p[1]=b_nc[1]; }
334  else { RFC_assertion(color == GREEN); p[0]=g_nc[0]; p[1]=g_nc[1]; }
335  }
Point_2S g_nc
Definition: HDS_overlay.h:317
const Color GREEN
Definition: Color.C:59
const Color BLUE
Definition: Color.C:62
Point_2S b_nc
Definition: HDS_overlay.h:316
#define RFC_assertion
Definition: rfc_basic.h:65
bool operator== ( const INode x)
inline

Definition at line 324 of file HDS_overlay.h.

References b_nc, bp, g_nc, and gp.

325  { return ( b_nc == x.b_nc && g_nc == x.g_nc && bp == x.bp && gp == x.gp); }
Point_2S g_nc
Definition: HDS_overlay.h:317
Host_face bp
Definition: HDS_overlay.h:314
Point_2S b_nc
Definition: HDS_overlay.h:316
Host_face gp
Definition: HDS_overlay.h:315
Parent_type parent_type ( const int  color) const
inline
Parent_type pt ( const Point_2 p)
inlineprivate

Definition at line 365 of file HDS_overlay.h.

References PARENT_EDGE, PARENT_FACE, and PARENT_VERTEX.

Referenced by set_parent().

365  {
366  if ( p[1] != 0) return PARENT_FACE;
367  else if ( p[0] != 0) return PARENT_EDGE;
368  else return PARENT_VERTEX;
369  }

Here is the caller graph for this function:

void set_id ( int  i)
inline

Definition at line 348 of file HDS_overlay.h.

References _id, and i.

348 { _id = i; }
blockLoc i
Definition: read.cpp:79
int _id
Definition: HDS_overlay.h:318
void set_parent ( Halfedge h,
const Point_2 p,
int  color 
)
inline

Definition at line 337 of file HDS_overlay.h.

References b_nc, BLUE, bp, g_nc, gp, GREEN, pt(), and RFC_assertion.

Referenced by Overlay::insert_node_in_blue_edge(), Overlay::insert_node_in_green_edge(), Overlay::intersect_blue_with_green(), Overlay::match_features_0(), Overlay::overlay_init(), Overlay::project_adjacent_green_vertices(), and HDS_accessor< Tag_true >::set_parent().

337  {
338  if ( color == BLUE) {
339  bp = Host_face( h, pt(p)); b_nc[0]=p[0]; b_nc[1]=p[1];
340  }
341  else {
342  RFC_assertion( color == GREEN);
343  gp = Host_face( h, pt(p)); g_nc[0]=p[0]; g_nc[1]=p[1];
344  }
345  }
Point_2S g_nc
Definition: HDS_overlay.h:317
const Color GREEN
Definition: Color.C:59
Host_face bp
Definition: HDS_overlay.h:314
Parent_type pt(const Point_2 &p)
Definition: HDS_overlay.h:365
const Color BLUE
Definition: Color.C:62
Point_2S b_nc
Definition: HDS_overlay.h:316
Host_face gp
Definition: HDS_overlay.h:315
#define RFC_assertion
Definition: rfc_basic.h:65

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

int _id
protected

Definition at line 318 of file HDS_overlay.h.

Referenced by id(), and set_id().

Point_2S b_nc
protected

Definition at line 316 of file HDS_overlay.h.

Referenced by nat_coor(), operator==(), and set_parent().

Host_face bp
protected
Point_2S g_nc
protected

Definition at line 317 of file HDS_overlay.h.

Referenced by nat_coor(), operator==(), and set_parent().

Host_face gp
protected

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