#include <orthoverticeaccessor.h>
Public Member Functions | |
OrthoVerticeAccessor (const OrthoMesh &mesh, unsigned index) | |
void | operator++ (int) |
bool | operator!= (OrthoVerticeAccessor &vert) const |
Point3D | getPoint () |
bool | isValid () |
~OrthoVerticeAccessor () | |
unsigned | index () |
unsigned | index_left () const |
unsigned | index_right () const |
unsigned | index_up () const |
unsigned | index_bottom () const |
unsigned | index_front () const |
unsigned | index_back () const |
bool | at_boundary () const |
Protected Attributes | |
const OrthoMesh * | m_mesh |
unsigned | m_i |
unsigned | m_j |
unsigned | m_k |
unsigned | m_index |
Definition at line 9 of file orthoverticeaccessor.h.
OrthoVerticeAccessor::OrthoVerticeAccessor | ( | const OrthoMesh & | mesh, | |
unsigned | index | |||
) |
Definition at line 4 of file orthoverticeaccessor.cpp.
OrthoVerticeAccessor::~OrthoVerticeAccessor | ( | ) | [inline] |
Definition at line 24 of file orthoverticeaccessor.h.
bool OrthoVerticeAccessor::at_boundary | ( | ) | const |
Point3D OrthoVerticeAccessor::getPoint | ( | ) |
unsigned OrthoVerticeAccessor::index | ( | ) | [inline] |
Reimplemented in OrthoVerticeAccessorWithHoles.
Definition at line 25 of file orthoverticeaccessor.h.
00025 {return m_index;}
unsigned OrthoVerticeAccessor::index_back | ( | ) | const |
unsigned OrthoVerticeAccessor::index_bottom | ( | ) | const |
unsigned OrthoVerticeAccessor::index_front | ( | ) | const |
unsigned OrthoVerticeAccessor::index_left | ( | ) | const |
Definition at line 64 of file orthoverticeaccessor.cpp.
unsigned OrthoVerticeAccessor::index_right | ( | ) | const |
unsigned OrthoVerticeAccessor::index_up | ( | ) | const |
bool OrthoVerticeAccessor::isValid | ( | ) |
Definition at line 48 of file orthoverticeaccessor.cpp.
bool OrthoVerticeAccessor::operator!= | ( | OrthoVerticeAccessor & | vert | ) | const [inline] |
Definition at line 20 of file orthoverticeaccessor.h.
void OrthoVerticeAccessor::operator++ | ( | int | ) |
Reimplemented in OrthoVerticeAccessorWithHoles.
Definition at line 14 of file orthoverticeaccessor.cpp.
00015 { 00016 assert(this->isValid()); 00017 assert(m_index < m_mesh->numRawVertices()); 00018 m_index++; 00019 if (m_i == m_mesh->_nElemX) 00020 { 00021 m_i=0; 00022 if (m_j == m_mesh->_nElemY) 00023 { 00024 m_j=0; 00025 m_k++; 00026 } 00027 else 00028 m_j++; 00029 } 00030 else 00031 m_i++; 00032 00033 }
unsigned OrthoVerticeAccessor::m_i [protected] |
Definition at line 15 of file orthoverticeaccessor.h.
unsigned OrthoVerticeAccessor::m_index [protected] |
Definition at line 15 of file orthoverticeaccessor.h.
unsigned OrthoVerticeAccessor::m_j [protected] |
Definition at line 15 of file orthoverticeaccessor.h.
unsigned OrthoVerticeAccessor::m_k [protected] |
Definition at line 15 of file orthoverticeaccessor.h.
const OrthoMesh* OrthoVerticeAccessor::m_mesh [protected] |
Definition at line 14 of file orthoverticeaccessor.h.