|
IPCC
1.0
|
Class for coordination. More...
#include "KNGeometricCoordination.h"

Public Member Functions | |
| CKNGeometricCoordination () | |
| ~CKNGeometricCoordination () | |
| double * | GetCoordinationAll () |
| void | SetCoordination (CKNGeometricCoordination coordination) |
| Get coordination with double buffer. More... | |
| void | SetCoordination (double *pfCoordination) |
| Set coordination to instance. More... | |
| void | SetCoordination (double fXCoordination, double fYCoordination, double fZCoordination) |
| Set coordination to instance. More... | |
| double | GetCoordination (AXIS_DEFINE coord) |
| Get coordination specific axis. More... | |
| void | Rotate (AXIS_DEFINE axis, double fDegree) |
| Rotate coordination with specific degree. More... | |
| void | SetOffset (CKNGeometricCoordination coord) |
| To offset coordination. More... | |
| void | SetOffset (double fXCoordination, double fYCoordination, double fZCoordination) |
| To offset coordination. More... | |
| void | SetRatio (double fRatio[3]) |
| Set ratio. More... | |
| bool | IsSame (CKNGeometricCoordination compare) |
| Comparing coordination is same or not within tolerance. More... | |
| bool | operator== (const CKNGeometricCoordination &compare) |
| Comparing coordination is same or not within tolerance. More... | |
| bool | operator!= (const CKNGeometricCoordination &compare) |
| Comparing coordination is same or not within tolerance. More... | |
Private Attributes | |
| double | m_fCoordination [3] |
| Cooridnation for x, y, z direction. More... | |
| CKNGeometricCoordination::CKNGeometricCoordination | ( | ) |
Definition at line 11 of file KNGeometricCoordination.cpp.
References _X, _Y, _Z, and m_fCoordination.
| CKNGeometricCoordination::~CKNGeometricCoordination | ( | ) |
Definition at line 18 of file KNGeometricCoordination.cpp.
| double CKNGeometricCoordination::GetCoordination | ( | AXIS_DEFINE | coord | ) |
Get coordination specific axis.
| coord | Axis that want to get coordination |
Definition at line 48 of file KNGeometricCoordination.cpp.
References m_fCoordination.
Referenced by CKNGeometricShape::ArrangeUnitCell(), CKNGeometricShape::CalculateUnitcellCount(), CKNGeometricShape::ConstructMapInfo(), CKNGeometricUnitCell::NumberingSubElement(), CKNGeometricShape::RefillPeriodicBinding(), CKNGeometricShape::SetAtomAndNeighborInformation(), SetOffset(), and CKNGeometricUnitCell::SetSubDomainMaterial().

|
inline |
Definition at line 22 of file KNGeometricCoordination.h.
References m_fCoordination.
Referenced by CKNGeometricShape::ArrangeUnitCell(), IsSame(), SetCoordination(), CKNGeometricUnitCell::SetCoordination(), and CKNGeometricAtom::SetCoordination().

| bool CKNGeometricCoordination::IsSame | ( | CKNGeometricCoordination | compare | ) |
Comparing coordination is same or not within tolerance.
| compare | Coordination that want to compare |
Definition at line 110 of file KNGeometricCoordination.cpp.
References _X, _Y, _Z, GetCoordinationAll(), and m_fCoordination.
Referenced by operator!=(), and operator==().


| bool CKNGeometricCoordination::operator!= | ( | const CKNGeometricCoordination & | compare | ) |
Comparing coordination is same or not within tolerance.
| compare | Coordination that want to compare |
Definition at line 140 of file KNGeometricCoordination.cpp.
References IsSame().

| bool CKNGeometricCoordination::operator== | ( | const CKNGeometricCoordination & | compare | ) |
Comparing coordination is same or not within tolerance.
| compare | Coordination that want to compare |
Definition at line 131 of file KNGeometricCoordination.cpp.
References IsSame().

| void CKNGeometricCoordination::Rotate | ( | AXIS_DEFINE | axis, |
| double | fDegree | ||
| ) |
Rotate coordination with specific degree.
| axis | Rotate axis x, y, z |
| fDegree | Rotate degree |
Definition at line 57 of file KNGeometricCoordination.cpp.
References _X, _Y, _Z, and m_fCoordination.
|
inline |
Get coordination with double buffer.
Definition at line 23 of file KNGeometricCoordination.h.
References GetCoordinationAll(), and SetCoordination().
Referenced by CKNGeometricShape::ArrangeUnitCell(), CKNGeometricAtom::CKNGeometricAtom(), CKNGeometricShape::InitShape(), SetCoordination(), CKNGeometricUnitCell::SetCoordination(), CKNGeometricAtom::SetCoordination(), CKNGeometricAtomFactory::SetNeighborCoordination(), IKNGeometricUnitCellInfo::SetNeighborCoordination(), and CKNGeometricShape::SetOriginCoordination().


| void CKNGeometricCoordination::SetCoordination | ( | double * | pfCoordination | ) |
Set coordination to instance.
Set coordination to instance
| pfCoordination | Array of coordination of x, y, z direction |
Definition at line 25 of file KNGeometricCoordination.cpp.
References _X, _Y, _Z, and m_fCoordination.
| void CKNGeometricCoordination::SetCoordination | ( | double | fXCoordination, |
| double | fYCoordination, | ||
| double | fZCoordination | ||
| ) |
Set coordination to instance.
| fXCoordination | X axis coordination |
| fYCoordination | Y axis coordination |
| fZCoordination | Z axis coordination |
Definition at line 37 of file KNGeometricCoordination.cpp.
References _X, _Y, _Z, and m_fCoordination.
| void CKNGeometricCoordination::SetOffset | ( | CKNGeometricCoordination | coord | ) |
To offset coordination.
| coord | Offset value |
Definition at line 79 of file KNGeometricCoordination.cpp.
References _X, _Y, _Z, and GetCoordination().
Referenced by CKNGeometricUnitCell::ArrangeAtom(), CKNGeometricShape::ArrangeUnitCell(), CKNGeometricShape::CalculateUnitcellCount(), and CKNGeometricUnitCell::IsMachedNeighborRule().


| void CKNGeometricCoordination::SetOffset | ( | double | fXCoordination, |
| double | fYCoordination, | ||
| double | fZCoordination | ||
| ) |
To offset coordination.
| fXCoordination | Offset value of x axis |
| fYCoordination | Offset value of y axis |
| fZCoordination | Offset value of z axis |
Definition at line 89 of file KNGeometricCoordination.cpp.
References _X, _Y, _Z, and m_fCoordination.
| void CKNGeometricCoordination::SetRatio | ( | double | fRatio[3] | ) |
Set ratio.
| fRatio | Ratio value |
Definition at line 99 of file KNGeometricCoordination.cpp.
References _X, _Y, _Z, and m_fCoordination.
Referenced by CKNGeometricAtom::SetRatio().

|
private |
Cooridnation for x, y, z direction.
Definition at line 37 of file KNGeometricCoordination.h.
Referenced by CKNGeometricCoordination(), GetCoordination(), GetCoordinationAll(), IsSame(), Rotate(), SetCoordination(), SetOffset(), and SetRatio().