#include <vpiwhiteboard.h>
Public Methods | |
void | InitSharedData (int netid) |
void | HandleSharedDataUpdate (void *in) |
void | Render (bool bForce=false) |
void | PosWTBToClient (POINT *p, RECT *prcClient) |
void | PressureGlobalToClient (unsigned char *p, int widthmin, int widthmax) |
vpiWhiteboard (void) | |
virtual void | Init (char *name, vpiContext *vpictx, VRT_Context *pvrtctx, VRT_Node *parent, char **params, int pnetworkid) |
virtual void | ProcessMessage (char *sender, char *message, void *usrdata) |
virtual void | Interaction (int action, int keyboard_key, float *ray, int *mousepos, MSG msg) |
virtual void | Focus () |
virtual void | LostFocus () |
virtual void | Close () |
void | SendOneStroke (WTBOARDPAGE *pPage, WTBOARDDATASTROKE *pStroke) |
void | SendAllPages () |
void | UpdatePenPos () |
void | UpdateClientDocuments (bool isShowActivePage=false) |
Public Attributes | |
VRT_Node * | n_board |
VRT_Geometry * | g_board |
VRT_Htx | t_board |
VRT_HPlg | p_board |
unsigned char | texels [TEXTURE_SIZE *TEXTURE_SIZE *4] |
float | width |
float | height |
int | pointer_to_show |
VRT_Node * | n_pointer |
VRT_Geometry * | g_pointer |
WTBOARDDOCUMENT * | pDoc |
WTBOARDPAGE * | pPage |
bool | m_bShowPenPosDirty |
bool | m_bRenderDirty |
unsigned char * | m_pSharedStroke |
unsigned char * | m_pSharedCmd |
COLORREF * | m_pSharedClrCurrent |
UINT * | m_pSharedCurrentPage |
BOOL * | m_pSharedIsWtBusy |
BOOL * | m_pSharedIsUpdatingClients |
POINT * | m_pSharedPenPos |
Private Methods | |
void | FullScreen () |
Private Attributes | |
HFONT | font |
BITMAP | bm |
HBITMAP | hBitmap |
HBITMAP | hOldBmp |
HDC | hBitmapDC |
HBRUSH | brush |
RECT | rectClient |
|
Constructor... |
|
The Close function enables the plug-in creator to make a clean destruction of an plug-in instance |
|
Focus defines what happens if this plug-in gets focus. A plug-in will get focus if any of the VRT nodes created under the parent node is clicked on by the user. |
|
Sends a message to the vpiAvatar which centers a fullscreen view of the vpiWhiteboard |
|
Shared data handling functions |
|
The Init function is called by the main application at the creation of a new plug-in instance |
|
Shared data handling functions |
|
Interaction takes care of user input. The actions that can be received is defined in vpiClass.h. |
|
LostFocus defines what happens when a plug-in looses focus. Only one plug-in instance can have focus at a given point in time. |
|
Scale WTB coordinates to the coordinates of the texture set in rectClient |
|
Adapt the global |
|
ProcessMessage handles messages sent to us from another plug-in. The messages accepted is defined by the plug-in creator. |
|
Renders the whiteboard by updating the texturemap attached to the n_board VRT_NODE The board should be rendered only when VRT is in VI_SIMULATION_LOOP |
|
Sends all pages from this client to all other clients |
|
Sends one strokes to all other clients |
|
Clears all other clients WTBOARDDOCUMENTS and broadcasts this clients WTBOARDDOCUMENT Currently this happens every time a pages is inserted, added, removed or cleared (inefficient should be redesigned) |
|
Indicates that the wacom digitizers position should be updated on whiteboard |
|
Some Windows objects and handles for printing text to a bitmap. |
|
Some Windows objects and handles for printing text to a bitmap. |
|
Some Windows objects and handles for printing text to a bitmap. |
|
Defines the geometry describing the vpiWhiteboard |
|
geometry of the n_pointer |
|
Some Windows objects and handles for printing text to a bitmap. |
|
Some Windows objects and handles for printing text to a bitmap. |
|
width and hight in VRT units, typically width 1.5 and height 1.0 |
|
Some Windows objects and handles for printing text to a bitmap. |
|
true and dirty if the whiteboard needs to be rendered |
|
true and dirty if the pen position needs to be updated |
|
The current color of the drawin tool |
|
The current command sent by one of the clients |
|
The current active page of the whiteboard |
|
TRUE if the current client is updating all other clients with its content |
|
TRUE if some one else is interacting with the whiteboard |
|
The current position of the WinTab/Wacom device pointer -> moves n_pointer |
|
The current stroke sent by one of the clients |
|
Defines the node to which the vpiWhiteboard is attached |
|
the VRT_NODE to which the WinTab/Wacom device position is tied |
|
pologon |
|
The document containing the strokes of the whiteboard |
|
deprecated - which clients pointer should be shown to all other clients |
|
Page of the whiteboard |
|
Some Windows objects and handles for printing text to a bitmap. |
|
pologon |
|
texturemap describing content of the vpiWhiteboard |
|
width and hight in VRT units, typically width 1.5 and height 1.0 |