Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Functions | Variables
CAlphaMapCalculator Namespace Reference

Classes

struct  Blend4
 
struct  Blend8
 

Functions

template<class T >
bool MatchBlendShapeFlipped (const T &templateshape, const T &shape, unsigned int &flags)
 
template<class T >
int MatchBlendShape (const T &templateshape, const T &shape, unsigned int &flags)
 
template<class S , class T >
int LookupBlend (int tableSize, const S *table, const T &shape, unsigned int &flags)
 
int Calculate (BlendShape8 shape, unsigned int &flags)
 

Variables

const Blend4 Blends1Neighbour []
 
const Blend4 Blends2Neighbour []
 
const Blend8 Blends2Neighbour8 []
 
const Blend4 Blends3Neighbour []
 
const Blend8 Blends3Neighbour8 []
 
const Blend8 Blends4Neighbour8 []
 
const Blend8 Blends5Neighbour8 []
 
const Blend8 Blends6Neighbour8 []
 
const Blend8 Blends7Neighbour8 []
 

Function Documentation

int CAlphaMapCalculator::Calculate ( BlendShape8  shape,
unsigned int &  flags 
)

Definition at line 238 of file AlphaMapCalculator.cpp.

template<class S , class T >
int CAlphaMapCalculator::LookupBlend ( int  tableSize,
const S *  table,
const T shape,
unsigned int &  flags 
)

Definition at line 218 of file AlphaMapCalculator.cpp.

template<class T >
int CAlphaMapCalculator::MatchBlendShape ( const T templateshape,
const T shape,
unsigned int &  flags 
)

Definition at line 179 of file AlphaMapCalculator.cpp.

template<class T >
bool CAlphaMapCalculator::MatchBlendShapeFlipped ( const T templateshape,
const T shape,
unsigned int &  flags 
)

Definition at line 149 of file AlphaMapCalculator.cpp.

Variable Documentation

const Blend4 CAlphaMapCalculator::Blends1Neighbour[]
Initial value:
=
{
}

Definition at line 56 of file AlphaMapCalculator.cpp.

const Blend4 CAlphaMapCalculator::Blends2Neighbour[]
Initial value:
=
{
Blend4(BlendShape4(0,1,1,0), 7),
}

Definition at line 62 of file AlphaMapCalculator.cpp.

const Blend8 CAlphaMapCalculator::Blends2Neighbour8[]
Initial value:
=
{
Blend8(BlendShape8(1,1,0,0,0,0,0,0), 12),
Blend8(BlendShape8(1,0,0,0,0,1,0,0), 12),
Blend8(BlendShape8(0,1,0,1,0,0,0,0), 0) ,
}

Definition at line 68 of file AlphaMapCalculator.cpp.

const Blend4 CAlphaMapCalculator::Blends3Neighbour[]
Initial value:
=
{
}

Definition at line 76 of file AlphaMapCalculator.cpp.

const Blend8 CAlphaMapCalculator::Blends3Neighbour8[]
Initial value:
=
{
Blend8(BlendShape8(1,1,0,0,1,0,0,0), 10),
Blend8(BlendShape8(1,1,0,0,0,0,0,1), 12),
Blend8(BlendShape8(1,1,1,0,0,0,0,0), 1),
Blend8(BlendShape8(0,1,1,0,1,0,0,0), 7),
Blend8(BlendShape8(0,0,1,0,1,0,1,0), 4),
Blend8(BlendShape8(1,1,0,0,0,1,0,0), 12),
Blend8(BlendShape8(1,1,0,1,0,0,0,0), 12),
Blend8(BlendShape8(0,0,1,0,1,0,0,1), 7),
Blend8(BlendShape8(1,0,0,1,0,1,0,0), 12),
}

Definition at line 81 of file AlphaMapCalculator.cpp.

const Blend8 CAlphaMapCalculator::Blends4Neighbour8[]
Initial value:
=
{
Blend8(BlendShape8(1,1,0,0,1,0,0,1), 10),
Blend8(BlendShape8(1,1,0,1,1,0,0,0), 10),
Blend8(BlendShape8(1,1,0,0,1,1,0,0), 10),
Blend8(BlendShape8(1,1,0,1,0,0,0,1), 12),
Blend8(BlendShape8(0,1,1,0,1,1,0,0), 7),
Blend8(BlendShape8(1,1,1,1,0,0,0,0), 1),
Blend8(BlendShape8(1,1,1,0,1,0,0,0), 3),
Blend8(BlendShape8(0,0,1,0,1,1,0,1), 7),
Blend8(BlendShape8(1,0,1,0,1,1,0,0), 4),
Blend8(BlendShape8(1,1,1,0,0,1,0,0), 1),
Blend8(BlendShape8(1,1,0,1,0,1,0,0), 12),
}

Definition at line 95 of file AlphaMapCalculator.cpp.

const Blend8 CAlphaMapCalculator::Blends5Neighbour8[]
Initial value:
=
{
Blend8(BlendShape8(1,1,1,1,1,0,0,0), 2),
Blend8(BlendShape8(1,1,1,1,0,0,0,1), 1),
Blend8(BlendShape8(1,1,1,0,1,0,0,1), 3),
Blend8(BlendShape8(1,1,1,0,1,0,1,0), 11),
Blend8(BlendShape8(1,1,1,0,0,1,0,1), 1),
Blend8(BlendShape8(1,1,0,1,1,1,0,0), 10),
Blend8(BlendShape8(1,1,1,0,1,1,0,0), 3),
Blend8(BlendShape8(1,0,1,0,1,1,0,1), 4),
Blend8(BlendShape8(1,1,0,1,0,1,0,1), 12),
}

Definition at line 111 of file AlphaMapCalculator.cpp.

const Blend8 CAlphaMapCalculator::Blends6Neighbour8[]
Initial value:
=
{
Blend8(BlendShape8(1,1,1,1,1,1,0,0), 2),
Blend8(BlendShape8(1,1,1,1,1,0,1,0), 8),
Blend8(BlendShape8(1,1,1,1,0,1,0,1), 1),
Blend8(BlendShape8(1,1,1,0,1,1,1,0), 6),
Blend8(BlendShape8(1,1,1,0,1,1,0,1), 3),
}

Definition at line 125 of file AlphaMapCalculator.cpp.

const Blend8 CAlphaMapCalculator::Blends7Neighbour8[]
Initial value:
=
{
Blend8(BlendShape8(1,1,1,1,1,1,0,1), 2),
}

Definition at line 135 of file AlphaMapCalculator.cpp.