Public Member Functions | Public Attributes

Snippet Class Reference

Search for all occurrences

#include <IMoFlow.h>

Inheritance diagram for Snippet:
Inheritance graph
[legend]

List of all members.

Public Member Functions

BIPExport  Snippet ()
virtual BIPExport  ~Snippet ()
BIPExport void  ClearActiveTransitions ()
BIPExport void  ClearSelectedTransitions ()
BIPExport int  ActivateTransitionTo (Snippet *toSN)
BIPExport Transition GetTransitionTo (Snippet *toSN)
BIPExport int  GetTransitionIndex (Transition *theTR)
BIPExport float  AddTransition (Snippet *child, int optimize)
BIPExport float  ComputeTransitionPoints (Transition *nTR, Snippet *Src, Snippet *Dest, int preference, int optimize)
BIPExport float  ComputeOptimalTransitionPoints (BOOL SearchAll, int PrefTranLen, int SearchBefore, int SearchAfter, Transition *nTR, Snippet *Src, Snippet *Dst)
BIPExport void  RecomputeTransitions ()
BIPExport int  DeleteTransitionsTo (Snippet *child)
BIPExport int  DeleteTransition (int index)
BIPExport void  DeleteSelectedTransitions (MoFlow *MF)
BIPExport int  IsChild (Snippet *Child)
void  Paint (HDC hdc, int selected, int startnode, int editnode, int transhow)
void  PaintTransitions (HDC hdc, BOOL transhow)
void  ComputeWidth (HDC hdc, BOOL transhow)
int  Inside (POINT &mp, float *dist)
BIPExport void  UpdateUI ()
BIPExport Snippet operator= (const Snippet &SN)
Transition TranHitTest (POINT &mp)
void  TranRegionSelect (POINT &min, POINT &max, int set, int active)
void  Output (MFL_IOProcessor *IOProc)
void  Input (MFL_IOProcessor *IOProc)
BIPExport int  LoadFile (bool UpdateTheUI=true, int ErrorType=3)
Snippet GetNextRandScriptSnippet (int *transindex)
Snippet NextRealTime (BipMaster *mc, Script *scr, animal *A, int frame, path_properties *desired_properties, int global_frame, int global_last_clip_start, int currentScript_index, int *transindex, int *found)
  MG added for new MF based forward simulatiom.
int  GetStart () const
void  SetStart (int s)
int  GetEnd () const
void  SetEnd (int e)
const MCHAR *  GetClipName () const
void  SetClipName (const MCHAR *n)
const
MaxSDK::AssetManagement::AssetUser
GetFile () const
void  SetFile (const MaxSDK::AssetManagement::AssetUser &assetUser)
virtual IPoint2  GetPosition () const
virtual void  SetPosition (IPoint2 p)
BOOL  GetActive () const
void  SetActive (BOOL act)
BOOL  GetRandStart () const
void  SetRandStart (BOOL rs)
BOOL  GetRandStartPercent () const
void  SetRandStartPercent (int rsp)
int  NumTransitions ()
Transition GetTransition (int Tindex) const
void  SetTransition (int Tindex, Transition *ti)

Public Attributes

int  visited
float  distance_to_stop
float  distance_to_loop
int  start
int  end
MCHAR  sname [MAXNAME]
MaxSDK::AssetManagement::AssetUser  file
int  posx
int  posy
int  width
int  nTrans
int  curtime
int  active
int  validload
BOOL  randstart
int  randstartpct
Transition Transitions
HWND  hwnd
int  orgposx
int  orgposy
Snippet next
animal *  A

Constructor & Destructor Documentation

BIPExport Snippet ( )
virtual BIPExport ~Snippet ( ) [virtual]

Member Function Documentation

BIPExport void ClearActiveTransitions ( )
BIPExport void ClearSelectedTransitions ( )
BIPExport int ActivateTransitionTo ( Snippet toSN )
BIPExport Transition* GetTransitionTo ( Snippet toSN )
BIPExport int GetTransitionIndex ( Transition theTR )
BIPExport float AddTransition ( Snippet child,
int  optimize 
)
BIPExport float ComputeTransitionPoints ( Transition nTR,
Snippet Src,
Snippet Dest,
int  preference,
int  optimize 
)
BIPExport float ComputeOptimalTransitionPoints ( BOOL  SearchAll,
int  PrefTranLen,
int  SearchBefore,
int  SearchAfter,
Transition nTR,
Snippet Src,
Snippet Dst 
)
BIPExport void RecomputeTransitions ( )
BIPExport int DeleteTransitionsTo ( Snippet child )
BIPExport int DeleteTransition ( int  index )
BIPExport void DeleteSelectedTransitions ( MoFlow *  MF )
BIPExport int IsChild ( Snippet Child )
void Paint ( HDC  hdc,
int  selected,
int  startnode,
int  editnode,
int  transhow 
)
void PaintTransitions ( HDC  hdc,
BOOL  transhow 
)
void ComputeWidth ( HDC  hdc,
BOOL  transhow 
)
int Inside ( POINT &  mp,
float *  dist 
)
BIPExport void UpdateUI ( )
BIPExport Snippet& operator= ( const Snippet SN )
Transition* TranHitTest ( POINT &  mp )
void TranRegionSelect ( POINT &  min,
POINT &  max,
int  set,
int  active 
)
void Output ( MFL_IOProcessor *  IOProc )
void Input ( MFL_IOProcessor *  IOProc )
BIPExport int LoadFile ( bool  UpdateTheUI = true,
int  ErrorType = 3 
)
Snippet* GetNextRandScriptSnippet ( int *  transindex )
Snippet* NextRealTime ( BipMaster *  mc,
Script scr,
animal *  A,
int  frame,
path_properties desired_properties,
int  global_frame,
int  global_last_clip_start,
int  currentScript_index,
int *  transindex,
int *  found 
)

MG added for new MF based forward simulatiom.

int GetStart ( ) const [inline]
void SetStart ( int  s ) [inline]
int GetEnd ( ) const [inline]
void SetEnd ( int  e ) [inline]
const MCHAR* GetClipName ( ) const [inline]
void SetClipName ( const MCHAR *  n ) [inline]
{ _tcscpy_s(sname, MAXNAME, n); }
const MaxSDK::AssetManagement::AssetUser& GetFile ( ) const [inline]
void SetFile ( const MaxSDK::AssetManagement::AssetUser assetUser ) [inline]
{ file = assetUser; }
virtual IPoint2 GetPosition ( ) const [inline, virtual]
virtual void SetPosition ( IPoint2  p ) [inline, virtual]
BOOL GetActive ( ) const [inline]
void SetActive ( BOOL  act ) [inline]
BOOL GetRandStart ( ) const [inline]
void SetRandStart ( BOOL  rs ) [inline]
BOOL GetRandStartPercent ( ) const [inline]
void SetRandStartPercent ( int  rsp ) [inline]
int NumTransitions ( ) [inline]
Transition* GetTransition ( int  Tindex ) const [inline]
                        { assert (Tindex < nTrans); return &Transitions[Tindex]; }
void SetTransition ( int  Tindex,
Transition ti 
) [inline]
                        { assert (Tindex < nTrans); Transitions[Tindex] = *ti; }

Member Data Documentation

int visited
int start
int end
MCHAR sname[MAXNAME]
int posx
int posy
int width
int nTrans
int curtime
int active
int validload
BOOL randstart
HWND hwnd
int orgposx
int orgposy
animal* A

Snippet Snippet Snippet Snippet Snippet Snippet Snippet Snippet Snippet Snippet
Snippet Snippet Snippet Snippet Snippet Snippet Snippet Snippet Snippet Snippet