NSSimpleUnit::TSimpleUnitProcessingInterface_images_rectangles Class Reference

Tato jednotka vraci hodnoty typu (IMAGES_RGB a TRT_RECT). More...

#include <Simple_images_rectangles.h>

Inherits NSPipeline::TSimpleUnitProcessingInterface.

Inheritance diagram for NSSimpleUnit::TSimpleUnitProcessingInterface_images_rectangles:

Inheritance graph
[legend]
Collaboration diagram for NSSimpleUnit::TSimpleUnitProcessingInterface_images_rectangles:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual void ProcessFrame (const TFrame *frame)=0
 Tato metoda obdrzi snimek, zpracuje jej a ukonci se.
virtual ~TSimpleUnitProcessingInterface_images_rectangles (void)
 Virtualni destruktor.
virtual EnumUnitType GetType (void) const
 Typ jednotky a navratoveho typu.
virtual TUnitRetTypeInterfaceGetResult (DWORD id)
 Ziskani vysledku ze snimku s pozadovanym ID.
 TSimpleUnitProcessingInterface_images_rectangles (void)
 Konstruktor.

Protected Member Functions

void AddResult (DWORD id, TUnitRetType_images_rectangles_implemented *res)
 Pridani noveho vysledku do seznamu vysledku.
TUnitRetType_images_rectangles_implementedGetObject (void)
 Vrati novy objekt z manageru objektu.
void ReturnObject (TUnitRetType_images_rectangles_implemented *object)
 Vrati zpet do manageru objekt ziskany metodou GetObject().
void FreeImageResults (void)
 Tato metoda uvolni vsechny vysledky.
 TSimpleUnitProcessingInterface_images_rectangles (const TSimpleUnitProcessingInterface_images_rectangles &orig)
 falesny kopirovaci konstruktor
void operator= (const TSimpleUnitProcessingInterface_images_rectangles &orig)
 falesny prirazovaci operator

Static Protected Attributes

static const DWORD sc_memory = 10
 maximalni pocet vysledku, ktere si trida pamatuje

Private Attributes

friend TUnitRetType_images_rectangles_implemented
deque< TUnitRetType_images_rectangles_implemented * > m_results
 posledni vysledky
deque< DWORD > m_resultsID
 identifikatory k vysledkum identifikator urcuje ID snimku ktereho se vysledek tyka
TManager< TUnitRetType_images_rectangles_implementedm_objects
 manager s objekty, neni je nutne neustale alokovat
TCriticalSection m_cs_res
 synchronizace pristupu k vysledkum
TCriticalSection m_cs_manager
 synchronizace pristupu k manageru

Detailed Description

Tato jednotka vraci hodnoty typu (IMAGES_RGB a TRT_RECT).

ODVOZENA TRIDA MUSI REIMPLEMENTOVAT METODU PROCESSFRAME()!!!

Definition at line 305 of file Simple_images_rectangles.h.


Constructor & Destructor Documentation

NSSimpleUnit::TSimpleUnitProcessingInterface_images_rectangles::~TSimpleUnitProcessingInterface_images_rectangles void   )  [inline, virtual]
 

Virtualni destruktor.

Smi byt volan v okamziku kdyz uz neexistuji zadne reference na vysledky teto jednotky!!!

Definition at line 371 of file Simple_images_rectangles.h.

References m_results.

NSSimpleUnit::TSimpleUnitProcessingInterface_images_rectangles::TSimpleUnitProcessingInterface_images_rectangles void   )  [inline]
 

Konstruktor.

Definition at line 361 of file Simple_images_rectangles.h.

NSSimpleUnit::TSimpleUnitProcessingInterface_images_rectangles::TSimpleUnitProcessingInterface_images_rectangles const TSimpleUnitProcessingInterface_images_rectangles orig  )  [protected]
 

falesny kopirovaci konstruktor


Member Function Documentation

void NSSimpleUnit::TSimpleUnitProcessingInterface_images_rectangles::AddResult DWORD  id,
TUnitRetType_images_rectangles_implemented res
[inline, protected]
 

Pridani noveho vysledku do seznamu vysledku.

Vysledek je pridan na konec seznamu.

Parameters:
id [in] identifikace snimku pro nejz je vysledek urcen
res [in] platny vysledek - metoda nezvysuje pocet referenci na nej !!!

Definition at line 422 of file Simple_images_rectangles.h.

References NSPipeline::TCriticalSection::Enter(), m_cs_res, m_results, m_resultsID, and sc_memory.

Here is the call graph for this function:

void TSimpleUnitProcessingInterface_images_rectangles::FreeImageResults void   )  [protected]
 

Tato metoda uvolni vsechny vysledky.

Tyto vysledky drzi reference na objekty z cizich objektu a proto je potreba je odstranit.

Definition at line 60 of file Simple_images_rectangles.cpp.

References m_results.

TUnitRetType_images_rectangles_implemented * NSSimpleUnit::TSimpleUnitProcessingInterface_images_rectangles::GetObject void   )  [inline, protected]
 

Vrati novy objekt z manageru objektu.

Tento objekt je dale ve vlastnictvi aplikace dokud jej nevrati zpet do manageru pomoci metody ReturnObject();

Metoda je volana z metody ProcessFrame().

Definition at line 449 of file Simple_images_rectangles.h.

References NSPipeline::TCriticalSection::Enter(), NSSimpleUnit::TManager< T >::GetItem(), NSPipeline::TCriticalSection::Leave(), m_cs_manager, m_objects, NSSimpleUnit::TUnitRetType_images_rectangles_implemented::Reset(), and NSSimpleUnit::TUnitRetType_images_rectangles_implemented::SetParent().

Here is the call graph for this function:

TUnitRetTypeInterface * NSSimpleUnit::TSimpleUnitProcessingInterface_images_rectangles::GetResult DWORD  id  )  [inline, virtual]
 

Ziskani vysledku ze snimku s pozadovanym ID.

Parameters:
id [in] identifikator pozadovaneho snimku

Reimplemented from NSPipeline::TSimpleUnitProcessingInterface.

Definition at line 389 of file Simple_images_rectangles.h.

References NSSimpleUnit::TUnitRetType_images_rectangles_implemented::AddRefs(), NSPipeline::TCriticalSection::Enter(), m_cs_res, m_results, and m_resultsID.

Here is the call graph for this function:

virtual EnumUnitType NSSimpleUnit::TSimpleUnitProcessingInterface_images_rectangles::GetType void   )  const [inline, virtual]
 

Typ jednotky a navratoveho typu.

Reimplemented from NSPipeline::TSimpleUnitProcessingInterface.

Definition at line 317 of file Simple_images_rectangles.h.

References NSPipeline::ENUM_UNITTYPE_IMAGES_RGB_RECTANGLES.

void NSSimpleUnit::TSimpleUnitProcessingInterface_images_rectangles::operator= const TSimpleUnitProcessingInterface_images_rectangles orig  )  [protected]
 

falesny prirazovaci operator

virtual void NSSimpleUnit::TSimpleUnitProcessingInterface_images_rectangles::ProcessFrame const TFrame frame  )  [pure virtual]
 

Tato metoda obdrzi snimek, zpracuje jej a ukonci se.

O jeji volani se stara logika uvnitr tridy TSimpleUnit.

Implements NSPipeline::TSimpleUnitProcessingInterface.

void NSSimpleUnit::TSimpleUnitProcessingInterface_images_rectangles::ReturnObject TUnitRetType_images_rectangles_implemented object  )  [inline, protected]
 

Vrati zpet do manageru objekt ziskany metodou GetObject().

Metoda by mela byt volana z metody Release() vraceneho objektu.

Tato metoda zaroven uvolni vsechny obrazky drzene v objektu.

Parameters:
object [in] vraceny objekt - metoda jej zaradi do manageru a pri pristim pouziti jej manager znovu reinicializuje

Definition at line 474 of file Simple_images_rectangles.h.

References NSPipeline::TCriticalSection::Enter(), NSPipeline::TCriticalSection::Leave(), m_cs_manager, m_objects, NSSimpleUnit::TUnitRetType_images_rectangles_implemented::PreReset(), and NSSimpleUnit::TManager< T >::PushItem().

Referenced by NSSimpleUnit::TUnitRetType_images_rectangles_implemented::Release().

Here is the call graph for this function:


Member Data Documentation

TCriticalSection NSSimpleUnit::TSimpleUnitProcessingInterface_images_rectangles::m_cs_manager [private]
 

synchronizace pristupu k manageru

Definition at line 355 of file Simple_images_rectangles.h.

Referenced by GetObject(), and ReturnObject().

TCriticalSection NSSimpleUnit::TSimpleUnitProcessingInterface_images_rectangles::m_cs_res [private]
 

synchronizace pristupu k vysledkum

Definition at line 353 of file Simple_images_rectangles.h.

Referenced by AddResult(), and GetResult().

TManager<TUnitRetType_images_rectangles_implemented> NSSimpleUnit::TSimpleUnitProcessingInterface_images_rectangles::m_objects [private]
 

manager s objekty, neni je nutne neustale alokovat

Definition at line 350 of file Simple_images_rectangles.h.

Referenced by GetObject(), and ReturnObject().

deque<TUnitRetType_images_rectangles_implemented*> NSSimpleUnit::TSimpleUnitProcessingInterface_images_rectangles::m_results [private]
 

posledni vysledky

Definition at line 345 of file Simple_images_rectangles.h.

Referenced by AddResult(), FreeImageResults(), GetResult(), and ~TSimpleUnitProcessingInterface_images_rectangles().

deque<DWORD> NSSimpleUnit::TSimpleUnitProcessingInterface_images_rectangles::m_resultsID [private]
 

identifikatory k vysledkum identifikator urcuje ID snimku ktereho se vysledek tyka

Definition at line 346 of file Simple_images_rectangles.h.

Referenced by AddResult(), and GetResult().

const DWORD NSSimpleUnit::TSimpleUnitProcessingInterface_images_rectangles::sc_memory = 10 [static, protected]
 

maximalni pocet vysledku, ktere si trida pamatuje

Definition at line 341 of file Simple_images_rectangles.h.

Referenced by AddResult().

friend NSSimpleUnit::TSimpleUnitProcessingInterface_images_rectangles::TUnitRetType_images_rectangles_implemented [private]
 

Definition at line 307 of file Simple_images_rectangles.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 17 16:26:48 2007 for Image Processing Pipeline by  doxygen 1.4.6-NO