Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Dasher::CDasherModel Class Reference

#include </home/clem/local/src/opie/inputmethods/dasher/DasherModel.h>

Inheritance diagram for Dasher::CDasherModel:

Inheritance graph
[legend]
Collaboration diagram for Dasher::CDasherModel:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CDasherModel (CDashEditbox *Editbox, CLanguageModel *LanguageModel, bool Dimensions)
 ~CDasherModel ()
void NewFrame (unsigned long Time)
const double Framerate ()
void SetBitrate (double TargetRate)
void SetMaxBitrate (double MaxRate)
const myint Rootmin () const
const myint Rootmax () const
const myint DasherOX () const
CDasherNodeRoot () const
int Normalization () const
myint DasherY () const
bool Dimensions () const
void Dump () const
void Flush (const myint smousex, const myint smousey)
void Set_dimensions (bool dimensions)
void Tap_on_display (myint, myint, unsigned long Time)
void Start ()
void Make_root (int whichchild)
void Reparent_root (int lower, int upper)
void Reset_framerate (unsigned long Time)
CAlphabetGetAlphabet ()

Public Attributes

CAlphabetm_alphabet

Private Member Functions

CDasherNodeGet_node_under_mouse (myint smousex, myint smousey)
CDasherNodeGet_node_under_crosshair ()
void Get_new_root_coords (myint mousex, myint mousey)
void Get_string_under_mouse (const myint smousex, const myint smousey, std::vector< symbol > &str)
void Update (CDasherNode *node, CDasherNode *under, int safe)

Private Attributes

std::vector< CDasherNode * > oldroots
myint m_Rootmin
myint m_Rootmax
myint m_DasherY
myint m_DasherOX
myint m_DasherOY
bool m_Dimensions
CDashEditboxm_editbox
CLanguageModelm_languagemodel
CLanguageModel::CNodeContextLearnContext
CFrameRate m_fr
double m_dAddProb
CDasherNodem_Root

Constructor & Destructor Documentation

CDasherModel::CDasherModel CDashEditbox Editbox,
CLanguageModel LanguageModel,
bool  Dimensions
 

Definition at line 19 of file DasherModel.cpp.

References Dasher::CLanguageModel::GetRootNodeContext(), LearnContext, m_dAddProb, m_DasherOX, m_DasherOY, m_DasherY, and m_languagemodel.

CDasherModel::~CDasherModel  ) 
 

Definition at line 33 of file DasherModel.cpp.

References LearnContext, m_languagemodel, m_Root, and Dasher::CLanguageModel::ReleaseNodeContext().


Member Function Documentation

const myint Dasher::CDasherModel::DasherOX  )  const [inline]
 

Definition at line 47 of file DasherModel.h.

References m_DasherOX.

myint Dasher::CDasherModel::DasherY  )  const [inline]
 

Definition at line 50 of file DasherModel.h.

References m_DasherY.

bool Dasher::CDasherModel::Dimensions  )  const [inline]
 

Definition at line 51 of file DasherModel.h.

References m_Dimensions.

void CDasherModel::Dump  )  const
 

Definition at line 314 of file DasherModel.cpp.

References Dasher::CDasherNode::Dump_node(), and m_Root.

void Dasher::CDasherModel::Flush const myint  smousex,
const myint  smousey
 

Referenced by Dasher::CDasherView::FlushAt().

const double Dasher::CDasherModel::Framerate  )  [inline]
 

Definition at line 38 of file DasherModel.h.

References CFrameRate::Framerate(), and m_fr.

Referenced by Tap_on_display(), and Update().

void CDasherModel::Get_new_root_coords myint  mousex,
myint  mousey
[private]
 

Definition at line 185 of file DasherModel.cpp.

References LLONG_MIN, m_DasherOX, m_DasherY, m_fr, m_Rootmax, m_Rootmin, CFrameRate::Rxmax(), and CFrameRate::Steps().

Referenced by Tap_on_display().

CDasherNode * CDasherModel::Get_node_under_crosshair  )  [private]
 

Definition at line 83 of file DasherModel.cpp.

References Dasher::CDasherNode::Get_node_under(), m_DasherOX, m_DasherOY, m_Root, m_Rootmax, m_Rootmin, and Normalization().

Referenced by Tap_on_display().

CDasherNode * CDasherModel::Get_node_under_mouse myint  smousex,
myint  smousey
[private]
 

Definition at line 91 of file DasherModel.cpp.

References Dasher::CDasherNode::Get_node_under(), m_Root, m_Rootmax, m_Rootmin, and Normalization().

Referenced by Tap_on_display().

void CDasherModel::Get_string_under_mouse const myint  smousex,
const myint  smousey,
std::vector< symbol > &  str
[private]
 

Definition at line 99 of file DasherModel.cpp.

References Dasher::CDasherNode::Get_string_under(), m_Root, m_Rootmax, m_Rootmin, and Normalization().

CAlphabet* Dasher::CDasherModel::GetAlphabet  )  [inline]
 

Definition at line 67 of file DasherModel.h.

References m_alphabet.

void CDasherModel::Make_root int  whichchild  ) 
 

Definition at line 40 of file DasherModel.cpp.

References Dasher::CDasherNode::Children(), Dasher::CDasherNode::Hbnd(), Dasher::CDasherNode::Lbnd(), LearnContext, Dasher::CLanguageModel::LearnNodeSymbol(), m_editbox, m_languagemodel, m_Root, m_Rootmax, m_Rootmin, Normalization(), oldroots, Dasher::CDashEditbox::output(), range, Dasher::CDasherNode::Symbol(), and t.

void Dasher::CDasherModel::NewFrame unsigned long  Time  )  [inline]
 

Definition at line 37 of file DasherModel.h.

References m_fr, and CFrameRate::NewFrame().

Referenced by Dasher::CDasherInterface::TapOn().

int Dasher::CDasherModel::Normalization  )  const [inline]
 

Definition at line 49 of file DasherModel.h.

References m_languagemodel, and Dasher::CLanguageModel::normalization().

Referenced by Get_node_under_crosshair(), Get_node_under_mouse(), Get_string_under_mouse(), Make_root(), Dasher::CDasherView::RenderGroups(), and Start().

void CDasherModel::Reparent_root int  lower,
int  upper
 

Definition at line 63 of file DasherModel.cpp.

References Dasher::CDashEditbox::deletetext(), m_editbox, m_Root, m_Rootmax, m_Rootmin, and oldroots.

void Dasher::CDasherModel::Reset_framerate unsigned long  Time  )  [inline]
 

Definition at line 63 of file DasherModel.h.

References m_fr, and CFrameRate::Reset().

Referenced by Dasher::CDasherInterface::Unpause().

CDasherNode* Dasher::CDasherModel::Root  )  const [inline]
 

Definition at line 48 of file DasherModel.h.

References m_Root.

const myint Dasher::CDasherModel::Rootmax  )  const [inline]
 

Definition at line 46 of file DasherModel.h.

References m_Rootmax.

const myint Dasher::CDasherModel::Rootmin  )  const [inline]
 

Definition at line 45 of file DasherModel.h.

References m_Rootmin.

void Dasher::CDasherModel::Set_dimensions bool  dimensions  )  [inline]
 

Definition at line 57 of file DasherModel.h.

References m_Dimensions.

Referenced by Dasher::CDasherInterface::SetDasherDimensions().

void Dasher::CDasherModel::SetBitrate double  TargetRate  )  [inline]
 

Definition at line 41 of file DasherModel.h.

References m_fr, and CFrameRate::SetBitrate().

void Dasher::CDasherModel::SetMaxBitrate double  MaxRate  )  [inline]
 

Definition at line 42 of file DasherModel.h.

References m_fr, and CFrameRate::SetMaxBitrate().

Referenced by Dasher::CDasherInterface::ChangeMaxBitRate(), and Dasher::CDasherInterface::CreateDasherModel().

void CDasherModel::Start  ) 
 

Definition at line 155 of file DasherModel.cpp.

References Dasher::CLanguageModel::CloneNodeContext(), Dasher::CLanguageModel::EnterText(), Dasher::CDashEditbox::get_new_context(), Dasher::CLanguageModel::GetRootNodeContext(), LearnContext, m_DasherY, m_editbox, m_languagemodel, m_Root, m_Rootmax, m_Rootmin, Dasher::Opts::Nodes1, Normalization(), Dasher::CDasherNode::Push_Node(), Dasher::CLanguageModel::ReleaseNodeContext(), Dasher::CDashEditbox::set_flushed(), and Opie::Internal::string().

Referenced by Dasher::CDasherInterface::ChangeEdit(), and Dasher::CDasherInterface::Start().

void CDasherModel::Tap_on_display myint  ,
myint  ,
unsigned long  Time
 

Definition at line 246 of file DasherModel.cpp.

References Framerate(), Get_new_root_coords(), Get_node_under_crosshair(), Get_node_under_mouse(), m_Root, Dasher::CDasherNode::Push_Node(), Random(), and Update().

void CDasherModel::Update CDasherNode node,
CDasherNode under,
int  safe
[private]
 

Definition at line 122 of file DasherModel.cpp.

References Framerate().

Referenced by Tap_on_display().


Member Data Documentation

CLanguageModel::CNodeContext* Dasher::CDasherModel::LearnContext [private]
 

Definition at line 90 of file DasherModel.h.

Referenced by CDasherModel(), Make_root(), Start(), and ~CDasherModel().

CAlphabet* Dasher::CDasherModel::m_alphabet
 

Definition at line 65 of file DasherModel.h.

Referenced by GetAlphabet().

double Dasher::CDasherModel::m_dAddProb [private]
 

Definition at line 95 of file DasherModel.h.

Referenced by CDasherModel().

myint Dasher::CDasherModel::m_DasherOX [private]
 

Definition at line 80 of file DasherModel.h.

Referenced by CDasherModel(), DasherOX(), Get_new_root_coords(), and Get_node_under_crosshair().

myint Dasher::CDasherModel::m_DasherOY [private]
 

Definition at line 83 of file DasherModel.h.

Referenced by CDasherModel(), and Get_node_under_crosshair().

myint Dasher::CDasherModel::m_DasherY [private]
 

Definition at line 77 of file DasherModel.h.

Referenced by CDasherModel(), DasherY(), Get_new_root_coords(), and Start().

bool Dasher::CDasherModel::m_Dimensions [private]
 

Definition at line 86 of file DasherModel.h.

Referenced by Dimensions(), and Set_dimensions().

CDashEditbox* Dasher::CDasherModel::m_editbox [private]
 

Definition at line 88 of file DasherModel.h.

Referenced by Make_root(), Reparent_root(), and Start().

CFrameRate Dasher::CDasherModel::m_fr [private]
 

Definition at line 91 of file DasherModel.h.

Referenced by Framerate(), Get_new_root_coords(), NewFrame(), Reset_framerate(), SetBitrate(), and SetMaxBitrate().

CLanguageModel* Dasher::CDasherModel::m_languagemodel [private]
 

Definition at line 89 of file DasherModel.h.

Referenced by CDasherModel(), Make_root(), Normalization(), Start(), and ~CDasherModel().

CDasherNode* Dasher::CDasherModel::m_Root [private]
 

Definition at line 99 of file DasherModel.h.

Referenced by Dump(), Get_node_under_crosshair(), Get_node_under_mouse(), Get_string_under_mouse(), Make_root(), Reparent_root(), Root(), Start(), Tap_on_display(), and ~CDasherModel().

myint Dasher::CDasherModel::m_Rootmax [private]
 

Definition at line 74 of file DasherModel.h.

Referenced by Get_new_root_coords(), Get_node_under_crosshair(), Get_node_under_mouse(), Get_string_under_mouse(), Make_root(), Reparent_root(), Rootmax(), and Start().

myint Dasher::CDasherModel::m_Rootmin [private]
 

Definition at line 74 of file DasherModel.h.

Referenced by Get_new_root_coords(), Get_node_under_crosshair(), Get_node_under_mouse(), Get_string_under_mouse(), Make_root(), Reparent_root(), Rootmin(), and Start().

std::vector<CDasherNode*> Dasher::CDasherModel::oldroots [private]
 

Definition at line 71 of file DasherModel.h.

Referenced by Make_root(), and Reparent_root().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:58:32 2005 for OPIE by  doxygen 1.4.2