Structural deformable models
Public Types | Public Member Functions | Public Attributes | List of all members
EMDistribution Class Reference

#include <ExpMap.h>

Inheritance diagram for EMDistribution:
Inheritance graph
[legend]
Collaboration diagram for EMDistribution:
Collaboration graph
[legend]

Public Types

enum  EDFlags { ED_NONE =0, ED_OLD =1 }
 

Public Member Functions

 EMDistribution ()
 
virtual ~EMDistribution ()
 
virtual PropVec getPropVec () const
 
virtual void setIntegral (float integral)
 
virtual EMDistributioncopy () const
 
virtual float ratePropVec (const PropVec &prop, Winner *winner=NULL) const
 
void setCreator (const Winner &creator)
 
void setShootCount (dword scount)
 
dword getShootCount () const
 
bool hasFlags (dword flags) const
 
void setFlags (dword flags)
 
void unsetFlags (dword flags=0xffffffff)
 

Public Attributes

float m_Integral
 
Winner m_Creator
 
dword m_ShootCount
 
dword m_Flags
 

Detailed Description

Definition at line 44 of file ExpMap.h.

Member Enumeration Documentation

Enumerator
ED_NONE 
ED_OLD 

Definition at line 46 of file ExpMap.h.

Constructor & Destructor Documentation

EMDistribution::EMDistribution ( )
inline

Definition at line 47 of file ExpMap.h.

47 : m_Integral(1.f), m_ShootCount(0), m_Flags(ED_NONE) {};
float m_Integral
Definition: ExpMap.h:67
dword m_ShootCount
Definition: ExpMap.h:69
dword m_Flags
Definition: ExpMap.h:70
virtual EMDistribution::~EMDistribution ( )
inlinevirtual

Definition at line 48 of file ExpMap.h.

48 {}

Member Function Documentation

virtual EMDistribution* EMDistribution::copy ( ) const
inlinevirtual

Reimplemented in ExpectationMap, EMDXformer, EMDGauss, and EMDRect.

Definition at line 53 of file ExpMap.h.

Referenced by EMDXformer::copy().

53  {
54  return new EMDistribution(*this);
55  }
EMDistribution()
Definition: ExpMap.h:47
virtual PropVec EMDistribution::getPropVec ( ) const
inlinevirtual

Reimplemented in ExpectationMap, EMDXformer, EMDGauss, and EMDRect.

Definition at line 49 of file ExpMap.h.

50  { return PropVec(0.); }
VVector< float, 4 > PropVec
Definition: PropVec.h:8
dword EMDistribution::getShootCount ( ) const
inline

Definition at line 62 of file ExpMap.h.

Referenced by MStructure::addExpectation(), and ExpectationMap::getShootCount().

62 { return m_ShootCount; }
dword m_ShootCount
Definition: ExpMap.h:69
bool EMDistribution::hasFlags ( dword  flags) const
inline

Definition at line 63 of file ExpMap.h.

63 { return m_Flags&flags; }
dword m_Flags
Definition: ExpMap.h:70
virtual float EMDistribution::ratePropVec ( const PropVec prop,
Winner winner = NULL 
) const
inlinevirtual

Reimplemented in ExpectationMap, EMDXformer, EMDGauss, and EMDRect.

Definition at line 56 of file ExpMap.h.

Referenced by MStructure::showStats().

57  { return 0; }
void EMDistribution::setCreator ( const Winner creator)
inline

Definition at line 58 of file ExpMap.h.

Referenced by MStructure::addExpectation().

58  {
59  m_Creator = creator;
60  }
Winner m_Creator
Definition: ExpMap.h:68
void EMDistribution::setFlags ( dword  flags)
inline

Definition at line 64 of file ExpMap.h.

64 { m_Flags |= flags; }
dword m_Flags
Definition: ExpMap.h:70
virtual void EMDistribution::setIntegral ( float  integral)
inlinevirtual

Definition at line 51 of file ExpMap.h.

Referenced by MStructure::addExpectation().

52  { m_Integral = integral; }
float m_Integral
Definition: ExpMap.h:67
void EMDistribution::setShootCount ( dword  scount)
inline

Definition at line 61 of file ExpMap.h.

Referenced by MStructure::addExpectation().

61 { m_ShootCount = scount; }
dword m_ShootCount
Definition: ExpMap.h:69
void EMDistribution::unsetFlags ( dword  flags = 0xffffffff)
inline

Definition at line 65 of file ExpMap.h.

65 { m_Flags &= ~flags; }
dword m_Flags
Definition: ExpMap.h:70

Member Data Documentation

Winner EMDistribution::m_Creator

Definition at line 68 of file ExpMap.h.

Referenced by ExpectationMap::add().

dword EMDistribution::m_Flags

Definition at line 70 of file ExpMap.h.

float EMDistribution::m_Integral
dword EMDistribution::m_ShootCount

Definition at line 69 of file ExpMap.h.


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