NSSimpleUnit::TSimpleUnitProcessingInterface_rectangles Class Reference

Tato jednotka vraci hodnoty typu RECTANGLES. More...

#include <Simple_rectangles.h>

Inherits NSPipeline::TSimpleUnitProcessingInterface.

Inheritance diagram for NSSimpleUnit::TSimpleUnitProcessingInterface_rectangles:

Inheritance graph
[legend]
Collaboration diagram for NSSimpleUnit::TSimpleUnitProcessingInterface_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_rectangles (void)
 Virtualni destruktor.
virtual EnumUnitType GetType (void) const
 Typ jednotky a zaroven vysledku.
virtual TUnitRetTypeInterfaceGetResult (DWORD id)
 Ziskani vysledku ze snimku s pozadovanym ID.
 TSimpleUnitProcessingInterface_rectangles (void)
 Konstruktor.

Protected Member Functions

void AddResult (DWORD id, TUnitRetType_rectangles_implemented *res)
 Pridani noveho vysledku do seznamu vysledku.
TUnitRetType_rectangles_implementedGetObject (void)
 Vrati novy objekt z manageru objektu.
void ReturnObject (TUnitRetType_rectangles_implemented *object)
 Vrati zpet do manageru objekt ziskany metodou GetObject().
 TSimpleUnitProcessingInterface_rectangles (const TSimpleUnitProcessingInterface_rectangles &orig)
 falesny kopirovaci konstruktor
void operator= (const TSimpleUnitProcessingInterface_rectangles &orig)
 falesny prirazovaci operator

Static Protected Attributes

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

Private Attributes

friend TUnitRetType_rectangles_implemented
deque< TUnitRetType_rectangles_implemented * > m_results
 posledni vysledky
deque< DWORD > m_resultsID
 identifikatory k vysledkum identifikator urcuje ID snimku ktereho se vysledek tyka
TManager< TUnitRetType_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 RECTANGLES.

ODVOZENA TRIDA MUSI REIMPLEMENTOVAT METODU PROCESSFRAME()!!!

Definition at line 210 of file Simple_rectangles.h.


Constructor & Destructor Documentation

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

Virtualni destruktor.

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

Definition at line 274 of file Simple_rectangles.h.

References m_results.

NSSimpleUnit::TSimpleUnitProcessingInterface_rectangles::TSimpleUnitProcessingInterface_rectangles void   )  [inline]
 

Konstruktor.

Definition at line 264 of file Simple_rectangles.h.

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

falesny kopirovaci konstruktor


Member Function Documentation

void NSSimpleUnit::TSimpleUnitProcessingInterface_rectangles::AddResult DWORD  id,
TUnitRetType_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 325 of file Simple_rectangles.h.

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

Here is the call graph for this function:

TUnitRetType_rectangles_implemented * NSSimpleUnit::TSimpleUnitProcessingInterface_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 352 of file Simple_rectangles.h.

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

Here is the call graph for this function:

TUnitRetTypeInterface * NSSimpleUnit::TSimpleUnitProcessingInterface_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 292 of file Simple_rectangles.h.

References NSSimpleUnit::TUnitRetType_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_rectangles::GetType void   )  const [inline, virtual]
 

Typ jednotky a zaroven vysledku.

Reimplemented from NSPipeline::TSimpleUnitProcessingInterface.

Definition at line 222 of file Simple_rectangles.h.

References NSPipeline::ENUM_UNITTYPE_RECTANGLES.

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

falesny prirazovaci operator

virtual void NSSimpleUnit::TSimpleUnitProcessingInterface_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_rectangles::ReturnObject TUnitRetType_rectangles_implemented object  )  [inline, protected]
 

Vrati zpet do manageru objekt ziskany metodou GetObject().

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

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

Definition at line 375 of file Simple_rectangles.h.

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

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

Here is the call graph for this function:


Member Data Documentation

TCriticalSection NSSimpleUnit::TSimpleUnitProcessingInterface_rectangles::m_cs_manager [private]
 

synchronizace pristupu k manageru

Definition at line 258 of file Simple_rectangles.h.

Referenced by GetObject(), and ReturnObject().

TCriticalSection NSSimpleUnit::TSimpleUnitProcessingInterface_rectangles::m_cs_res [private]
 

synchronizace pristupu k vysledkum

Definition at line 256 of file Simple_rectangles.h.

Referenced by AddResult(), and GetResult().

TManager<TUnitRetType_rectangles_implemented> NSSimpleUnit::TSimpleUnitProcessingInterface_rectangles::m_objects [private]
 

manager s objekty, neni je nutne neustale alokovat

Definition at line 253 of file Simple_rectangles.h.

Referenced by GetObject(), and ReturnObject().

deque<TUnitRetType_rectangles_implemented*> NSSimpleUnit::TSimpleUnitProcessingInterface_rectangles::m_results [private]
 

posledni vysledky

Definition at line 248 of file Simple_rectangles.h.

Referenced by AddResult(), GetResult(), and ~TSimpleUnitProcessingInterface_rectangles().

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

identifikatory k vysledkum identifikator urcuje ID snimku ktereho se vysledek tyka

Definition at line 249 of file Simple_rectangles.h.

Referenced by AddResult(), and GetResult().

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

maximalni pocet vysledku, ktere se trida pamatuje

Definition at line 244 of file Simple_rectangles.h.

Referenced by AddResult().

friend NSSimpleUnit::TSimpleUnitProcessingInterface_rectangles::TUnitRetType_rectangles_implemented [private]
 

Definition at line 212 of file Simple_rectangles.h.


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