|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object common:Generic common:TrapMode common:TrapModeWithThreshold Standard:Standard_TrapModeBase Standard:Standard_TrapModeTwoBase Standard:Standard_TrapModeTwoClosest
class
class Standard_TrapModeTwoClosest(Standard_TrapModeTwoBase) { public: func Init(complex pz) Standard_TrapModeBase.Init(pz) m_Distances[0] = 1e38 m_Distances[1] = 1e38 endfunc func Iterate(complex pz, complex pzt, float pdistance, float ptexture) Standard_TrapModeBase.Iterate(pz, pzt, pdistance, ptexture) if pdistance < m_Distances[0] MoveTrapInfo() SetTrapInfo(0, pz, pzt, pdistance) elseif pdistance < m_Distances[1] SetTrapInfo(1, pz, pzt, pdistance) endif if pdistance < m_Threshold m_Solid = false endif endfunc default: title = "Two Closest" }
Constructor Summary | |
---|---|
Standard_TrapModeTwoClosest()
|
Method Summary | |
---|---|
void |
Init(complex pz)
Calls the inherited Init() and also sets m_Solid to true because this is the initial condition for most trap modes. |
void |
Iterate(complex pz,
complex pzt,
float pdistance,
float ptexture)
call this for each point |
Methods inherited from class Standard:Standard_TrapModeTwoBase |
---|
MoveTrapInfo, Result, ResultSubtract |
Methods inherited from class Standard:Standard_TrapModeBase |
---|
SetTrapInfo |
Methods inherited from class common:TrapModeWithThreshold |
---|
GetThreshold, SetThreshold, UsesThreshold |
Methods inherited from class common:TrapMode |
---|
GetDistance, GetIteration, GetTexture, GetTransformedPoint, GetUntransformedPoint, IsSolid, IterateSilent |
Methods inherited from class common:Generic |
---|
GetParent |
Methods inherited from class Object |
---|
|
Constructor Detail |
---|
public Standard_TrapModeTwoClosest()
Method Detail |
---|
public void Init(complex pz)
Standard_TrapModeBase
Init
in class Standard_TrapModeBase
public void Iterate(complex pz, complex pzt, float pdistance, float ptexture)
TrapMode
Iterate
in class TrapMode
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |