div class="twikiTopBar">

Chair for Computer Aided Medical Procedures & Augmented Reality
Lehrstuhl für Informatikanwendungen in der Medizin & Augmented Reality

ARTkNftShmemNeed Class Reference

The class handling the need for video images (Shmem) and receiving events for modifying the search window size (PushConsumer). More...

Collaboration diagram for ARTkNftShmemNeed:

Collaboration graph
[legend]

Public Member Functions

CORBA::Object_ptr newSession (DWARF::ActiveServiceDescription_ptr serviceDesc, const char *name, const char *protocol, const char *partner, DWARF::Attributes_ptr attrs)
 Reads partner's attributes and set image props.
void endSession (DWARF::ActiveServiceDescription_ptr serviceDesc, const char *name, const char *protocol, const char *partner)
 Stops image acquisition.
void setSharedMemIds (long sharedMemKey, long semaphoreKey, long sharedMemSize, short maxReaders)
 Sets internal data structures for accessing shared mem.
void receiveData ()
 main loop for getting data and searching markers.
void push_structured_event (const StructuredEvent &event)
 central workhorse of service

Private Attributes

int m_width
 image width
int m_height
 image height
bool m_hasShmem
 tells us whether we have a shared mem segment already
bool m_hasSession
 tells us whether we have a session already
bool m_shouldRun
 indicates whether we should shut down
ARParam m_camParam
 AR Toolkit camera parameters.

Detailed Description

The class handling the need for video images (Shmem) and receiving events for modifying the search window size (PushConsumer).

Author:
Felix Loew <felix.loew@in.tum.de>

Definition at line 115 of file ARTkNftNA.h.


Member Function Documentation

void ARTkNftShmemNeed::push_structured_event const StructuredEvent &  event  ) 
 

central workhorse of service

This method receives marker data events, parses all items of the sequence in the event for matching marker ID's, then calls AR Toolkit's getTransMat function and finally sends PoseData events.

Parameters:
event an Event of tye DWARF::nftPoseMatrix

Definition at line 483 of file ARTkNftShmemNeed.cpp.

void ARTkNftShmemNeed::receiveData  ) 
 

main loop for getting data and searching markers.

Called by ARTkNftDetectionService::run(), this method stays in a loop eternally and permanently scans for textures by calling appropriate ARToolkit functions.

Definition at line 257 of file ARTkNftShmemNeed.cpp.

ARTkNftShmemNeed Class Reference | generated on Sun Apr 29 02:01:09 2007 by Doxygen 1.4.1 for DWARF