ug4
ug::ConstrainedVertex Class Reference

A vertex appearing on edges or faces. More...

#include <grid_objects_0d.h>

+ Inheritance diagram for ug::ConstrainedVertex:

Public Member Functions

 ConstrainedVertex ()
 
virtual int container_section () const
 
virtual GridObjectcreate_empty_instance () const
 create an instance of the derived type More...
 
GridObjectget_constraining_object ()
 
number get_local_coordinate_1 () const
 
number get_local_coordinate_2 () const
 
const vector2get_local_coordinates () const
 
int get_parent_base_object_id ()
 
virtual bool is_constrained () const
 returns true if the object is constrained by other objects. More...
 
virtual ReferenceObjectID reference_object_id () const
 
virtual void remove_constraint_link (const Edge *e)
 removes a constraint link to the grid object. More...
 
virtual void remove_constraint_link (const Face *f)
 removes a constraint link to the grid object. More...
 
void set_constraining_object (GridObject *constrObj)
 
void set_local_coordinate_1 (number coord)
 
void set_local_coordinate_2 (number coord)
 
void set_local_coordinates (const vector2 &coords)
 
void set_local_coordinates (number x, number y)
 
void set_parent_base_object_id (int id)
 
virtual ~ConstrainedVertex ()
 
- Public Member Functions inherited from ug::Vertex
virtual int base_object_id () const
 
uint32 get_hash_value () const
 returns a value that can be used for hashing. More...
 
uint num_sides () const
 
virtual ~Vertex ()
 
- Public Member Functions inherited from ug::GridObject
uint grid_data_index () const
 Returns the grid attachment data index of a geometric object. More...
 
virtual bool is_constraining () const
 returns the id of the reference-object. More...
 
virtual ~GridObject ()
 
virtual void remove_constraint_link (const Vertex *vrt)
 removes a constraint link to the grid object. More...
 

Static Public Member Functions

static bool type_match (GridObject *pObj)
 
- Static Public Member Functions inherited from ug::Vertex
static bool type_match (GridObject *pObj)
 

Protected Attributes

GridObjectm_constrainingObj
 
vector2 m_localCoord
 
int m_parentBaseObjectId
 
- Protected Attributes inherited from ug::Vertex
uint32 m_hashValue
 
- Protected Attributes inherited from ug::GridObject
uint m_gridDataIndex
 

Friends

class Grid
 

Additional Inherited Members

- Public Types inherited from ug::Vertex
typedef Vertex grid_base_object
 
typedef Edge higher_dim_base_object
 
typedef void lower_dim_base_object
 
typedef Vertex side
 
typedef Edge sideof
 
- Static Public Attributes inherited from ug::Vertex
static const int BASE_OBJECT_ID = VERTEX
 
static const bool CAN_BE_SIDE = true
 
static const int dim = 0
 reference dimension More...
 
static const bool HAS_SIDES = false
 
static const size_t NUM_VERTICES = 1
 
- Protected Member Functions inherited from ug::GridObject
void set_grid_data_index (uint index)
 ATTENTION: Use this method with extreme care! More...
 

Detailed Description

A vertex appearing on edges or faces.

ConstrainedVertices appear during hanging-vertex-refinement. They should be treated with care, since they are often referenced by other elements, as e.g. by a ConstrainingEdge.

Constructor & Destructor Documentation

◆ ConstrainedVertex()

ug::ConstrainedVertex::ConstrainedVertex ( )
inline

◆ ~ConstrainedVertex()

virtual ug::ConstrainedVertex::~ConstrainedVertex ( )
inlinevirtual

Member Function Documentation

◆ container_section()

virtual int ug::ConstrainedVertex::container_section ( ) const
inlinevirtual

Reimplemented from ug::Vertex.

References ug::CSVRT_CONSTRAINED_VERTEX.

◆ create_empty_instance()

virtual GridObject* ug::ConstrainedVertex::create_empty_instance ( ) const
inlinevirtual

create an instance of the derived type

Make sure to overload this method in derivates of this class!

Reimplemented from ug::GridObject.

◆ get_constraining_object()

◆ get_local_coordinate_1()

number ug::ConstrainedVertex::get_local_coordinate_1 ( ) const
inline

◆ get_local_coordinate_2()

number ug::ConstrainedVertex::get_local_coordinate_2 ( ) const
inline

◆ get_local_coordinates()

const vector2& ug::ConstrainedVertex::get_local_coordinates ( ) const
inline

◆ get_parent_base_object_id()

int ug::ConstrainedVertex::get_parent_base_object_id ( )
inline

◆ is_constrained()

virtual bool ug::ConstrainedVertex::is_constrained ( ) const
inlinevirtual

returns true if the object is constrained by other objects.

This is normally only the case for special constrained objects. The default implementation returns false.

Reimplemented from ug::GridObject.

◆ reference_object_id()

virtual ReferenceObjectID ug::ConstrainedVertex::reference_object_id ( ) const
inlinevirtual

A reference object represents a class of geometric objects. Tetrahedrons, Triangles etc are such classes. Reference ids should be defined in the file in which concrete geometric objects are defined.

Reimplemented from ug::Vertex.

References ug::ROID_VERTEX.

◆ remove_constraint_link() [1/2]

virtual void ug::ConstrainedVertex::remove_constraint_link ( const Edge e)
inlinevirtual

removes a constraint link to the grid object.

This method is e.g. called on the constraining edges of a constrained vertex as soon as the constrained vertex is deleted.

Reimplemented from ug::GridObject.

◆ remove_constraint_link() [2/2]

virtual void ug::ConstrainedVertex::remove_constraint_link ( const Face f)
inlinevirtual

removes a constraint link to the grid object.

This method is e.g. called on the constraining edges of a constrained vertex as soon as the constrained vertex is deleted.

Reimplemented from ug::GridObject.

◆ set_constraining_object()

◆ set_local_coordinate_1()

void ug::ConstrainedVertex::set_local_coordinate_1 ( number  coord)
inline

◆ set_local_coordinate_2()

void ug::ConstrainedVertex::set_local_coordinate_2 ( number  coord)
inline

◆ set_local_coordinates() [1/2]

void ug::ConstrainedVertex::set_local_coordinates ( const vector2 coords)
inline

◆ set_local_coordinates() [2/2]

◆ set_parent_base_object_id()

void ug::ConstrainedVertex::set_parent_base_object_id ( int  id)
inline

◆ type_match()

static bool ug::ConstrainedVertex::type_match ( GridObject pObj)
inlinestatic

Friends And Related Function Documentation

◆ Grid

friend class Grid
friend

Member Data Documentation

◆ m_constrainingObj

GridObject* ug::ConstrainedVertex::m_constrainingObj
protected

◆ m_localCoord

vector2 ug::ConstrainedVertex::m_localCoord
protected

◆ m_parentBaseObjectId

int ug::ConstrainedVertex::m_parentBaseObjectId
protected

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